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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc0
mov eax, dword [ebp + 8]
mov dword [esp + 0xb0], eax
mov ax, word [0x41c128]
mov word [esp + 0x4c], ax
mov eax, dword [0x41c124]
mov dword [esp + 0x48], eax
mov eax, dword [0x4689a4]
mov dword [esp + 0xb8], eax
lea esi, [esp + 0x50]
lea ebx, [esp + 0x80]
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], 0xec7e331f
jmp 0x40c650
mov dword [esp + 0x30], eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x30]
cmp eax, 0x498812d8
jg 0x40c6a0
cmp eax, 0x83cbf37d
jg 0x40c6e0
cmp eax, 0x8256cc16
jne 0x40c650
mov edi, dword [0x46993c]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], 0x2000000
call edi
sub esp, 0xc
test eax, eax
mov eax, 0xc5ecd247
jne 0x40c697
mov eax, 0x2b460514
mov dword [esp + 0x30], eax
jmp 0x40c650
cmp eax, 0x498812d9
jne 0x40c650
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x4689a8
mov dword [esp], 0
call dword [0x46992c]
sub esp, 0xc
test eax, eax
mov eax, 0xfab92725
jne 0x40c63d
mov eax, 0x9249272d
jmp 0x40c63d
cmp eax, 0x40ab3d52
jg 0x40c75e
cmp eax, 0x3f9aaec7
jg 0x40c81f
cmp eax, 0x369ae405
jg 0x40c8a1
cmp eax, 0x2b460513
jg 0x40c8cf
cmp eax, 0x29ee592b
jg 0x40c8e7
cmp eax, 0x21e87f19
jg 0x40c8ff
cmp eax, 0x84cf26e4
jg 0x40c923
cmp eax, 0x83cbf37e
jne 0x40c650
call fcn.00402bb0
mov ecx, dword [esp + 0xb0]
mov dword [ecx], eax
mov dword [esp + 0x34], eax
mov ecx, 0x8256cc16
cmp eax, 5
ja 0x40c755
mov ecx, 0x3f9aaec8
mov dword [esp + 0x30], ecx
jmp 0x40c650
cmp eax, 0x40ab3d53
jne 0x40c650
mov eax, dword [0x41c12c]
movzx eax, word [eax]
mov dword [esp + 0x40], eax
mov ecx, dword [0x41c12c]
movzx eax, word [ecx + eax*2 + 2]
mov dword [esp + 0x3c], eax
mov ecx, dword [0x41c12c]
mov edx, dword [esp + 0x40]
lea edi, [ecx + edx*2 + 4]
add ecx, 2
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.004027e0
mov eax, dword [0x41c130]
movzx eax, word [eax]
mov dword [esp + 0x40], eax
mov ecx, dword [0x41c130]
movzx eax, word [ecx + eax*2 + 2]
mov dword [esp + 0x3c], eax
mov ecx, dword [0x41c130]
mov edx, dword [esp + 0x40]
lea edi, [ecx + edx*2 + 4]
add ecx, 2
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
lea eax, [esp + 0x58]
mov dword [esp], eax
call fcn.004027e0
mov eax, dword [esp + 0xa8]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00413294
test eax, eax
mov eax, 0xa93e9d4b
jne 0x40c816
mov eax, 0x8e8ce6ef
mov dword [esp + 0x30], eax
jmp 0x40c650
cmp eax, 0x3f9aaec8
jne 0x40c650
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 [0x469930]
sub esp, 0x2c
test eax, eax
mov eax, 0x498812d9
jne 0x40c898
mov eax, 0x84cf26e5
mov dword [esp + 0x30], eax
jmp 0x40c650
cmp eax, 0x369ae406
jne 0x40c650
mov dword [0x4689a4], 1
mov eax, dword [0x4689a8]
mov dword [esp + 0xb4], eax
mov dword [esp + 0x30], 0x99b737f3
jmp 0x40c650
cmp eax, 0x2b460514
jne 0x40c650
mov dword [esp + 0x30], 0xfb644133
jmp 0x40c650
cmp eax, 0x29ee592c
jne 0x40c650
mov dword [esp + 0x30], 0x9728ce74
jmp 0x40c650
cmp eax, 0x21e87f1a
jne 0x40c650
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call fcn.004120f8
mov dword [esp + 0x30], 0x369ae406
jmp 0x40c650
cmp eax, 0x8e8ce6ee
jg 0x40c942
cmp eax, 0x84cf26e5
jne 0x40c650
mov dword [esp + 0x30], 0xfb644133
jmp 0x40c650
cmp eax, 0x9117c683
jg 0x40c96b
cmp eax, 0x8e8ce6ef
jne 0x40c650
mov dword [0x4689a8], 1
mov dword [esp + 0x30], 0xc8f116da
jmp 0x40c650
cmp eax, 0x9249272c
jg 0x40c982
cmp eax, 0x9117c684
jne 0x40c650
jmp 0x40c8b6
cmp eax, 0x93984d40
jg 0x40c9ab
cmp eax, 0x9249272d
jne 0x40c650
mov dword [0x4689a8], 0
mov dword [esp + 0x30], 0xfab92725
jmp 0x40c650
cmp eax, 0x9728ce73
jg 0x40c9e5
cmp eax, 0x93984d41
jne 0x40c650
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], 0x99b737f3
jmp 0x40c650
cmp eax, 0x99b737f2
jg 0x40ca04
cmp eax, 0x9728ce74
jne 0x40c650
mov dword [esp + 0x30], 0xc66e82ac
jmp 0x40c650
cmp eax, 0xa93e9d4a
jg 0x40ca1b
cmp eax, 0x99b737f3
jne 0x40c650
jmp 0x40cc69
cmp eax, 0xc11a4027
jg 0x40ca5b
cmp eax, 0xa93e9d4b
jne 0x40c650
mov eax, dword [esp + 0xa8]
lea ecx, [esp + 0x58]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00413294
test eax, eax
mov eax, 0xc8f116da
jne 0x40ca52
mov eax, 0x8e8ce6ef
mov dword [esp + 0x30], eax
jmp 0x40c650
cmp eax, 0xc3662cc2
jg 0x40cab4
cmp eax, 0xc11a4028
jne 0x40c650
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
lea edi, [esp + 0x38]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp], edx
mov dword [esp + 4], 0x19
call dword [0x469938]
sub esp, 0x14
test eax, eax
mov eax, 0xc3662cc3
jne 0x40caab
mov eax, 0x9728ce74
mov dword [esp + 0x30], eax
jmp 0x40c650
cmp eax, 0xc5ecd246
jg 0x40cb01
cmp eax, 0xc3662cc3
jne 0x40c650
mov eax, dword [esp + 0x54]
mov dword [esp + 0xac], eax
mov eax, dword [eax]
lea ecx, [esp + 0xa8]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [0x469934]
sub esp, 8
test eax, eax
mov eax, 0x40ab3d53
jne 0x40caf8
mov eax, 0x29ee592c
mov dword [esp + 0x30], eax
jmp 0x40c650
cmp eax, 0xfb644132
jg 0x40cb58
cmp eax, 0xfab92724
jg 0x40cb7d
cmp eax, 0xec7e331e
jg 0x40cba5
cmp eax, 0xe6986fb1
jg 0x40cbcd
cmp eax, 0xc5ecd247
je 0x40cc07
cmp eax, 0xc66e82ac
jne 0x40cc51
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [esp + 0x30], 0x2b460514
jmp 0x40c650
cmp eax, 0xfb644133
jne 0x40c650
mov eax, 0x21e87f1a
cmp dword [esp + 0x54], 0
jne 0x40cb74
mov eax, 0x369ae406
mov dword [esp + 0x30], eax
jmp 0x40c650
cmp eax, 0xfab92725
jne 0x40c650
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call dword [0x469928]
sub esp, 4
mov dword [esp + 0x30], 0x84cf26e5
jmp 0x40c650
cmp eax, 0xec7e331f
jne 0x40c650
mov eax, 0x9117c684
cmp dword [esp + 0xb8], 0
jne 0x40cbc4
mov eax, 0x83cbf37e
mov dword [esp + 0x30], eax
jmp 0x40c650
cmp eax, 0xe6986fb2
jne 0x40c650
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00412130
mov dword [esp + 0x54], eax
mov ecx, 0x93984d41
test eax, eax
je 0x40cbfe
mov ecx, 0xc11a4028
mov dword [esp + 0x30], ecx
jmp 0x40c650
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 [0x469938]
sub esp, 0x14
mov eax, 0xe6986fb2
cmp dword [esp + 0x38], 0
jne 0x40cc48
mov eax, 0xc66e82ac
mov dword [esp + 0x30], eax
jmp 0x40c650
cmp eax, 0xc8f116da
jne 0x40c650
mov dword [esp + 0x30], 0x29ee592c
jmp 0x40c650
mov eax, dword [esp + 0xb4]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret