Function at 0x40578d
Capabilities:
Accept command line arguments
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x428624
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x4360c8]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x4360c8]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
add eax, 0x60
mov dword [esp + 0x1c], eax
call fcn.00406876
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
test eax, eax
je 0x405a45
cmp byte [eax], 0
je 0x405a45
push eax
lea ecx, [esp + 0x74]
call fcn.004032b4
and dword [esp + 0xb8], 0
lea eax, [esp + 0x14]
lea ecx, [esp + 0x70]
call fcn.00402e25
jmp 0x405a18
lea esi, [esp + 0x14]
call fcn.004029ca
cmp byte [eax], 0
je 0x405a38
call fcn.004029ca
cmp byte [eax], 0x22
jne 0x405921
call fcn.00402b32
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x28]
lea ecx, [esp + 0x70]
call fcn.00402dc3
jmp 0x4058a5
lea esi, [esp + 0x14]
call fcn.004029ca
cmp byte [eax], 0x22
jne 0x40589c
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
call fcn.00402b32
lea eax, [esp + 0x58]
lea ecx, [esp + 0x70]
call fcn.00402dc3
mov edi, eax
call fcn.00402a2d
test al, al
jne 0x4058e1
call fcn.004029ca
cmp byte [eax], 0x20
je 0x4058d8
lea esi, [esp + 0x14]
call fcn.00402b32
lea eax, [esp + 0x48]
lea ecx, [esp + 0x70]
call fcn.00402dc3
mov edi, eax
lea esi, [esp + 0x14]
call fcn.00402a2d
test al, al
je 0x40585b
lea esi, [esp + 0x20]
call fcn.004029fd
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
jmp 0x4058e1
lea esi, [esp + 0x14]
call fcn.00402b32
push 0
lea ecx, [esp + 0x90]
mov dword [esp + 0xa8], 0xf
call fcn.00403203
lea eax, [esp + 0x8c]
push eax
mov byte [esp + 0xbc], 1
call fcn.00404e45
push dword [esp + 0x2c]
push ebx
push dword [esp + 0x2c]
push dword [esp + 0x2c]
jmp 0x4059e2
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], eax
jmp 0x40595e
lea eax, [esp + 0x68]
lea ecx, [esp + 0x70]
call fcn.00402dc3
mov edi, eax
lea esi, [esp + 0x14]
call fcn.00402a2d
test al, al
jne 0x40597a
call fcn.004029ca
cmp byte [eax], 0x20
je 0x40597a
call fcn.00402b32
lea eax, [esp + 0x38]
lea ecx, [esp + 0x70]
call fcn.00402dc3
mov edi, eax
lea esi, [esp + 0x14]
call fcn.00402a2d
test al, al
je 0x405933
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x60]
lea ecx, [esp + 0x70]
call fcn.00402dc3
mov edi, eax
lea esi, [esp + 0x14]
call fcn.00402a2d
test al, al
jne 0x4059a7
call fcn.00402b32
push 0
lea ecx, [esp + 0x90]
mov dword [esp + 0xa8], 0xf
call fcn.00403203
lea eax, [esp + 0x8c]
push eax
mov byte [esp + 0xbc], 2
call fcn.00404e45
push dword [esp + 0x44]
push ebx
push dword [esp + 0x3c]
push dword [esp + 0x3c]
lea eax, [esp + 0x9c]
push eax
call fcn.00406332
lea eax, [esp + 0x8c]
push eax
mov eax, dword [esp + 0x20]
call fcn.00405dda
push 0
push 1
lea ecx, [esp + 0x94]
mov byte [esp + 0xc0], 0
call fcn.0040313e
lea eax, [esp + 0x50]
lea ecx, [esp + 0x70]
call fcn.00402dc3
mov edi, eax
lea esi, [esp + 0x14]
call fcn.00402a2d
test al, al
je 0x405817
push 0
push 1
lea ecx, [esp + 0x78]
call fcn.0040313e
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.004197af
mov esp, ebp
pop ebp
ret 4