Function at 0x409df5
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [0x45e6a0], 0
jne 0x409e29
push str.SHELL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x28], eax
push str.CommandLineToArgvW
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x45e6a0], eax
xor eax, eax
jne 0x409e25
cmp dword [0x45e6a0], 0
jne 0x409e43
xor eax, eax
jne 0x409e32
mov eax, dword [ebp + 8]
and dword [eax], 0
xor eax, eax
jmp 0x409fdf
and dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x409e67
xor eax, eax
jne 0x409e56
mov eax, dword [ebp + 8]
and dword [eax], 0
xor eax, eax
jmp 0x409fdf
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x1c]
call dword [0x45e6a0]
pop ecx
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x409e8c
mov eax, dword [ebp + 8]
and dword [eax], 0
xor eax, eax
jmp 0x409fdf
mov eax, dword [ebp - 0x10]
shl eax, 2
mov dword [ebp - 0x18], eax
and dword [ebp - 0xc], 0
jmp 0x409ea2
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jge 0x409ef4
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
push dword [ecx + eax*4]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x409ee9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 8]
and dword [eax], 0
xor eax, eax
jmp 0x409fdf
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
jmp 0x409e9b
push dword [ebp - 0x18]
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x409f1e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 8]
and dword [eax], 0
xor eax, eax
jmp 0x409fdf
mov eax, dword [ebp - 0x10]
shl eax, 2
mov ecx, dword [ebp - 0x18]
sub ecx, eax
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x24], eax
and dword [ebp - 0xc], 0
jmp 0x409f45
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jge 0x409fcb
cmp dword [ebp - 8], 0
jge 0x409f5f
xor eax, eax
jne 0x409f53
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
jmp 0x409fcb
push 0
push 0
push dword [ebp - 8]
push dword [ebp - 0x24]
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
push dword [ecx + eax*4]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x409fa8
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
xor eax, eax
jmp 0x409fdf
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov dword [ecx + eax*4], edx
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
jmp 0x409f3e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp - 0x20]
leave
ret