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

Disassembly:
jmp 0x8d9070
sub esp, 0x58
mov eax, dword [0xa0b130]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push esi
mov esi, ecx
mov ecx, dword [esp + 0x64]
push edi
mov dword [esp + 0x14], esi
call fcn.00414c90
mov ebx, eax
push 0x100
mov dword [esp + 0x1c], ebx
call fcn.00405e93
add esp, 4
test eax, eax
je 0x8d90b2
mov ecx, eax
call fcn.0040a1e6
mov edi, eax
jmp 0x8d90b4
xor edi, edi
sub esp, 8
lea ecx, [ebx + 0x18]
cmp dword [ebx + 0x2c], 0x10
mov edx, esp
jb 0x8d90c5
mov ecx, dword [ebx + 0x18]
mov dword [edx], ecx
mov ecx, edi
mov eax, dword [ebx + 0x28]
mov dword [edx + 4], eax
call fcn.004099f3
mov eax, dword [ebx + 0x30]
mov dword [edi + 0x88], eax
lea eax, [esi + 0x54]
push eax
push ecx
lea eax, [esi + 0x3c]
mov ecx, esp
push eax
call fcn.00406361
lea eax, [esp + 0x34]
mov ecx, esi
push eax
call fcn.00414b14
mov esi, dword [eax]
mov eax, dword [eax + 4]
lea ebx, [esi + eax*8]
cmp esi, ebx
je 0x8d9125
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], ecx
mov ecx, edi
push eax
call fcn.0040d86e
add esi, 8
cmp esi, ebx
jne 0x8d9105
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x38]
cmp eax, ecx
je 0x8d913b
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, dword [esp + 0x14]
mov ebx, dword [eax + 0x4c]
mov esi, dword [eax + 0x48]
cmp esi, ebx
je 0x8d917b
nop dword [eax]
sub esp, 8
lea eax, [esi + 8]
cmp dword [esi + 0x1c], 0x10
mov ecx, esp
jb 0x8d9160
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [esi + 0x18]
mov dword [ecx + 4], eax
mov ecx, edi
push esi
call fcn.0040fa1f
add esi, 0x20
cmp esi, ebx
jne 0x8d9150
mov eax, dword [esp + 0x14]
push dword [eax + 0x78]
mov ecx, edi
push dword [eax + 0x74]
call fcn.0040b3b6
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x7c]
mov dword [edi + 0xa4], eax
mov eax, dword [ecx + 0x80]
mov dword [edi + 0xa8], eax
mov al, byte [ecx + 0x84]
mov byte [edi + 0xac], al
mov eax, dword [ecx + 0x88]
mov dword [edi + 0xb0], eax
mov esi, dword [edi + 0x3c]
mov eax, dword [edi + 0x40]
lea ebx, [esi + eax*8]
cmp esi, ebx
je 0x8d91ef
nop word [eax + eax]
push dword [ecx + 0x94]
push dword [ecx + 0x90]
mov ecx, edi
push esi
call fcn.00408454
mov ecx, dword [esp + 0x14]
add esi, 8
cmp esi, ebx
jne 0x8d91d0
mov ebx, dword [esp + 0x18]
cmp dword [ebx + 0x30], 1
jne 0x8d9208
mov esi, dword [esp + 0x14]
mov word [edi + 0xad], 0x101
jmp 0x8d9257
push 1
push dword [ecx + 0x8c]
call fcn.0040db57
mov esi, dword [esp + 0x1c]
test eax, eax
push 2
sete al
mov byte [edi + 0xad], al
push dword [esi + 0x8c]
call fcn.0040db57
test eax, eax
push 4
sete al
mov byte [edi + 0xae], al
push dword [esi + 0x8c]
call fcn.0040db57
add esp, 0x18
test eax, eax
setne al
mov byte [edi + 0xaf], al
mov eax, dword [esi + 0x9c]
mov edx, dword [esi + 0x98]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], edx
cmp edx, eax
je 0x8d9504
lea eax, [edx + 0x1c]
mov dword [esp + 0xc], eax
nop word [eax + eax]
lea eax, [esi + 0x54]
push eax
push ecx
mov ecx, esp
push edx
call fcn.00406361
lea eax, [esp + 0x34]
mov ecx, esi
push eax
call fcn.00414b14
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 0xc]
mov ebx, dword [ecx - 0x10]
mov dword [esp + 0x10], eax
cmp ebx, eax
je 0x8d92e6
nop dword [eax + eax]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
lea eax, [esi + eax*8]
mov dword [esp + 0x28], eax
cmp esi, eax
je 0x8d92d9
push esi
push dword [ebx + 4]
mov ecx, edi
push dword [ebx]
call fcn.00403b70
add esi, 8
cmp esi, dword [esp + 0x28]
jne 0x8d92c3
add ebx, 8
cmp ebx, dword [esp + 0x10]
jne 0x8d92b0
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov ebx, dword [ecx - 4]
mov dword [esp + 0x28], eax
cmp ebx, eax
je 0x8d9329
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
lea eax, [esi + eax*8]
mov dword [esp + 0x10], eax
cmp esi, eax
je 0x8d931c
push esi
push dword [ebx + 4]
mov ecx, edi
push dword [ebx]
call fcn.00406555
add esi, 8
cmp esi, dword [esp + 0x10]
jne 0x8d9306
add ebx, 8
cmp ebx, dword [esp + 0x28]
jne 0x8d92f3
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0xc]
mov esi, dword [ecx + 8]
mov dword [esp + 0x10], eax
cmp esi, eax
je 0x8d93a8
nop word [eax + eax]
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x30], 4
je 0x8d9386
mov ebx, dword [esi + 4]
cmp ebx, 0xf
jb 0x8d9386
mov eax, dword [esi]
push 0xf
push str._OBJC_EHTYPE___
push eax
call fcn.004031ed
add esp, 0xc
test eax, eax
jne 0x8d9386
mov edx, dword [esi]
lea eax, [ebx - 0xf]
add edx, 0xf
or ecx, 0xffffffff
cmp eax, 0xffffffff
push 0
cmovb ecx, eax
lea eax, [esp + 0x30]
push eax
push ecx
push edx
push 2
jmp 0x8d9394
push 0
lea eax, [esp + 0x30]
push eax
push dword [esi + 4]
push dword [esi]
push 0
mov ecx, edi
call fcn.00406915
add esi, 8
cmp esi, dword [esp + 0x10]
jne 0x8d9340
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x18]
mov esi, dword [ecx + 0x14]
mov dword [esp + 0x10], eax
cmp esi, eax
je 0x8d93fd
mov eax, dword [esp + 0x18]
mov ebx, dword [esi]
mov edx, dword [esi + 4]
cmp dword [eax + 0x30], 4
je 0x8d93de
mov eax, 1
mov ecx, edx
cmp edx, eax
cmovb eax, edx
or edx, 0xffffffff
sub ecx, eax
add ebx, eax
cmp ecx, 0xffffffff
cmovb edx, ecx
push 0
lea eax, [esp + 0x30]
mov ecx, edi
push eax
push edx
push ebx
push 1
call fcn.00406915
add esi, 8
cmp esi, dword [esp + 0x10]
jne 0x8d93b6
mov ecx, dword [esp + 0xc]
mov ebx, dword [ecx + 0x24]
mov esi, dword [ecx + 0x20]
cmp esi, ebx
je 0x8d9427
push 0
lea eax, [esp + 0x30]
mov ecx, edi
push eax
push dword [esi + 4]
push dword [esi]
push 2
call fcn.00406915
add esi, 8
cmp esi, ebx
jne 0x8d9407
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x30]
mov esi, dword [ecx + 0x2c]
mov dword [esp + 0x10], eax
cmp esi, eax
je 0x8d947c
mov eax, dword [esp + 0x18]
mov ebx, dword [esi]
mov edx, dword [esi + 4]
cmp dword [eax + 0x30], 4
je 0x8d945d
mov eax, 1
mov ecx, edx
cmp edx, eax
cmovb eax, edx
or edx, 0xffffffff
sub ecx, eax
add ebx, eax
cmp ecx, 0xffffffff
cmovb edx, ecx
push 0
lea eax, [esp + 0x30]
mov ecx, edi
push eax
push edx
push ebx
push 3
call fcn.00406915
add esi, 8
cmp esi, dword [esp + 0x10]
jne 0x8d9435
mov ecx, dword [esp + 0xc]
mov ebx, dword [ecx + 0x3c]
mov esi, dword [ecx + 0x38]
cmp esi, ebx
je 0x8d94a6
push 2
lea eax, [esp + 0x30]
mov ecx, edi
push eax
push dword [esi + 4]
push dword [esi]
push 0
call fcn.00406915
add esi, 8
cmp esi, ebx
jne 0x8d9486
mov ecx, dword [esp + 0xc]
mov ebx, dword [ecx + 0x48]
mov esi, dword [ecx + 0x44]
cmp esi, ebx
je 0x8d94cc
push 1
lea eax, [esp + 0x30]
mov ecx, edi
push eax
push dword [esi + 4]
push dword [esi]
push 0
call fcn.00406915
add esi, 8
cmp esi, ebx
jne 0x8d94b0
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x38]
cmp esi, eax
je 0x8d94e2
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov edx, dword [esp + 0x24]
add dword [esp + 0xc], 0x6c
add edx, 0x6c
mov esi, dword [esp + 0x14]
mov dword [esp + 0x24], edx
cmp edx, dword [esp + 0x1c]
jne 0x8d9280
mov ebx, dword [esp + 0x18]
mov eax, dword [esi + 0xa8]
mov edx, dword [esi + 0xa4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], edx
cmp edx, eax
je 0x8d96fe
lea eax, [edx + 0x1c]
mov dword [esp + 0xc], eax
lea eax, [esi + 0x54]
push eax
push ecx
mov ecx, esp
push edx
call fcn.00406361
lea eax, [esp + 0x34]
mov ecx, esi
push eax
call fcn.00414b14
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 0xc]
mov esi, dword [eax - 0x10]
mov dword [esp + 0x1c], ecx
cmp esi, ecx
je 0x8d95ba
cmp dword [ebx + 0x30], 4
je 0x8d9594
mov ebx, dword [esi + 4]
cmp ebx, 0xf
jb 0x8d9594
mov eax, dword [esi]
push 0xf
push str._OBJC_EHTYPE___
push eax
call fcn.004031ed
add esp, 0xc
test eax, eax
jne 0x8d9594
mov edx, dword [esi]
lea eax, [ebx - 0xf]
add edx, 0xf
or ecx, 0xffffffff
cmp eax, 0xffffffff
push 8
cmovb ecx, eax
lea eax, [esp + 0x30]
push eax
push ecx
push edx
push 2
jmp 0x8d95a2
push 8
lea eax, [esp + 0x30]
push eax
push dword [esi + 4]
push dword [esi]
push 0
mov ecx, edi
call fcn.00406915
mov ebx, dword [esp + 0x18]
add esi, 8
cmp esi, dword [esp + 0x1c]
jne 0x8d9552
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov esi, dword [eax - 4]
mov dword [esp + 0x1c], ecx
cmp esi, ecx
je 0x8d960e
mov eax, dword [esp + 0x18]
mov ebx, dword [esi]
mov edx, dword [esi + 4]
cmp dword [eax + 0x30], 4
je 0x8d95ef
mov eax, 1
mov ecx, edx
cmp edx, eax
cmovb eax, edx
or edx, 0xffffffff
sub ecx, eax
add ebx, eax
cmp ecx, 0xffffffff
cmovb edx, ecx
push 8
lea eax, [esp + 0x30]
mov ecx, edi
push eax
push edx
push ebx
push 1
call fcn.00406915
add esi, 8
cmp esi, dword [esp + 0x1c]
jne 0x8d95c7
mov eax, dword [esp + 0xc]
mov ebx, dword [eax + 0xc]
mov esi, dword [eax + 8]
cmp esi, ebx
je 0x8d9638
push 8
lea eax, [esp + 0x30]
mov ecx, edi
push eax
push dword [esi + 4]
push dword [esi]
push 2
call fcn.00406915
add esi, 8
cmp esi, ebx
jne 0x8d9618
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x18]
mov esi, dword [eax + 0x14]
mov dword [esp + 0x1c], ecx
cmp esi, ecx
je 0x8d968d
mov eax, dword [esp + 0x18]
mov ebx, dword [esi]
mov edx, dword [esi + 4]
cmp dword [eax + 0x30], 4
je 0x8d966e
mov eax, 1
mov ecx, edx
cmp edx, eax
cmovb eax, edx
or edx, 0xffffffff
sub ecx, eax
add ebx, eax
cmp ecx, 0xffffffff
cmovb edx, ecx
push 8
lea eax, [esp + 0x30]
mov ecx, edi
push eax
push edx
push ebx
push 3
call fcn.00406915
add esi, 8
cmp esi, dword [esp + 0x1c]
jne 0x8d9646
mov eax, dword [esp + 0xc]
mov ebx, dword [eax + 0x24]
mov esi, dword [eax + 0x20]
cmp esi, ebx
je 0x8d96c6
push 4
push 8
call fcn.00411d92
add esp, 8
mov dword [esp + 0x1c], eax
push eax
lea eax, [esp + 0x30]
mov ecx, edi
push eax
push dword [esi + 4]
push dword [esi]
push 0
call fcn.00406915
mov eax, dword [esp + 0x1c]
add esi, 8
cmp esi, ebx
jne 0x8d96a7
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x38]
cmp eax, ecx
je 0x8d96dc
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov edx, dword [esp + 0x24]
add dword [esp + 0xc], 0x48
add edx, 0x48
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x24], edx
cmp edx, dword [esp + 0x10]
jne 0x8d9527
mov ecx, dword [esp + 0x60]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004087b5
add esp, 0x58
ret 4