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

Disassembly:
sub esp, 0x1c4
mov eax, dword [0x446e40]
xor eax, esp
mov dword [esp + 0x1c0], eax
mov eax, dword [esp + 0x1c8]
push ebx
mov ebx, dword [esp + 0x1d4]
push ebp
mov ebp, dword [esp + 0x1dc]
push esi
push edi
mov edi, dword [esp + 0x1dc]
push 0
push 0
mov esi, edx
mov edx, dword [ebp + 4]
push 0x24
push edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x3c], ecx
call fcn.00407c10
movzx edx, word [esi + 0xa]
movzx eax, ax
lea ecx, [esp + 0x50]
push ecx
mov dword [esp + 0x2c], eax
push edx
mov eax, ebp
mov edx, ebx
mov ecx, edi
call fcn.0040c740
lea ebx, [esp + 0xb8]
lea edi, [esp + 0x58]
call fcn.0040c950
lea edi, [esp + 0xc8]
lea ebx, [esp + 0x58]
call fcn.0040c9b0
push 0xfffffffffffffffd
push 3
lea eax, [esp + 0xe0]
push eax
lea ecx, [esp + 0xc4]
push ecx
call fcn.00404ac0
lea edx, [esp + 0xf8]
push str._object
push edx
call fcn.0040ad50
mov eax, dword [ebp + 4]
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0x104]
push edx
call fcn.0040ab00
mov edi, dword [esp + 0x64]
lea eax, [esp + 0x108]
push eax
push edi
call fcn.00407150
mov ecx, dword [ebp + 4]
add esp, 0x40
push ecx
push 1
push edi
call fcn.004070a0
push 0
push edi
call fcn.00407110
mov eax, dword [esi + 4]
mov ebx, 2
add esp, 0x14
test bl, al
jne 0x40cfb1
test al, 4
je 0x40cfb1
push 0
push edi
call fcn.00407110
mov edx, dword [0x4441b0]
lea eax, [esp + 0x38]
push eax
push edi
mov word [esp + 0x40], 1
mov word [esp + 0x42], 0x84
mov dword [esp + 0x44], edx
call fcn.00407060
lea ecx, [esp + 0xd0]
push esi
push ecx
mov ecx, ebp
call fcn.0040cc60
add esp, 0x18
mov edx, dword [ebp + 4]
lea eax, [esp + 0x30]
push eax
push edi
mov word [esp + 0x38], bx
mov word [esp + 0x3a], 0x84
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], edx
call fcn.00407060
lea ecx, [esp + 0xa8]
push esi
push ecx
mov ecx, ebp
call fcn.0040cc60
mov eax, dword [esi + 4]
add esp, 0x10
test bl, al
jne 0x40d000
test al, 4
je 0x40d000
push 0
push edi
call fcn.00407130
add esp, 8
push 0x10
lea edx, [esp + 0xb4]
push edx
lea eax, [esp + 0x64]
push eax
call fcn.00404360
mov eax, dword [ebp + 4]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x98], eax
mov eax, dword [esi + 4]
add esp, 0xc
test bl, al
mov word [esp + 0x78], bx
mov word [esp + 0x7a], 0x85
mov dword [esp + 0x7c], 0
mov word [esp + 0x84], bx
mov word [esp + 0x86], 0x83
mov dword [esp + 0x88], ebx
mov word [esp + 0x74], 0x3da0
je 0x40d06a
mov word [esp + 0x74], 0x3ca0
test eax, 0x200
je 0x40d078
or word [esp + 0x74], bx
jmp 0x40d085
test eax, 0x800
je 0x40d085
or word [esp + 0x74], 4
test eax, 0x1000
je 0x40d092
or word [esp + 0x74], 1
mov ecx, dword [ebp + 4]
push 0
push edi
mov dword [esp + 0x78], ecx
call fcn.00407110
add esp, 8
test dword [esi + 4], 0x20000
je 0x40d0db
mov edx, dword [ebp + 4]
push 0
push 0
push 0x26
push edx
mov word [esp + 0xa0], 0xfffe
call fcn.00407c10
lea ecx, [esp + 0x6c]
push ecx
mov edx, ecx
push edx
push eax
push esi
push edi
call fcn.00402460
add esp, 0x24
jmp 0x40d0f3
lea eax, [esp + 0x5c]
push eax
push edi
mov word [esp + 0x98], 0xffff
call fcn.00406fd0
add esp, 8
push 0
push edi
call fcn.00407130
mov bl, byte [esp + 0x20]
add esp, 8
test bl, 3
je 0x40d2e3
mov ecx, dword [ebp + 4]
push 0
push 0
push 0x2f
push ecx
call fcn.00407c10
add esp, 0x10
test eax, eax
mov dword [esp + 0x18], eax
je 0x40d2e3
test bl, 1
je 0x40d173
mov edx, dword [ebp + 4]
xor ebx, ebx
push ebx
push ebx
push 0x2f
push edx
call fcn.00407c10
add esp, 0x10
test eax, eax
je 0x40d2e3
cmp word [eax + 0x10], 0
jne 0x40d16f
mov ecx, dword [ebp + 4]
add ebx, 1
movzx eax, bx
push 0
push eax
push 0x2f
push ecx
call fcn.00407c10
add esp, 0x10
test eax, eax
jne 0x40d148
jmp 0x40d2e3
mov eax, dword [esp + 0x18]
mov edx, dword [ebp + 4]
push eax
push 0
push 0x29
push edx
call fcn.00407c10
mov ecx, dword [ebp + 4]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x4c]
push eax
push 0
push 0x2e
push ecx
call fcn.00407c10
movzx ecx, word [esi + 0xa]
lea edx, [esp + 0x30]
push edx
push ecx
push 1
push eax
call fcn.00409810
lea edx, [esp + 0xd0]
lea edi, [esp + 0x40]
push edx
mov ebx, edi
call fcn.0040ca30
movzx eax, word [esi + 0xa]
add esp, 0x34
cmp eax, 3
ja case.default.0x40d1cc
jmp dword [eax*4 + 0x40d338]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x44]
add eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x28], eax
jmp 0x40d277
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
add eax, edx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x28], ecx
jmp 0x40d273
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x10]
add eax, esi
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], esi
jmp 0x40d27b
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x40]
lea eax, [edx + ecx]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
jmp 0x40d27b
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x50]
push eax
mov ebx, 2
push esi
mov word [esp + 0x58], bx
mov word [esp + 0x5a], 0x81
mov dword [esp + 0x5c], 1
mov dword [esp + 0x60], edi
call fcn.00407060
lea ecx, [esp + 0x9c]
push ecx
push esi
mov word [esp + 0xa4], bx
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], edi
call fcn.00407080
lea edx, [esp + 0x2c]
push edx
push esi
call fcn.00406f00
add esp, 0x18
mov edi, esi
push 0
push edi
call fcn.00407130
push edi
call fcn.004070d0
lea eax, [esp + 0xdc]
push 0x43ac18
push eax
call fcn.0040ad50
lea ecx, [esp + 0xe4]
push ecx
push edi
call fcn.00407150
mov dl, byte [edi + 6]
mov ecx, dword [esp + 0x1ec]
add esp, 0x1c
pop edi
pop esi
pop ebp
and dl, 1
pop ebx
xor ecx, esp
movzx ax, dl
call fcn.00439534
add esp, 0x1c4
ret