Function at 0x40c42a
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x584
mov eax, dword [0x459178]
xor eax, esp
mov dword [esp + 0x580], eax
push ebx
push esi
push edi
mov dword [0x45d790], ecx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, eax
lea ecx, [esp + 0x260]
push esi
mov dword [esp + 0x18], esi
call fcn.00409712
lea ecx, [esp + 0x80]
call fcn.00403ac4
xor eax, eax
mov word [esp + 0x60], 0x100
push 7
pop ecx
xor edx, edx
mov word [esp + 0x30], ax
mov word [esp + 0x48], ax
mov word [esp + 0x64], ax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x10], edx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x40c7dc
xor esi, esi
inc esi
cmp dword [esp + 0xc], esi
jle 0x40c7d1
push 2
pop edi
push dword [ebx + esi*4]
lea ecx, [esp + 0x1c]
call fcn.00401b1d
mov edx, 0x44d680
lea ecx, [esp + 0x18]
call fcn.00405183
test al, al
jne 0x40c78a
mov edx, 0x44d688
lea ecx, [esp + 0x18]
call fcn.00405183
test al, al
jne 0x40c78a
mov edx, 0x44d690
lea ecx, [esp + 0x18]
call fcn.00405183
test al, al
jne 0x40c78a
mov edx, 0x44d698
lea ecx, [esp + 0x18]
call fcn.00405183
test al, al
jne 0x40c78a
mov edx, 0x44d6a0
lea ecx, [esp + 0x18]
call fcn.00405183
test al, al
jne 0x40c768
mov edx, 0x44d6a8
lea ecx, [esp + 0x18]
call fcn.00405183
test al, al
jne 0x40c768
mov edx, 0x44d6b0
lea ecx, [esp + 0x18]
call fcn.00405183
test al, al
jne 0x40c768
mov edx, 0x44d6b8
lea ecx, [esp + 0x18]
call fcn.00405183
test al, al
jne 0x40c768
mov edx, 0x44d6c0
lea ecx, [esp + 0x18]
call fcn.00405183
test al, al
jne 0x40c761
mov edx, 0x44d6c8
lea ecx, [esp + 0x18]
call fcn.00405183
test al, al
jne 0x40c761
mov edx, 0x44d6d0
lea ecx, [esp + 0x18]
call fcn.00405183
test al, al
jne 0x40c761
mov edx, 0x44d6d8
lea ecx, [esp + 0x18]
call fcn.00405183
test al, al
jne 0x40c761
mov edx, 0x44d6e0
lea ecx, [esp + 0x18]
call fcn.00405183
test al, al
jne 0x40c761
mov edx, 0x44d6e8
lea ecx, [esp + 0x18]
call fcn.00405183
test al, al
jne 0x40c761
mov edx, 0x44d6f0
lea ecx, [esp + 0x18]
call fcn.00405183
test al, al
jne 0x40c761
mov edx, 0x44d6f8
lea ecx, [esp + 0x18]
call fcn.00405183
test al, al
jne 0x40c761
mov edx, 0x44d700
lea ecx, [esp + 0x18]
call fcn.00405183
test al, al
jne 0x40c759
mov edx, 0x44d708
lea ecx, [esp + 0x18]
call fcn.00405183
test al, al
jne 0x40c759
mov edx, 0x44d710
lea ecx, [esp + 0x18]
call fcn.00405183
test al, al
jne 0x40c759
mov edx, 0x44d718
lea ecx, [esp + 0x18]
call fcn.00405183
test al, al
jne 0x40c759
mov edx, 0x44d720
lea ecx, [esp + 0x18]
call fcn.00405183
test al, al
jne 0x40c737
mov edx, 0x44d728
lea ecx, [esp + 0x18]
call fcn.00405183
test al, al
jne 0x40c737
mov edx, 0x44d730
lea ecx, [esp + 0x18]
call fcn.00405183
test al, al
jne 0x40c737
mov edx, 0x44d738
lea ecx, [esp + 0x18]
call fcn.00405183
test al, al
jne 0x40c737
mov edx, 0x44d740
lea ecx, [esp + 0x18]
call fcn.00405183
test al, al
jne 0x40c737
mov edx, 0x44d748
lea ecx, [esp + 0x18]
call fcn.00405183
test al, al
jne 0x40c737
mov edx, 0x44d750
lea ecx, [esp + 0x18]
call fcn.00405183
test al, al
jne 0x40c737
mov edx, 0x44d758
lea ecx, [esp + 0x18]
call fcn.00405183
test al, al
je 0x40c7b7
cmp edi, dword [esp + 0xc]
jge 0x40c87d
mov ebx, dword [ebx + esi*4 + 4]
xor eax, eax
cmp word [ebx], ax
je 0x40c753
push ebx
call fcn.004370ab
pop ecx
lea ecx, [esp + 0x64]
jmp 0x40c7aa
xor eax, eax
mov byte [esp + 0x61], al
jmp 0x40c7b9
mov byte [esp + 0x60], 1
jmp 0x40c7b7
cmp edi, dword [esp + 0xc]
jge 0x40c87d
mov ebx, dword [ebx + esi*4 + 4]
xor eax, eax
cmp word [ebx], ax
je 0x40c784
push ebx
call fcn.004370ab
pop ecx
lea ecx, [esp + 0x48]
jmp 0x40c7aa
cmp edi, dword [esp + 0xc]
jge 0x40c87d
mov ebx, dword [ebx + esi*4 + 4]
xor eax, eax
cmp word [ebx], ax
je 0x40c7a6
push ebx
call fcn.004370ab
pop ecx
lea ecx, [esp + 0x30]
push eax
push ebx
call fcn.00402102
mov ebx, dword [esp + 0x10]
inc esi
inc edi
xor eax, eax
push eax
push 1
lea ecx, [esp + 0x20]
call fcn.00401df6
inc esi
inc edi
cmp esi, dword [esp + 0xc]
jl 0x40c4db
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x264]
call fcn.0040c01a
cmp dword [esp + 0x1a0], 0
je 0x40c836
cmp dword [esp + 0x188], 0
jne 0x40c836
lea eax, [esp + 0x18]
push 0x27ea
push eax
call fcn.004039a9
mov ecx, eax
call fcn.00416136
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x17c]
call fcn.004025d1
xor eax, eax
lea ecx, [esp + 0x18]
push eax
push 1
call fcn.00401df6
push esi
lea ecx, [esp + 0x264]
call fcn.0040c06f
mov esi, eax
lea ecx, [esp + 0x30]
call fcn.00409895
lea ecx, [esp + 0x80]
call fcn.004098bd
lea ecx, [esp + 0x260]
call fcn.004099b1
mov ecx, dword [esp + 0x58c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00436362
mov esp, ebp
pop ebp
ret
xor eax, eax
lea ecx, [esp + 0x18]
push eax
push 1
call fcn.00401df6
push 0xfffffffffffffffe
pop esi
jmp 0x40c845