Function at 0x405890
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49aa95
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x4bc7dc]
xor eax, esp
mov dword [esp + 0xe0], eax
push ebx
push esi
push edi
mov eax, dword [0x4bc7dc]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, edx
mov esi, ecx
mov ecx, dword [edi]
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
push 0x5c
push eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x24], edi
call fcn.004817f0
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
mov ebx, dword [esi]
add esp, 8
add eax, 0x10
push eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, 1
mov dword [esp + 0x20], esi
cmp ebx, esi
jle 0x405b60
mov dword [esp + 0x10], 2
xor ebx, ebx
jmp 0x405929
mov edi, dword [esp + 0x1c]
mov eax, dword [edi]
mov edi, dword [eax + esi*4]
cmp byte [edi], 0x2d
lea eax, [eax + esi*4]
je 0x405977
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
sub edx, esi
lea ecx, [edx*4 - 4]
push ecx
lea edx, [eax + 4]
push edx
push eax
call fcn.00480030
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
mov edx, dword [esp + 0x28]
mov eax, dword [edx]
mov dword [eax + ecx*4 - 4], edi
mov eax, 1
sub dword [esp + 0x20], eax
add esp, 0xc
sub esi, eax
sub dword [esp + 0x10], eax
jmp 0x405b4d
inc edi
cmp byte [edi], 0x2d
jne 0x40597e
inc edi
cmp byte [edi], bl
je 0x405c40
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
mov dword [esp + 0x104], ebx
mov ecx, dword [eax]
push edx
push ecx
mov eax, edi
call fcn.004048c0
cmp eax, ebx
jne 0x405ba5
mov edi, dword [esp + 0x18]
lea edx, [edi + 0x14]
push edx
lea ecx, [esp + 0x30]
call fcn.00406e50
push ebx
push 0x4a52e6
mov ecx, eax
call fcn.00402300
push 7
push str.ERROR:
lea ecx, [esp + 0x50]
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
call fcn.00402300
lea eax, [esp + 0x48]
push eax
mov eax, str.unknown_command_line_flag_
lea ecx, [esp + 0x84]
mov byte [esp + 0x104], 1
call fcn.00407cb0
add esp, 4
mov ecx, eax
lea edx, [esp + 0x9c]
push edx
lea eax, [esp + 0x30]
mov byte [esp + 0x104], 2
call fcn.00407d90
add esp, 4
push eax
mov eax, 0x4a8560
lea ecx, [esp + 0x68]
mov byte [esp + 0x104], 3
call fcn.00407cb0
add esp, 4
mov esi, eax
add edi, 4
push edi
lea ecx, [esp + 0x30]
mov byte [esp + 0x104], 4
call fcn.00406e50
mov edi, esi
mov esi, eax
call fcn.004070b0
mov esi, 0x10
mov byte [esp + 0x100], 3
cmp dword [esp + 0x78], esi
jb 0x405a94
mov eax, dword [esp + 0x64]
push eax
call fcn.0047fe1e
add esp, 4
mov edi, 0xf
mov byte [esp + 0x100], 2
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
cmp dword [esp + 0xb0], esi
jb 0x405ac6
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.0047fe1e
add esp, 4
mov byte [esp + 0x100], 1
mov dword [esp + 0xb0], edi
mov dword [esp + 0xac], ebx
mov byte [esp + 0x9c], bl
cmp dword [esp + 0x94], esi
jb 0x405afc
mov edx, dword [esp + 0x80]
push edx
call fcn.0047fe1e
add esp, 4
mov byte [esp + 0x100], bl
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
cmp dword [esp + 0x5c], esi
jb 0x405b2b
mov eax, dword [esp + 0x48]
push eax
call fcn.0047fe1e
add esp, 4
mov dword [esp + 0x100], 0xffffffff
cmp dword [esp + 0x40], esi
jb 0x405b49
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0047fe1e
add esp, 4
mov esi, dword [esp + 0x20]
inc dword [esp + 0x10]
inc esi
mov dword [esp + 0x20], esi
cmp esi, dword [esp + 0x14]
jl 0x405925
mov esi, 0x10
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
add ecx, esi
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x14]
mov byte [0x4c0275], 1
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.0047fe29
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
jne 0x405bce
mov edx, dword [esp + 0x10]
cmp edx, dword [esp + 0x14]
jge 0x405c4a
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov ecx, dword [edx + esi*4 + 4]
inc esi
inc dword [esp + 0x10]
mov dword [esp + 0x24], ecx
push ecx
mov ecx, dword [esp + 0x1c]
push ecx
mov edx, eax
lea ecx, [esp + 0xc0]
call fcn.00405e20
mov edi, 0x10
cmp dword [esp + 0xcc], edi
jb 0x405c00
mov edx, dword [esp + 0xb8]
push edx
call fcn.0047fe1e
add esp, 4
mov dword [esp + 0x100], 0xffffffff
mov dword [esp + 0xcc], 0xf
mov dword [esp + 0xc8], ebx
mov byte [esp + 0xb8], bl
cmp dword [esp + 0x40], edi
jb 0x405b4d
mov eax, dword [esp + 0x2c]
push eax
call fcn.0047fe1e
add esp, 4
jmp 0x405b4d
inc esi
mov dword [esp + 0x14], esi
jmp 0x405b60
push 7
push str.ERROR:
lea ecx, [esp + 0x50]
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
call fcn.00402300
lea ecx, [esp + 0x48]
push ecx
mov eax, str.flag_
lea ecx, [esp + 0xd8]
mov byte [esp + 0x104], 5
call fcn.00407cb0
add esp, 4
mov edx, dword [esp + 0x1c]
mov byte [esp + 0x100], 6
mov ecx, dword [edx]
push eax
mov eax, dword [ecx + esi*4]
lea ecx, [esp + 0x68]
call fcn.00407cb0
add esp, 4
push eax
mov eax, 0x4a85cc
lea ecx, [esp + 0xa0]
mov byte [esp + 0x104], 7
call fcn.00407cb0
add esp, 4
push eax
mov eax, str._is_missing_its_argument_n
lea ecx, [esp + 0x84]
mov byte [esp + 0x104], 8
call fcn.00407cb0
add esp, 4
mov edi, eax
mov edx, dword [esp + 0x18]
add edx, 4
push edx
lea ecx, [esp + 0x30]
mov byte [esp + 0x104], 9
call fcn.00406e50
mov esi, eax
call fcn.004070b0
mov esi, 0x10
mov byte [esp + 0x100], 8
cmp dword [esp + 0x94], esi
jb 0x405d2b
mov eax, dword [esp + 0x80]
push eax
call fcn.0047fe1e
add esp, 4
mov edi, 0xf
mov byte [esp + 0x100], 7
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
cmp dword [esp + 0xb0], esi
jb 0x405d66
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.0047fe1e
add esp, 4
mov byte [esp + 0x100], 6
mov dword [esp + 0xb0], edi
mov dword [esp + 0xac], ebx
mov byte [esp + 0x9c], bl
cmp dword [esp + 0x78], esi
jb 0x405d96
mov edx, dword [esp + 0x64]
push edx
call fcn.0047fe1e
add esp, 4
mov byte [esp + 0x100], 5
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
cmp dword [esp + 0xe8], esi
jb 0x405dc3
mov eax, dword [esp + 0xd4]
push eax
call fcn.0047fe1e
add esp, 4
mov byte [esp + 0x100], bl
mov dword [esp + 0xe8], edi
mov dword [esp + 0xe4], ebx
mov byte [esp + 0xd4], bl
cmp dword [esp + 0x5c], esi
jb 0x405df2
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0047fe1e
add esp, 4
mov dword [esp + 0x100], 0xffffffff
cmp dword [esp + 0x40], esi
jb 0x405b65
mov edx, dword [esp + 0x2c]
push edx
call fcn.0047fe1e
add esp, 4
jmp 0x405b65