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

Disassembly:
sub esp, 0xd8
mov eax, dword [ecx + 0x40]
push ebx
push ebp
xor ebp, ebp
push esi
push edi
test eax, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebp
jbe 0x413b24
jmp 0x413815
mov ebp, dword [esp + 0x14]
lea edi, [ebp + 1]
cmp edi, eax
jae 0x413b15
lea esi, [ecx + 0x18]
jmp 0x413829
mov ebp, dword [esp + 0x14]
mov eax, esi
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.00415ac0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
mov dword [esp + 0xc8], eax
mov eax, esi
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd4], edx
mov ebx, dword [esp + 0x40]
mov ecx, dword [eax]
push ebp
mov dword [esp + 0x9c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xa0], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0xa4], ecx
lea ecx, [esp + 0x9c]
mov edx, dword [eax + 0xc]
mov dword [esp + 0xa8], edx
call fcn.00415ac0
mov ecx, dword [esp + 0xa0]
mov eax, dword [ebx]
push eax
mov ecx, dword [ecx]
call fcn.004174e0
test al, al
je 0x413b11
mov edx, esi
push edi
mov eax, dword [edx]
mov dword [esp + 0x5c], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x60], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x64], eax
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0x5c]
call fcn.00415ac0
mov edx, dword [esp + 0x60]
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4139dd
mov ecx, esi
push edi
mov edx, dword [ecx]
mov dword [esp + 0x8c], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x90], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x94], edx
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0x8c]
mov dword [esp + 0x98], eax
call fcn.00415ac0
mov ecx, dword [esp + 0x90]
push ebp
mov edx, dword [ecx]
mov ecx, esi
mov eax, dword [edx + 8]
mov edx, dword [ecx]
mov dword [esp + 0xac], edx
mov ebx, dword [eax]
mov eax, dword [ecx + 4]
mov dword [esp + 0xb0], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0xb4], edx
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0xac]
mov dword [esp + 0xb8], eax
call fcn.00415ac0
mov ecx, dword [esp + 0xb0]
push ebx
mov ecx, dword [ecx]
add ecx, 4
mov edx, dword [ecx + 8]
push edx
call fcn.00416b00
mov eax, esi
push edi
mov ecx, dword [eax]
mov dword [esp + 0x6c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x70], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x74], ecx
lea ecx, [esp + 0x6c]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x78], edx
call fcn.00415ac0
mov eax, dword [esp + 0x70]
mov ebx, dword [eax]
mov eax, dword [ebx + 0xc]
add ebx, 4
dec eax
je 0x4139da
mov ecx, dword [ebx + 4]
lea edx, [eax*4]
push edx
lea eax, [ecx + 4]
push eax
push ecx
call fcn.0041e4c0
add esp, 0xc
dec dword [ebx + 8]
mov ecx, esi
push edi
mov edx, dword [ecx]
mov dword [esp + 0x7c], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x80], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x84], edx
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0x7c]
mov dword [esp + 0x88], eax
call fcn.00415ac0
mov ecx, dword [esp + 0x80]
mov ecx, dword [ecx]
test ecx, ecx
je 0x413a21
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov eax, esi
push ebp
mov ecx, dword [eax]
mov dword [esp + 0x2c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x30], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x2c]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x38], edx
call fcn.00415ac0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], ecx
push 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
call fcn.00415ac0
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc0], edx
mov edx, dword [esp + 0x24]
mov ebp, ecx
mov dword [esp + 0x4c], ecx
mov ecx, edx
mov ebx, eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x54], ecx
push 1
lea ecx, [esp + 0x4c]
mov dword [esp + 0xc8], edx
mov dword [esp + 0x54], eax
call fcn.00415ac0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
sub esp, 0x10
mov edx, esp
sub esp, 0x10
mov dword [edx], eax
mov eax, dword [esp + 0x70]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x74]
mov dword [edx + 8], eax
mov eax, dword [esp + 0xe0]
mov dword [edx + 0xc], ecx
mov edx, esp
mov ecx, dword [esp + 0xe4]
mov dword [edx], ebx
mov ebx, dword [esp + 0x30]
mov dword [edx + 4], ebp
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea edx, [esp + 0xf8]
push edx
lea ecx, [ebx + 0x14]
call fcn.004155a0
cmp edi, dword [ebx + 0x40]
jb 0x413825
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x40]
mov dword [esp + 0x14], edi
cmp edi, eax
jb 0x413811
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xd8
ret