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

Disassembly:
sub esp, 0x48
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call fcn.00525f20
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xd60]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0xd64]
xor edi, edi
mov ebp, 0xa
cmp eax, ecx
mov dword [esp + 0x10], vtable.sciPoint.0
mov dword [esp + 0x20], 2
mov dword [esp + 0x24], 3
mov dword [esp + 0x28], 5
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], 4
mov dword [esp + 0x38], 6
mov dword [esp + 0x3c], 7
mov dword [esp + 0x40], 8
mov dword [esp + 0x44], 9
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], 0xb
mov dword [esp + 0x50], 0xc
mov dword [esp + 0x54], 0xd
jne 0x51362e
mov ebp, 3
cmp eax, dword [esi + 0xd6c]
jne 0x513640
mov edi, 3
mov ebp, 0xe
mov edx, dword [0x5a32b8]
push 0
mov ecx, dword [edx + 0x10]
call fcn.00472060
lea eax, [esi + 0x910]
push 4
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.00452410
add esp, 0xc
test eax, eax
je 0x5136c1
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x51368b
mov edx, dword [esi + 0xd60]
mov eax, dword [esi + 0xd68]
cmp edx, eax
je 0x51368b
push 1
mov ecx, esi
call fcn.00513290
mov ecx, dword [esi + 0xd5c]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esi + 0xd60]
mov eax, dword [esi + 0xd68]
cmp ecx, eax
je 0x5137e5
mov edx, dword [0x5a32b8]
mov ecx, dword [edx + 0x10]
mov eax, dword [ecx + 0x74]
push eax
call fcn.00472060
jmp 0x5137e5
lea ecx, [esi + 0x950]
push 4
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.00452410
add esp, 0xc
test eax, eax
je 0x513738
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x5136ec
push 3
mov ecx, esi
call fcn.00513290
mov ecx, dword [esi + 0xd5c]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esi + 0xd60]
mov eax, dword [esi + 0xd64]
cmp ecx, eax
jne 0x513721
mov edx, dword [0x5a32b8]
mov ecx, dword [edx + 0x10]
mov eax, dword [ecx + 0x84]
push eax
call fcn.00472060
jmp 0x5137e5
mov ecx, dword [0x5a32b8]
mov ecx, dword [ecx + 0x10]
mov edx, dword [ecx + 0x78]
push edx
call fcn.00472060
jmp 0x5137e5
mov eax, dword [esi + 0xd60]
mov ecx, dword [esi + 0xd68]
cmp eax, ecx
jne 0x513792
lea ecx, [esi + 0x990]
push 4
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.00452410
add esp, 0xc
test eax, eax
je 0x513792
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x513773
push 2
mov ecx, esi
call fcn.00513290
mov ecx, dword [esi + 0xd5c]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [0x5a32b8]
mov ecx, dword [ecx + 0x10]
mov edx, dword [ecx + 0x7c]
push edx
call fcn.00472060
jmp 0x5137e5
mov eax, dword [esi + 0xd60]
mov ecx, dword [esi + 0xd64]
cmp eax, ecx
je 0x5137aa
cmp eax, dword [esi + 0xd6c]
jne 0x5137da
cmp edi, ebp
jge 0x5137da
lea ebx, [esp + edi*4 + 0x20]
mov eax, dword [ebx]
push 4
shl eax, 6
lea edx, [esp + 0x14]
lea ecx, [eax + esi + 0x9d0]
push ecx
push edx
call fcn.00452410
add esp, 0xc
test eax, eax
jne 0x5137f8
inc edi
add ebx, 4
cmp edi, ebp
jl 0x5137b2
mov ecx, dword [esi + 0xd5c]
mov eax, dword [ecx]
call dword [eax + 0x14]
lea ecx, [esp + 0x10]
call fcn.00525f40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0xc
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x513812
mov ecx, dword [0x5a32bc]
mov edx, dword [esp + edi*4 + 0x20]
push edx
mov eax, dword [ecx]
call dword [eax + 8]
jmp 0x5137e5
mov eax, dword [esp + edi*4 + 0x20]
mov ecx, dword [esi + 0xd5c]
push eax
call fcn.004b5e40
mov ecx, dword [esi + 0xd5c]
mov edx, dword [ecx]
call dword [edx + 0x18]
jmp 0x5137e5