Function at 0x402ec0
Capabilities:
Accept command line arguments
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x284
mov eax, dword [0x47a060]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
push 0x47b78c
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
call fcn.00402d80
test eax, eax
je 0x403102
lea eax, [esp + 0x20]
push eax
mov dword [0x47b79c], 1
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, 7
xor edi, edi
cmp dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], esi
mov word [esp + 0x4c], si
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
jle 0x402fac
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + edi*4]
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x402f52
sub eax, ebx
sar eax, 1
push eax
push edx
lea esi, [esp + 0x50]
call fcn.00401070
mov edx, esi
push edx
lea esi, [esp + 0x10]
call fcn.00401f70
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x469b0c
call esi
cmp dword [esp + 0x60], 8
mov eax, dword [esp + 0x4c]
jae 0x402f94
lea eax, [esp + 0x4c]
push eax
call esi
push str._______________n
call esi
add edi, 1
xor esi, esi
cmp edi, dword [esp + 0x20]
jl 0x402f46
lea ebx, [esi + 7]
push 0x206
lea eax, [esp + 0x86]
push esi
push eax
mov word [esp + 0x8c], si
call fcn.00452a60
add esp, 0xc
push 0x104
lea ecx, [esp + 0x84]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x80]
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x78], esi
mov word [esp + 0x68], si
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x402ff5
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x84]
push edx
lea esi, [esp + 0x6c]
call fcn.00401070
mov esi, dword [esp + 0x10]
test esi, esi
je 0x403205
mov edi, dword [esp + 0x14]
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x403205
cmp eax, 2
jbe 0x40318b
cmp eax, 1
ja 0x40305a
call fcn.0044f3b1
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x30]
add esi, 0x1c
push str.HIDDEN
mov edi, 6
mov ecx, esi
call fcn.00401de0
test eax, eax
jne 0x403183
push str.paramlist.size____1__paramlist_0_HIDDEN_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esi, dword [esp + 0x10]
xor ebx, ebx
cmp esi, ebx
je 0x4030ac
mov ecx, dword [esp + 0x14]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
ja 0x4030b5
call fcn.0044f3b1
mov esi, dword [esp + 0x10]
mov ecx, dword [0x47b798]
push 0xffffffffffffffff
push ebx
lea eax, [esi + 0x38]
add ecx, 0xcc
call fcn.00401110
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40311b
mov ecx, dword [esp + 0x14]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 4
jb 0x40311b
mov edi, 3
lea esi, [esp + 0xc]
call fcn.004033a0
jmp 0x403131
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.0044eeec
mov esp, ebp
pop ebp
ret 0x10
mov edx, 0x469acc
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], 1
call fcn.00401da0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0xffffffffffffffff
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
push ebx
mov word [ecx + 4], bx
call fcn.00401110
mov eax, dword [0x47b798]
push eax
call fcn.00406020
test byte [esp + 0x28], 1
je 0x403231
cmp dword [esp + 0x44], 8
jb 0x403231
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0044ec2b
add esp, 4
jmp 0x403231
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4031fe
sub edi, esi
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x4031fe
cmp eax, 1
ja 0x4031b7
call fcn.0044f3b1
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x30]
add esi, 0x1c
push str.HIDDEN
mov edi, 6
mov ecx, esi
call fcn.00401de0
test eax, eax
jne 0x4031fe
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x38], esp
push eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], eax
push 0x469acc
mov word [esi + 4], ax
call fcn.00401070
mov edx, dword [0x47b798]
push edx
call fcn.00406020
jmp 0x40322f
push str.paramlist_not_empty_n
jmp 0x40320a
push str.paramlist_is_empty_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [0x47b798]
push eax
call fcn.00405e50
mov edx, dword [ebp + 0x14]
mov edi, dword [0x47b794]
lea ecx, [esp + 0x24]
push ecx
push edx
call fcn.00404eb0
xor ebx, ebx
mov eax, dword [0x47b798]
cmp eax, ebx
mov dword [0x47b79c], ebx
je 0x403257
mov dword [eax + 8], ebx
mov ecx, dword [0x47b798]
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [0x47b798], ebx
mov esi, dword [0x47b794]
cmp esi, ebx
je 0x4032bf
mov edi, esi
call fcn.004049d0
test eax, eax
je 0x4032a7
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x40327d
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 0xc], ebx
movzx eax, word [esi + 0xe4]
cmp ax, bx
je 0x40329e
mov ecx, dword [esi + 8]
movzx edx, ax
push ecx
push edx
call dword [sym.imp.USER32.dll_UnregisterClassW]
mov word [esi + 0xe4], bx
mov dword [esi + 0xe8], ebx
mov dword [esi + 4], ebx
mov ecx, dword [0x47b794]
cmp ecx, ebx
je 0x4032b9
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [0x47b794], ebx
mov eax, dword [0x47b790]
cmp eax, ebx
je 0x4032e9
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov ecx, dword [0x47b790]
cmp ecx, ebx
je 0x4032e3
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [0x47b790], ebx
cmp dword [esp + 0x7c], 8
jb 0x4032fd
mov eax, dword [esp + 0x68]
push eax
call fcn.0044ec2b
add esp, 4
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], bx
je 0x403334
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
push ecx
call fcn.00402940
mov edx, dword [esp + 0x14]
add esp, 4
push edx
call fcn.0044ec2b
add esp, 4
cmp dword [esp + 0x60], 8
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
jb 0x403354
mov eax, dword [esp + 0x4c]
push eax
call fcn.0044ec2b
add esp, 4
mov ecx, dword [esp + 0x28c]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044eeec
mov esp, ebp
pop ebp
ret 0x10