Function at 0x40bfa2
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 [0x45d880], ecx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, eax
lea ecx, [esp + 0x260]
push esi
mov dword [esp + 0x18], esi
call fcn.00409249
lea ecx, [esp + 0x80]
call fcn.0040349b
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 + 0x10]
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 + 0x14], edx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
test ebx, ebx
je 0x40c30e
xor esi, esi
inc esi
cmp dword [esp + 0x10], esi
jle 0x40c303
push 2
pop edi
push dword [ebx + esi*4]
lea ecx, [esp + 0x1c]
call fcn.004014ad
mov edx, 0x44d64c
lea ecx, [esp + 0x18]
call fcn.00404ceb
test al, al
jne 0x40c2d1
mov edx, 0x44d654
lea ecx, [esp + 0x18]
call fcn.00404ceb
test al, al
jne 0x40c2d1
mov edx, 0x44d65c
lea ecx, [esp + 0x18]
call fcn.00404ceb
test al, al
jne 0x40c2d1
mov edx, 0x44d664
lea ecx, [esp + 0x18]
call fcn.00404ceb
test al, al
jne 0x40c2d1
mov edx, 0x44d66c
lea ecx, [esp + 0x18]
call fcn.00404ceb
test al, al
jne 0x40c2c1
mov edx, 0x44d674
lea ecx, [esp + 0x18]
call fcn.00404ceb
test al, al
jne 0x40c2c1
mov edx, 0x44d67c
lea ecx, [esp + 0x18]
call fcn.00404ceb
test al, al
jne 0x40c2c1
mov edx, 0x44d684
lea ecx, [esp + 0x18]
call fcn.00404ceb
test al, al
jne 0x40c2c1
mov edx, 0x44d68c
lea ecx, [esp + 0x18]
call fcn.00404ceb
test al, al
jne 0x40c2ba
mov edx, 0x44d694
lea ecx, [esp + 0x18]
call fcn.00404ceb
test al, al
jne 0x40c2ba
mov edx, 0x44d69c
lea ecx, [esp + 0x18]
call fcn.00404ceb
test al, al
jne 0x40c2ba
mov edx, 0x44d6a4
lea ecx, [esp + 0x18]
call fcn.00404ceb
test al, al
jne 0x40c2ba
mov edx, 0x44d6ac
lea ecx, [esp + 0x18]
call fcn.00404ceb
test al, al
jne 0x40c2ba
mov edx, 0x44d6b4
lea ecx, [esp + 0x18]
call fcn.00404ceb
test al, al
jne 0x40c2ba
mov edx, 0x44d6bc
lea ecx, [esp + 0x18]
call fcn.00404ceb
test al, al
jne 0x40c2ba
mov edx, 0x44d6c4
lea ecx, [esp + 0x18]
call fcn.00404ceb
test al, al
jne 0x40c2ba
mov edx, 0x44d6cc
lea ecx, [esp + 0x18]
call fcn.00404ceb
test al, al
jne 0x40c2b3
mov edx, 0x44d6d4
lea ecx, [esp + 0x18]
call fcn.00404ceb
test al, al
jne 0x40c2b3
mov edx, 0x44d6dc
lea ecx, [esp + 0x18]
call fcn.00404ceb
test al, al
jne 0x40c2b3
mov edx, 0x44d6e4
lea ecx, [esp + 0x18]
call fcn.00404ceb
test al, al
jne 0x40c2b3
mov edx, 0x44d6ec
lea ecx, [esp + 0x18]
call fcn.00404ceb
test al, al
jne 0x40c2a3
mov edx, 0x44d6f4
lea ecx, [esp + 0x18]
call fcn.00404ceb
test al, al
jne 0x40c2a3
mov edx, 0x44d6fc
lea ecx, [esp + 0x18]
call fcn.00404ceb
test al, al
jne 0x40c2a3
mov edx, 0x44d704
lea ecx, [esp + 0x18]
call fcn.00404ceb
test al, al
jne 0x40c2a3
mov edx, 0x44d70c
lea ecx, [esp + 0x18]
call fcn.00404ceb
test al, al
jne 0x40c2a3
mov edx, 0x44d714
lea ecx, [esp + 0x18]
call fcn.00404ceb
test al, al
jne 0x40c2a3
mov edx, 0x44d71c
lea ecx, [esp + 0x18]
call fcn.00404ceb
test al, al
jne 0x40c2a3
mov edx, 0x44d724
lea ecx, [esp + 0x18]
call fcn.00404ceb
test al, al
je 0x40c2ea
cmp edi, dword [esp + 0x10]
jge 0x40c3ae
lea ecx, [esp + 0x64]
jmp 0x40c2df
mov byte [esp + 0x61], 0
jmp 0x40c2ea
mov byte [esp + 0x60], 1
jmp 0x40c2ea
cmp edi, dword [esp + 0x10]
jge 0x40c3ae
lea ecx, [esp + 0x48]
jmp 0x40c2df
cmp edi, dword [esp + 0x10]
jge 0x40c3ae
lea ecx, [esp + 0x30]
push dword [ebx + esi*4 + 4]
call fcn.004016c8
inc esi
inc edi
push 0
push 1
lea ecx, [esp + 0x20]
call fcn.004017f1
inc esi
inc edi
cmp esi, dword [esp + 0x10]
jl 0x40c04f
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.0040bb59
cmp dword [esp + 0x1a0], 0
je 0x40c367
cmp dword [esp + 0x188], 0
jne 0x40c367
lea eax, [esp + 0x18]
push 0x27ea
push eax
call fcn.00403405
mov ecx, eax
call fcn.004156d6
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x17c]
call fcn.00401f36
push 0
push 1
lea ecx, [esp + 0x20]
call fcn.004017f1
push esi
lea ecx, [esp + 0x264]
call fcn.0040bbae
mov esi, eax
lea ecx, [esp + 0x30]
call fcn.004093cc
lea ecx, [esp + 0x80]
call fcn.004093f4
lea ecx, [esp + 0x260]
call fcn.004094e8
mov ecx, dword [esp + 0x58c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00435a0a
mov esp, ebp
pop ebp
ret
push 0
push 1
lea ecx, [esp + 0x20]
call fcn.004017f1
push 0xfffffffffffffffe
pop esi
jmp 0x40c376