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

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x168
push ebx
mov ebx, dword [esp + 0x178]
lea eax, [esp + 8]
push eax
push ecx
mov dword [ebx], 0
call fcn.100a7180
add esp, 8
test eax, eax
je 0x10065497
mov eax, 1
pop ebx
add esp, 0x168
ret
mov eax, dword [esp + 0x174]
cmp eax, dword [esp + 8]
push ebp
push esi
push edi
mov ebp, eax
jge 0x100656e2
lea ecx, [ecx]
mov eax, dword [esp + 0x17c]
lea edx, [esp + 0x24]
push edx
push ebp
push eax
call fcn.100a7160
add esp, 0xc
test eax, eax
jne 0x100656ef
lea ecx, [esp + 0x110]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0xb4]
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x44]
push eax
push ecx
call fcn.100590f0
add esp, 0x1c
test eax, eax
jne 0x100656ef
mov eax, dword [esp + 0x20]
mov esi, 1
cmp eax, esi
jg 0x100656e2
cmp dword [esp + 0x28], esi
jg 0x100656e2
mov edi, dword [esp + 0x30]
lea edx, [esp + 0x1c]
push edx
push edi
call fcn.10045be0
add esp, 8
test eax, eax
jne 0x100656ff
mov eax, dword [esp + 0x1c]
cmp eax, 2
je 0x10065553
cmp eax, 3
je 0x10065553
cmp eax, 0xd
jne 0x100656e2
mov esi, dword [esp + 0x3c]
lea eax, [esp + 0x18]
push eax
push esi
call fcn.10045be0
add esp, 8
test eax, eax
jne 0x100656ef
mov eax, dword [esp + 0x18]
cmp eax, 2
je 0x10065584
cmp eax, 3
je 0x10065584
cmp eax, 0xd
jne 0x100656e2
lea ecx, [esp + 0x78]
push ecx
push edi
call fcn.10017160
add esp, 8
test eax, eax
jne 0x100656ef
lea edx, [esp + 0x78]
push edx
mov eax, edx
push eax
lea ecx, [esp + 0xb0]
push ecx
call fcn.100c4740
add esp, 0xc
test eax, eax
jne 0x100656ef
lea edx, [esp + 0x48]
push edx
push esi
call fcn.10017160
add esp, 8
test eax, eax
jne 0x100656ef
lea eax, [esp + 0x48]
push eax
mov ecx, eax
push ecx
lea edx, [esp + 0x118]
push edx
call fcn.100c4740
add esp, 0xc
test eax, eax
jne 0x100656ef
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x80]
push edx
call fcn.10076950
add esp, 0xc
test eax, eax
jne 0x100656ef
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x100656e2
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x80]
push edx
call fcn.10076850
add esp, 0xc
test eax, eax
jne 0x100656ef
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x100656e2
cmp dword [ebx], 0
jne 0x1006567d
mov edi, dword [esp + 0x188]
mov dword [ebx], 1
mov ecx, 0xc
lea esi, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x18c]
mov ecx, 0xc
lea esi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
jmp 0x100656cc
mov ecx, dword [esp + 0x188]
lea eax, [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x80]
push edx
call fcn.10076850
add esp, 0xc
test eax, eax
jne 0x100656ef
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100656e2
mov ecx, dword [esp + 0x18c]
lea eax, [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x50]
push edx
call fcn.10076850
add esp, 0xc
test eax, eax
jne 0x100656ef
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100656e2
mov eax, dword [esp + 0x190]
mov dword [eax], ebp
mov eax, dword [esp + 0x14]
inc ebp
cmp ebp, eax
jl 0x100654b0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x168
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x168
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x168
ret