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

Disassembly:
sub esp, 0xb8
mov eax, dword [0x1009179c]
push ebx
push ebp
push esi
mov ecx, dword [eax]
push edi
cmp ecx, eax
mov dword [esp + 0x34], ecx
je 0x413f52
mov esi, dword [ecx + 0x10]
test esi, esi
je 0x413f38
mov ebp, dword [esi + 0x2c]
xor edi, edi
test ebp, ebp
jle 0x413c77
lea ebx, [esi + 4]
mov eax, ebx
push edi
mov ecx, dword [eax]
mov dword [esp + 0x3c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x40], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x3c]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x48], edx
call fcn.004432c7
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
test ecx, ecx
je 0x413c72
mov edx, dword [ecx]
push 1
call dword [edx]
inc edi
cmp edi, ebp
jl 0x413c3b
lea edi, [esi + 0x14]
lea ebx, [esi + 4]
mov eax, edi
mov ecx, dword [eax]
mov dword [esp + 0x24], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x28], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x2c], ecx
mov edx, dword [eax + 0xc]
mov eax, ebx
mov dword [esp + 0x30], edx
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x18], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x24]
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x24], edx
call fcn.00415417
mov ecx, ebx
mov ebp, eax
mov edx, dword [ecx]
mov dword [esp + 0x68], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x6c], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x70], edx
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x78], eax
call fcn.00415417
mov edx, edi
mov dword [esp + 0x10], eax
mov eax, dword [edx]
mov dword [esp + 0x48], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x4c], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x50], eax
mov ecx, dword [edx + 0xc]
lea edx, [esp + 0x24]
mov dword [esp + 0x54], ecx
push edx
lea ecx, [esp + 0x4c]
call fcn.00415417
cmp dword [esp + 0x10], eax
jae 0x413dac
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
mov dword [eax], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x50]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x38]
mov eax, esp
sub esp, 0x10
mov dword [eax], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x50]
mov dword [eax + 8], ecx
mov ecx, esp
mov dword [eax + 0xc], edx
mov eax, ebx
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0xc8]
push ecx
call fcn.00443337
add esp, 0x34
test ebp, ebp
jbe 0x413e25
mov ecx, esi
call fcn.00414757
dec ebp
jne 0x413da0
jmp 0x413e25
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
sub esp, 0x10
mov edx, esp
sub esp, 0x10
mov dword [edx], eax
mov eax, dword [esp + 0x3c]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x40]
mov dword [edx + 8], eax
mov eax, dword [edi]
mov dword [edx + 0xc], ecx
mov ecx, dword [edi + 4]
mov edx, esp
sub esp, 0x10
mov dword [edx], eax
mov eax, dword [edi + 8]
mov dword [edx + 4], ecx
mov ecx, dword [edi + 0xc]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x54]
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0x58]
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x5c]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x60]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea edx, [esp + 0xd8]
push edx
call fcn.00415857
add esp, 0x34
test ebp, ebp
jbe 0x413e25
mov ecx, esi
call fcn.00443097
dec ebp
jne 0x413e1b
mov eax, dword [esp + 0x10]
test eax, eax
je 0x413e6b
mov ecx, ebx
push eax
mov edx, dword [ecx]
mov dword [esp + 0x8c], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x90], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x94], edx
lea edx, [esp + 0xbc]
mov ecx, dword [ecx + 0xc]
push edx
mov dword [esp + 0x9c], ecx
lea ecx, [esp + 0x90]
call fcn.004147e7
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x413f2f
mov edi, dword [esi + 0xc]
add edi, 4
dec eax
test eax, eax
mov dword [esi + 0xc], edi
mov ecx, edi
mov dword [esi + 0x2c], eax
je 0x413e92
cmp ecx, dword [esi + 8]
jne 0x413f24
mov eax, dword [esi + 0x10]
lea ecx, [eax + 4]
mov dword [esi + 0x10], ecx
mov edx, dword [eax]
push edx
call fcn.00478a89
mov eax, dword [esi + 0x2c]
add esp, 4
test eax, eax
jne 0x413ef7
lea ecx, [esp + 0x78]
call fcn.00470247
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
mov ebp, ebx
mov edi, dword [esp + 0x84]
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edi
lea ebp, [esi + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x24]
push eax
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edi
call fcn.00478a89
add esp, 4
jmp 0x413f24
mov eax, dword [esi + 0x10]
push eax
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x60]
call fcn.00415727
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov edx, ebx
mov dword [edx], eax
mov eax, dword [esp + 0x60]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x64]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x413e76
push esi
call fcn.00478a89
add esp, 4
lea ecx, [esp + 0x34]
call fcn.004141a7
mov eax, dword [0x1009179c]
mov ecx, dword [esp + 0x34]
cmp ecx, eax
jne 0x413c24
mov ecx, dword [eax]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
mov ecx, 0x10091798
call fcn.004140d7
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xb8
ret