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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48f945
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x4ae7cc]
xor eax, esp
mov dword [esp + 0xe0], eax
push ebx
push esi
push edi
mov eax, dword [0x4ae7cc]
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.00477ab0
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 0x40a6a0
mov dword [esp + 0x10], 2
xor ebx, ebx
jmp 0x40a469
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 0x40a4b7
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.00475690
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 0x40a68d
inc edi
cmp byte [edi], 0x2d
jne 0x40a4be
inc edi
cmp byte [edi], bl
je 0x40a780
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.004093e0
cmp eax, ebx
jne 0x40a6e5
mov edi, dword [esp + 0x18]
lea edx, [edi + 0x14]
push edx
lea ecx, [esp + 0x30]
call fcn.0040b990
push ebx
push 0x49c3fa
mov ecx, eax
call fcn.00402d50
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.00402d50
lea eax, [esp + 0x48]
push eax
mov eax, str.unknown_command_line_flag_
lea ecx, [esp + 0x84]
mov byte [esp + 0x104], 1
call fcn.0040c7f0
add esp, 4
mov ecx, eax
lea edx, [esp + 0x9c]
push edx
lea eax, [esp + 0x30]
mov byte [esp + 0x104], 2
call fcn.0040c8d0
add esp, 4
push eax
mov eax, 0x49c4f8
lea ecx, [esp + 0x68]
mov byte [esp + 0x104], 3
call fcn.0040c7f0
add esp, 4
mov esi, eax
add edi, 4
push edi
lea ecx, [esp + 0x30]
mov byte [esp + 0x104], 4
call fcn.0040b990
mov edi, esi
mov esi, eax
call fcn.0040bbf0
mov esi, 0x10
mov byte [esp + 0x100], 3
cmp dword [esp + 0x78], esi
jb 0x40a5d4
mov eax, dword [esp + 0x64]
push eax
call fcn.00475405
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 0x40a606
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.00475405
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 0x40a63c
mov edx, dword [esp + 0x80]
push edx
call fcn.00475405
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 0x40a66b
mov eax, dword [esp + 0x48]
push eax
call fcn.00475405
add esp, 4
mov dword [esp + 0x100], 0xffffffff
cmp dword [esp + 0x40], esi
jb 0x40a689
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00475405
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 0x40a465
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 [0x4b1e31], 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.00475410
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
jne 0x40a70e
mov edx, dword [esp + 0x10]
cmp edx, dword [esp + 0x14]
jge 0x40a78a
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.0040a960
mov edi, 0x10
cmp dword [esp + 0xcc], edi
jb 0x40a740
mov edx, dword [esp + 0xb8]
push edx
call fcn.00475405
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 0x40a68d
mov eax, dword [esp + 0x2c]
push eax
call fcn.00475405
add esp, 4
jmp 0x40a68d
inc esi
mov dword [esp + 0x14], esi
jmp 0x40a6a0
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.00402d50
lea ecx, [esp + 0x48]
push ecx
mov eax, str.flag_
lea ecx, [esp + 0xd8]
mov byte [esp + 0x104], 5
call fcn.0040c7f0
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.0040c7f0
add esp, 4
push eax
mov eax, 0x49c564
lea ecx, [esp + 0xa0]
mov byte [esp + 0x104], 7
call fcn.0040c7f0
add esp, 4
push eax
mov eax, str._is_missing_its_argument_n
lea ecx, [esp + 0x84]
mov byte [esp + 0x104], 8
call fcn.0040c7f0
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.0040b990
mov esi, eax
call fcn.0040bbf0
mov esi, 0x10
mov byte [esp + 0x100], 8
cmp dword [esp + 0x94], esi
jb 0x40a86b
mov eax, dword [esp + 0x80]
push eax
call fcn.00475405
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 0x40a8a6
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.00475405
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 0x40a8d6
mov edx, dword [esp + 0x64]
push edx
call fcn.00475405
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 0x40a903
mov eax, dword [esp + 0xd4]
push eax
call fcn.00475405
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 0x40a932
mov ecx, dword [esp + 0x48]
push ecx
call fcn.00475405
add esp, 4
mov dword [esp + 0x100], 0xffffffff
cmp dword [esp + 0x40], esi
jb 0x40a6a5
mov edx, dword [esp + 0x2c]
push edx
call fcn.00475405
add esp, 4
jmp 0x40a6a5