Function at 0x40d650
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 [0x47d128]
mov word [esp + 0x4c], ax
mov eax, dword [0x47d124]
mov dword [esp + 0x48], eax
mov eax, dword [0x4c47e4]
mov dword [esp + 0xb8], eax
lea edi, [esp + 0x58]
lea esi, [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], 0x1dacd8e8
jmp 0x40d7a0
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, 0x8eb4c5be
jg 0x40d7f0
cmp eax, 0x8a3128a6
jne 0x40d7a0
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x4c47e8
mov dword [esp], 0
call dword [0x4c576c]
sub esp, 0xc
test eax, eax
mov eax, 0x7b4f3e76
jne 0x40d78d
mov eax, 0xfdeeb787
jmp 0x40d78d
cmp eax, 0x91059a25
jg 0x40d810
cmp eax, 0x8eb4c5bf
jne 0x40d7a0
mov dword [esp + 0x30], 0x9af7b5fd
jmp 0x40d7a0
cmp eax, 0x7b4f3e75
jg 0x40d920
cmp eax, 0x79e4c3fb
jg 0x40d948
cmp eax, 0x71bcaeab
jg 0x40d96c
cmp eax, 0x577ee020
jg 0x40da29
cmp eax, 0x46876ba2
jg 0x40da41
cmp eax, 0x32c29de0
jg 0x40da69
cmp eax, 0x2bf80cb8
jg 0x40daaf
cmp eax, 0x2ae5543d
jg 0x40dae4
cmp eax, 0x2753c75f
jg 0x40daf4
cmp eax, 0x1dacd8e7
jg 0x40db22
cmp eax, 0xc4ecb20
jg 0x40db4a
cmp eax, 0x75f26c5
jg 0x40db7d
cmp eax, 0xfdeeb786
jg 0x40db95
cmp eax, 0xc1c552b0
jg 0x40dbb7
cmp eax, 0xbfc0ff4b
jg 0x40dc09
cmp eax, 0xb62d4be6
jg 0x40dc19
cmp eax, 0x920ba76b
jg 0x40dc3e
cmp eax, 0x91059a26
jne 0x40d7a0
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 [0x4c5778]
sub esp, 0x14
mov eax, 0xb0a7714f
cmp dword [esp + 0x38], 0
jne 0x40d917
mov eax, 0x46876ba3
mov dword [esp + 0x30], eax
jmp 0x40d7a0
cmp eax, 0x7b4f3e76
jne 0x40d7a0
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call dword [0x4c5768]
sub esp, 4
mov dword [esp + 0x30], 0x9aaaa070
jmp 0x40d7a0
cmp eax, 0x79e4c3fc
jne 0x40d7a0
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call fcn.0041333b
mov dword [esp + 0x30], 0x2753c760
jmp 0x40d7a0
cmp eax, 0x71bcaeac
jne 0x40d7a0
mov eax, dword [0x47d12c]
movzx eax, word [eax]
mov dword [esp + 0x40], eax
mov ecx, dword [0x47d12c]
movzx eax, word [ecx + eax*2 + 2]
mov dword [esp + 0x3c], eax
mov ecx, dword [0x47d12c]
mov edx, dword [esp + 0x40]
lea ebx, [ecx + edx*2 + 4]
add ecx, 2
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], esi
call fcn.00403110
mov eax, dword [0x47d130]
movzx eax, word [eax]
mov dword [esp + 0x40], eax
mov ecx, dword [0x47d130]
movzx eax, word [ecx + eax*2 + 2]
mov dword [esp + 0x3c], eax
mov ecx, dword [0x47d130]
mov edx, dword [esp + 0x40]
lea ebx, [ecx + edx*2 + 4]
add ecx, 2
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], edi
call fcn.00403110
mov eax, dword [esp + 0xa8]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.004144aa
test eax, eax
mov eax, 0x920ba76c
jne 0x40da20
mov eax, 0x94901b81
mov dword [esp + 0x30], eax
jmp 0x40d7a0
cmp eax, 0x577ee021
jne 0x40d7a0
mov dword [esp + 0x30], 0xb62d4be7
jmp 0x40d7a0
cmp eax, 0x46876ba3
jne 0x40d7a0
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [esp + 0x30], 0x577ee021
jmp 0x40d7a0
cmp eax, 0x32c29de1
jne 0x40d7a0
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 [0x4c5774]
sub esp, 8
test eax, eax
mov eax, 0x71bcaeac
jne 0x40daa6
mov eax, 0x8eb4c5bf
mov dword [esp + 0x30], eax
jmp 0x40d7a0
cmp eax, 0x2bf80cb9
jne 0x40d7a0
call fcn.00403b50
mov ecx, dword [esp + 0xb0]
mov dword [ecx], eax
mov dword [esp + 0x34], eax
mov ecx, 0xb19ccdfa
cmp eax, 5
ja 0x40dadb
mov ecx, 0xb1aa6a33
mov dword [esp + 0x30], ecx
jmp 0x40d7a0
cmp eax, 0x2ae5543e
jne 0x40d7a0
jmp 0x40dddb
cmp eax, 0x2753c760
jne 0x40d7a0
mov dword [0x4c47e4], 1
mov eax, dword [0x4c47e8]
mov dword [esp + 0xb4], eax
mov dword [esp + 0x30], 0x2ae5543e
jmp 0x40d7a0
cmp eax, 0x1dacd8e8
jne 0x40d7a0
mov eax, 0xbfc0ff4c
cmp dword [esp + 0xb8], 0
jne 0x40db41
mov eax, 0x2bf80cb9
mov dword [esp + 0x30], eax
jmp 0x40d7a0
cmp eax, 0xc4ecb21
jne 0x40d7a0
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], 0x2ae5543e
jmp 0x40d7a0
cmp eax, 0x75f26c6
jne 0x40d7a0
mov dword [esp + 0x30], 0x8eb4c5bf
jmp 0x40d7a0
cmp eax, 0xfdeeb787
jne 0x40d7a0
mov dword [0x4c47e8], 0
mov dword [esp + 0x30], 0x7b4f3e76
jmp 0x40d7a0
cmp eax, 0xc1c552b1
jne 0x40d7a0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
lea ebx, [esp + 0x38]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp], edx
mov dword [esp + 4], 0x19
call dword [0x4c5778]
sub esp, 0x14
test eax, eax
mov eax, 0x32c29de1
jne 0x40dc00
mov eax, 0x9af7b5fd
mov dword [esp + 0x30], eax
jmp 0x40d7a0
cmp eax, 0xbfc0ff4c
jne 0x40d7a0
jmp 0x40db09
cmp eax, 0xb62d4be7
jne 0x40d7a0
mov eax, 0x79e4c3fc
cmp dword [esp + 0x54], 0
jne 0x40dc35
mov eax, 0x2753c760
mov dword [esp + 0x30], eax
jmp 0x40d7a0
cmp eax, 0x94901b80
jg 0x40dc7a
cmp eax, 0x920ba76c
jne 0x40d7a0
mov eax, dword [esp + 0xa8]
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.004144aa
test eax, eax
mov eax, 0x75f26c6
jne 0x40dc71
mov eax, 0x94901b81
mov dword [esp + 0x30], eax
jmp 0x40d7a0
cmp eax, 0x9aaaa06f
jg 0x40dca3
cmp eax, 0x94901b81
jne 0x40d7a0
mov dword [0x4c47e8], 1
mov dword [esp + 0x30], 0x75f26c6
jmp 0x40d7a0
cmp eax, 0x9af7b5fc
jg 0x40dcc2
cmp eax, 0x9aaaa070
jne 0x40d7a0
mov dword [esp + 0x30], 0xb62d4be7
jmp 0x40d7a0
cmp eax, 0xb0a7714e
jg 0x40dce1
cmp eax, 0x9af7b5fd
jne 0x40d7a0
mov dword [esp + 0x30], 0x46876ba3
jmp 0x40d7a0
cmp eax, 0xb0a7714f
je 0x40dd2a
cmp eax, 0xb19ccdfa
jne 0x40dd59
mov ebx, dword [0x4c577c]
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 ebx
sub esp, 0xc
test eax, eax
mov eax, 0x91059a26
jne 0x40dd21
mov eax, 0x577ee021
mov dword [esp + 0x30], eax
jmp 0x40d7a0
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00413373
mov dword [esp + 0x54], eax
mov ecx, 0xc4ecb21
test eax, eax
je 0x40dd50
mov ecx, 0xc1c552b1
mov dword [esp + 0x30], ecx
jmp 0x40d7a0
cmp eax, 0xb1aa6a33
jne 0x40d7a0
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 [0x4c5770]
sub esp, 0x2c
test eax, eax
mov eax, 0x8a3128a6
jne 0x40ddd2
mov eax, 0x9aaaa070
mov dword [esp + 0x30], eax
jmp 0x40d7a0
mov eax, dword [esp + 0xb4]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret