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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc8
mov eax, dword [ebp + 8]
mov dword [esp + 0xb0], eax
mov ax, word [0x41d128]
mov word [esp + 0x4c], ax
mov eax, dword [0x41d124]
mov dword [esp + 0x48], eax
mov eax, dword [0x464ab8]
mov dword [esp + 0xb8], eax
lea esi, [esp + 0xa8]
lea edi, [esp + 0x80]
lea ebx, [esp + 0x58]
mov dword [esp + 0xac], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 0xdfa5a2aa
jmp 0x40c640
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [esp + 0x30], 0x503ac339
nop
nop
nop
nop
mov eax, dword [esp + 0x30]
cmp eax, 0x63236699
jg 0x40c6a0
cmp eax, 0x5cd7ef87
jg 0x40c6b0
cmp eax, 0x503ac338
jg 0x40c6da
cmp eax, 0x3473046d
jg 0x40c6f2
cmp eax, 0x274a6795
jg 0x40c72a
cmp eax, 0x901c4f66
jg 0x40c742
cmp eax, 0x8a10605d
jne 0x40c640
mov dword [0x464abc], 0
mov dword [esp + 0x30], 0x97c066c4
jmp 0x40c640
cmp eax, 0x6323669a
jne 0x40c640
jmp 0x40c624
cmp eax, 0x5cd7ef88
jne 0x40c640
mov dword [0x464ab8], 1
mov eax, dword [0x464abc]
mov dword [esp + 0xb4], eax
mov dword [esp + 0x30], 0xf318e217
jmp 0x40c640
cmp eax, 0x503ac339
jne 0x40c640
mov dword [esp + 0x30], 0x9807acc5
jmp 0x40c640
cmp eax, 0x3473046e
jne 0x40c640
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x464abc
mov dword [esp], 0
call dword [0x465a40]
sub esp, 0xc
mov dword [esp + 0x30], 0xf92d1de8
jmp 0x40c640
cmp eax, 0x274a6796
jne 0x40c640
mov dword [esp + 0x30], 0x6323669a
jmp 0x40c640
cmp eax, 0x1ca136bb
jg 0x40c7bf
cmp eax, 0x196a7c4c
jg 0x40c7d7
cmp eax, 0x138dc5b3
jg 0x40c7ef
cmp eax, 0x96f7886
jg 0x40c824
cmp eax, 0xfd7980ab
jg 0x40c857
cmp eax, 0x9278145f
jg 0x40c86f
cmp eax, 0x901c4f67
jne 0x40c640
mov eax, dword [esp + 0x54]
mov dword [esp + 0xac], eax
mov eax, dword [eax]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [0x465a48]
sub esp, 8
test eax, eax
mov eax, 0x92781460
jne 0x40c7b6
mov eax, 0x987d3af7
mov dword [esp + 0x30], eax
jmp 0x40c640
cmp eax, 0x1ca136bc
jne 0x40c640
mov dword [esp + 0x30], 0xf318e217
jmp 0x40c640
cmp eax, 0x196a7c4d
jne 0x40c640
mov dword [esp + 0x30], 0x987d3af7
jmp 0x40c640
cmp eax, 0x138dc5b4
jne 0x40c640
mov eax, dword [esp + 0xa8]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.004136a8
test eax, eax
mov eax, 0x196a7c4d
jne 0x40c81b
mov eax, 0xdaaaec05
mov dword [esp + 0x30], eax
jmp 0x40c640
cmp eax, 0x96f7887
jne 0x40c640
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [esp + 0xb4], 0xffffffff
mov dword [esp + 0x30], 0xa1f0caa1
jmp 0x40c640
cmp eax, 0xfd7980ac
jne 0x40c640
mov dword [esp + 0x30], 0x9807acc5
jmp 0x40c640
cmp eax, 0x961e515d
jg 0x40c93e
cmp eax, 0x92781460
jne 0x40c640
mov eax, dword [0x41d12c]
movzx eax, word [eax]
mov dword [esp + 0x40], eax
mov ecx, dword [0x41d12c]
movzx eax, word [ecx + eax*2 + 2]
mov dword [esp + 0x3c], eax
mov ecx, dword [0x41d12c]
mov edx, dword [esp + 0x40]
lea esi, [ecx + edx*2 + 4]
add ecx, 2
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], edi
call fcn.00402a50
mov eax, dword [0x41d130]
movzx eax, word [eax]
mov dword [esp + 0x40], eax
mov ecx, dword [0x41d130]
movzx eax, word [ecx + eax*2 + 2]
mov dword [esp + 0x3c], eax
mov ecx, dword [0x41d130]
mov edx, dword [esp + 0x40]
lea esi, [ecx + edx*2 + 4]
add ecx, 2
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.00402a50
mov eax, dword [esp + 0xa8]
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.004136a8
test eax, eax
mov eax, 0x138dc5b4
jne 0x40c92e
mov eax, 0xdaaaec05
mov dword [esp + 0x30], eax
lea esi, [esp + 0xa8]
jmp 0x40c640
cmp eax, 0xfa3a2765
jg 0x40ca43
cmp eax, 0xf92d1de7
jg 0x40ca53
cmp eax, 0xf318e216
jg 0x40ca95
cmp eax, 0xef8adb47
jg 0x40caad
cmp eax, 0xef3d8da5
jg 0x40caf8
cmp eax, 0xed97260e
jg 0x40cb1c
cmp eax, 0xe0fb50c5
jg 0x40cb9e
cmp eax, 0xe08ec902
jg 0x40cbae
cmp eax, 0xdfa5a2a9
jg 0x40cc03
cmp eax, 0xdbe9d28a
jg 0x40cc2b
cmp eax, 0xdb3d662f
jg 0x40cc85
cmp eax, 0xdaaaec04
jg 0x40ccba
cmp eax, 0xcf38c2ed
jg 0x40ccdc
cmp eax, 0xc8cefb38
jg 0x40cd16
cmp eax, 0xa72cc17a
jg 0x40cd2e
cmp eax, 0xa1f0caa0
jg 0x40cd54
cmp eax, 0x9a4f25f4
jg 0x40cd87
cmp eax, 0x987d3af6
jg 0x40cd9f
cmp eax, 0x9807acc4
jg 0x40cdb7
cmp eax, 0x961e515e
je 0x40cddc
cmp eax, 0x9642b5f1
jne 0x40cde9
mov al, byte [esp + 0xbf]
test al, al
mov eax, 0x97c066c4
jne 0x40ca3a
mov eax, 0x8a10605d
mov dword [esp + 0x30], eax
jmp 0x40c640
cmp eax, 0xfa3a2766
jne 0x40c640
jmp 0x40ce11
cmp eax, 0xf92d1de8
jne 0x40c640
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x464abc
mov dword [esp], 0
call dword [0x465a40]
sub esp, 0xc
test eax, eax
setne byte [esp + 0xbf]
mov dword [esp + 0x30], 0x9642b5f1
jmp 0x40c640
cmp eax, 0xf318e217
jne 0x40c640
mov dword [esp + 0x30], 0xa72cc17b
jmp 0x40c640
cmp eax, 0xef8adb48
jne 0x40c640
mov eax, dword [0x465a50]
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x50]
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 4], 0x2000000
call dword [esp + 0x2c]
sub esp, 0xc
test eax, eax
mov eax, 0xe08ec903
jne 0x40caef
mov eax, 0x503ac339
mov dword [esp + 0x30], eax
jmp 0x40c640
cmp eax, 0xef3d8da6
jne 0x40c640
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call fcn.00412504
mov dword [esp + 0x30], 0x5cd7ef88
jmp 0x40c640
cmp eax, 0xed97260f
jne 0x40c640
lea eax, [esp + 0x44]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x48]
mov dword [esp], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x220
mov dword [esp + 8], 0x20
mov dword [esp + 4], 2
call dword [0x465a44]
sub esp, 0x2c
test eax, eax
mov eax, 0x9a4f25f5
jne 0x40cb95
mov eax, 0xfd7980ac
mov dword [esp + 0x30], eax
jmp 0x40c640
cmp eax, 0xe0fb50c6
jne 0x40c640
jmp 0x40c6c1
cmp eax, 0xe08ec903
jne 0x40c640
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x50]
lea edx, [esp + 0x38]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x19
call dword [0x465a4c]
sub esp, 0x14
mov eax, 0xcf38c2ee
cmp dword [esp + 0x38], 0
jne 0x40cbfa
mov eax, 0x6323669a
mov dword [esp + 0x30], eax
jmp 0x40c640
cmp eax, 0xdfa5a2aa
jne 0x40c640
mov eax, 0xe0fb50c6
cmp dword [esp + 0xb8], 0
jne 0x40cc22
mov eax, 0xdb3d6630
mov dword [esp + 0x30], eax
jmp 0x40c640
cmp eax, 0xdbe9d28b
jne 0x40c640
mov ebx, edi
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x38]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], ecx
mov dword [esp], edx
mov dword [esp + 4], 0x19
call dword [0x465a4c]
sub esp, 0x14
test eax, eax
mov eax, 0x901c4f67
jne 0x40cc76
mov eax, 0x274a6796
mov dword [esp + 0x30], eax
mov edi, ebx
lea ebx, [esp + 0x58]
jmp 0x40c640
cmp eax, 0xdb3d6630
jne 0x40c640
call fcn.00402ed0
mov ecx, dword [esp + 0xb0]
mov dword [ecx], eax
mov dword [esp + 0x34], eax
mov ecx, 0xef8adb48
cmp eax, 5
ja 0x40ccb1
mov ecx, 0xed97260f
mov dword [esp + 0x30], ecx
jmp 0x40c640
cmp eax, 0xdaaaec05
jne 0x40c640
mov dword [0x464abc], 1
mov dword [esp + 0x30], 0x196a7c4d
jmp 0x40c640
cmp eax, 0xcf38c2ee
jne 0x40c640
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.0041253c
mov dword [esp + 0x54], eax
mov ecx, 0x961e515e
test eax, eax
je 0x40cd0d
mov ecx, 0xdbe9d28b
mov dword [esp + 0x30], ecx
jmp 0x40c640
cmp eax, 0xc8cefb39
jne 0x40c640
mov dword [esp + 0x30], 0xa72cc17b
jmp 0x40c640
cmp eax, 0xa72cc17b
jne 0x40c640
mov eax, dword [esp + 0xb4]
mov dword [esp + 0xc0], eax
mov dword [esp + 0x30], 0xfa3a2766
jmp 0x40c640
cmp eax, 0xa1f0caa1
jne 0x40c640
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [esp + 0xb4], 0xffffffff
mov dword [esp + 0x30], 0x1ca136bc
jmp 0x40c640
cmp eax, 0x9a4f25f5
jne 0x40c640
mov dword [esp + 0x30], 0xf92d1de8
jmp 0x40c640
cmp eax, 0x987d3af7
jne 0x40c640
mov dword [esp + 0x30], 0x274a6796
jmp 0x40c640
cmp eax, 0x9807acc5
jne 0x40c640
mov eax, 0xef3d8da6
cmp dword [esp + 0x54], 0
jne 0x40cdd3
mov eax, 0x5cd7ef88
mov dword [esp + 0x30], eax
jmp 0x40c640
mov dword [esp + 0x30], 0xa1f0caa1
jmp 0x40c640
cmp eax, 0x97c066c4
jne 0x40c640
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call dword [0x465a3c]
sub esp, 4
mov dword [esp + 0x30], 0xfd7980ac
jmp 0x40c640
mov eax, dword [esp + 0xc0]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret