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

Disassembly:
push 0xffffffffffffffff
push 0x4f18af
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x52a6ec]
xor eax, esp
mov dword [esp + 0xdc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0xf4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x104]
mov edi, edx
mov eax, dword [edi]
mov eax, dword [eax]
mov esi, ecx
push 0x5c
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], edi
call fcn.004cab30
mov eax, dword [ebp]
mov ebx, dword [esi]
add esp, 8
add eax, 0x10
push eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, 1
mov dword [esp + 0x20], esi
cmp ebx, esi
jle 0x40cdc2
mov dword [esp + 0x14], 2
xor ebx, ebx
jmp 0x40cb94
mov edi, dword [esp + 0x1c]
mov ecx, dword [edi]
mov edi, dword [ecx + esi*4]
cmp byte [edi], 0x2d
lea eax, [ecx + esi*4]
je 0x40cbe2
mov edx, dword [esp + 0x24]
mov ecx, dword [edx]
sub ecx, esi
lea edx, [ecx*4 - 4]
push edx
lea ecx, [eax + 4]
push ecx
push eax
call fcn.004c9610
mov edx, dword [esp + 0x30]
mov eax, dword [edx]
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov dword [edx + eax*4 - 4], edi
mov eax, 1
sub dword [esp + 0x24], eax
add esp, 0xc
sub esi, eax
sub dword [esp + 0x14], eax
jmp 0x40cdaf
inc edi
cmp byte [edi], 0x2d
jne 0x40cbe9
inc edi
cmp byte [edi], bl
je 0x40ce9f
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x100], ebx
mov edx, dword [ebp]
push ecx
push edx
mov eax, edi
call fcn.0040bb30
cmp eax, ebx
jne 0x40ce08
lea eax, [ebp + 0x14]
push eax
lea ecx, [esp + 0x30]
call fcn.0040dfa0
push ebx
push 0x506c50
mov ecx, eax
call fcn.00404fd0
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.00404fd0
lea ecx, [esp + 0x48]
push ecx
mov eax, str.unknown_command_line_flag_
lea ecx, [esp + 0x84]
mov byte [esp + 0x100], 1
call fcn.0040ecc0
add esp, 4
mov ecx, eax
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x30]
mov byte [esp + 0x100], 2
call fcn.0040eda0
add esp, 4
push eax
mov eax, 0x5071a8
lea ecx, [esp + 0xa0]
mov byte [esp + 0x100], 3
call fcn.0040ecc0
add esp, 4
mov edi, eax
lea eax, [ebp + 4]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x100], 4
call fcn.0040dfa0
mov esi, eax
call fcn.00408810
mov esi, 0x10
mov byte [esp + 0xfc], 3
cmp dword [esp + 0xb0], esi
jb 0x40ccfc
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.004c9387
add esp, 4
mov edi, 0xf
mov byte [esp + 0xfc], 2
mov dword [esp + 0xb0], edi
mov dword [esp + 0xac], ebx
mov byte [esp + 0x9c], bl
cmp dword [esp + 0x78], esi
jb 0x40cd31
mov edx, dword [esp + 0x64]
push edx
call fcn.004c9387
add esp, 4
mov byte [esp + 0xfc], 1
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
cmp dword [esp + 0x94], esi
jb 0x40cd5e
mov eax, dword [esp + 0x80]
push eax
call fcn.004c9387
add esp, 4
mov byte [esp + 0xfc], bl
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
cmp dword [esp + 0x5c], esi
jb 0x40cd8d
mov ecx, dword [esp + 0x48]
push ecx
call fcn.004c9387
add esp, 4
mov dword [esp + 0xfc], 0xffffffff
cmp dword [esp + 0x40], esi
jb 0x40cdab
mov edx, dword [esp + 0x2c]
push edx
call fcn.004c9387
add esp, 4
mov esi, dword [esp + 0x20]
inc dword [esp + 0x14]
inc esi
mov dword [esp + 0x20], esi
cmp esi, dword [esp + 0x18]
jl 0x40cb90
mov esi, 0x10
mov eax, dword [ebp]
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x18]
mov byte [0x52ffbc], 1
mov ecx, dword [esp + 0xf4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xdc]
xor ecx, esp
call fcn.004c9392
add esp, 0xec
ret 4
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
jne 0x40ce31
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x18]
jge 0x40cea9
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx]
mov ecx, dword [ecx + esi*4 + 4]
inc esi
inc dword [esp + 0x14]
mov dword [esp + 0x28], ecx
push ecx
push ebp
mov edx, eax
lea ecx, [esp + 0xc0]
call fcn.0040d080
mov edi, 0x10
cmp dword [esp + 0xcc], edi
jb 0x40ce5f
mov edx, dword [esp + 0xb8]
push edx
call fcn.004c9387
add esp, 4
mov dword [esp + 0xfc], 0xffffffff
mov dword [esp + 0xcc], 0xf
mov dword [esp + 0xc8], ebx
mov byte [esp + 0xb8], bl
cmp dword [esp + 0x40], edi
jb 0x40cdaf
mov eax, dword [esp + 0x2c]
push eax
call fcn.004c9387
add esp, 4
jmp 0x40cdaf
inc esi
mov dword [esp + 0x18], esi
jmp 0x40cdc2
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.00404fd0
lea ecx, [esp + 0x48]
push ecx
mov eax, str.flag_
lea ecx, [esp + 0xd8]
mov byte [esp + 0x100], 5
call fcn.0040ecc0
add esp, 4
mov edx, dword [esp + 0x1c]
mov byte [esp + 0xfc], 6
mov ecx, dword [edx]
push eax
mov eax, dword [ecx + esi*4]
lea ecx, [esp + 0xa0]
call fcn.0040ecc0
add esp, 4
push eax
mov eax, 0x507214
lea ecx, [esp + 0x68]
mov byte [esp + 0x100], 7
call fcn.0040ecc0
add esp, 4
push eax
mov eax, str._is_missing_its_argument_n
lea ecx, [esp + 0x84]
mov byte [esp + 0x100], 8
call fcn.0040ecc0
add esp, 4
mov edi, eax
lea edx, [ebp + 4]
push edx
lea ecx, [esp + 0x30]
mov byte [esp + 0x100], 9
call fcn.0040dfa0
mov esi, eax
call fcn.00408810
mov esi, 0x10
mov byte [esp + 0xfc], 8
cmp dword [esp + 0x94], esi
jb 0x40cf86
mov eax, dword [esp + 0x80]
push eax
call fcn.004c9387
add esp, 4
mov edi, 0xf
mov byte [esp + 0xfc], 7
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
cmp dword [esp + 0x78], esi
jb 0x40cfbb
mov ecx, dword [esp + 0x64]
push ecx
call fcn.004c9387
add esp, 4
mov byte [esp + 0xfc], 6
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
cmp dword [esp + 0xb0], esi
jb 0x40cfe8
mov edx, dword [esp + 0x9c]
push edx
call fcn.004c9387
add esp, 4
mov byte [esp + 0xfc], 5
mov dword [esp + 0xb0], edi
mov dword [esp + 0xac], ebx
mov byte [esp + 0x9c], bl
cmp dword [esp + 0xe8], esi
jb 0x40d01e
mov eax, dword [esp + 0xd4]
push eax
call fcn.004c9387
add esp, 4
mov byte [esp + 0xfc], bl
mov dword [esp + 0xe8], edi
mov dword [esp + 0xe4], ebx
mov byte [esp + 0xd4], bl
cmp dword [esp + 0x5c], esi
jb 0x40d04d
mov ecx, dword [esp + 0x48]
push ecx
call fcn.004c9387
add esp, 4
mov dword [esp + 0xfc], 0xffffffff
cmp dword [esp + 0x40], esi
jb 0x40cdc7
mov edx, dword [esp + 0x2c]
push edx
call fcn.004c9387
add esp, 4
jmp 0x40cdc7