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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004c9a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
call fcn.1003f640
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edi, dword [eax]
mov dword [ebp - 0x14], edi
cmp edi, dword [eax + 4]
je 0x1003aa2a
mov esi, dword [edi]
cmp dword [esi + 0xa4], 0
je 0x1003a804
mov eax, dword [esi + 0xa0]
mov esi, dword [esi + 0xb0]
mov esi, dword [esi + eax*4]
mov eax, dword [ebp + 0xc]
jmp 0x1003a806
xor esi, esi
test esi, esi
je 0x1003aa1b
mov eax, dword [ebp + 8]
lea ecx, [eax + 0x360]
mov dword [ebp - 0x1c], ecx
lea ecx, [eax + 0xcc]
mov dword [ebp - 0x20], ecx
lea ecx, [eax + 0x6c]
add eax, 0x7c
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x10], eax
nop
mov eax, dword [esi + 0xc]
mov ecx, eax
mov edi, dword [ebp - 0x10]
mov ebx, eax
movss xmm1, dword [0x10052f64]
mov edx, eax
movzx eax, byte [eax + 0xc]
push eax
push dword [ebp - 0x1c]
lea eax, [ecx + 0x54]
push eax
push dword [ebp - 0x20]
lea eax, [edx + 0x110]
push eax
push dword [ebp - 0x24]
lea eax, [ebx + 0x78]
push eax
mov eax, dword [esi + 0xc]
lea ebx, [esi + 0xc]
push edi
add eax, 0x90
push eax
call fcn.10040480
test al, al
je 0x1003a8d1
mov eax, dword [ebx]
xorps xmm0, xmm0
comiss xmm0, dword [eax + 8]
jbe 0x1003a88c
movss xmm1, dword [0x10052f88]
jmp 0x1003a8d1
movss xmm0, dword [eax + 0x2c]
lea edx, [ebp - 0x50]
addss xmm0, dword [eax + 0x20]
mov ecx, dword [ebp + 8]
movss dword [ebp - 0x50], xmm0
lea ecx, [ecx + 0x80]
movss xmm0, dword [eax + 0x24]
addss xmm0, dword [eax + 0x30]
movss dword [ebp - 0x4c], xmm0
movss xmm0, dword [eax + 0x28]
addss xmm0, dword [eax + 0x34]
movss dword [ebp - 0x48], xmm0
call fcn.10026e70
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
mov eax, dword [ebx]
mov ecx, dword [ebp + 8]
movss xmm0, dword [eax + 8]
mulss xmm0, dword [ecx + 0x98]
comiss xmm0, xmm1
jbe 0x1003a95c
mov eax, dword [eax + 0x38]
lea edx, [ebp - 0x3c]
push ebx
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x3c], eax
movss dword [ebp - 0x38], xmm1
call fcn.10040650
add esp, 4
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.10041e40
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10042160
mov byte [ebp - 4], 0
mov edi, dword [ebp - 0x54]
test edi, edi
je 0x1003aa03
add dword [edi + 0x40], 0xffffffff
jne 0x1003aa03
mov ecx, edi
call fcn.1000f0a0
mov byte [ebp - 4], 2
push dword [edi - 4]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call ebx
add esp, 4
mov byte [ebp - 4], 0
jmp 0x1003aa09
mov eax, dword [esi + 8]
cmp eax, dword [ecx + 0xc8]
jne 0x1003aa03
mov ecx, dword [edi]
call fcn.100057f0
mov eax, dword [ebx]
cmp byte [eax + 0x48], 0
je 0x1003a9ef
mov edi, dword [ebp - 0x18]
lea ecx, [ebp - 0x34]
mov ebx, dword [eax + 0x3c]
add edi, 0xc4
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x30], ebx
mov eax, dword [edi + 4]
cmp ecx, eax
jae 0x1003a9ce
mov ecx, dword [edi]
lea edx, [ebp - 0x34]
cmp ecx, edx
ja 0x1003a9ce
mov ebx, edx
sub ebx, ecx
sar ebx, 3
cmp eax, dword [edi + 8]
jne 0x1003a9b7
push ecx
mov ecx, edi
call fcn.1003dce0
mov ecx, dword [edi + 4]
mov edx, dword [edi]
test ecx, ecx
je 0x1003a9eb
mov eax, dword [edx + ebx*8]
mov dword [ecx], eax
mov eax, dword [edx + ebx*8 + 4]
mov dword [ecx + 4], eax
jmp 0x1003a9eb
cmp eax, dword [edi + 8]
jne 0x1003a9db
push ecx
mov ecx, edi
call fcn.1003dce0
mov eax, dword [edi + 4]
test eax, eax
je 0x1003a9eb
mov dword [eax], 3
mov dword [eax + 4], ebx
add dword [edi + 4], 8
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0
mov dword [ecx + 0xc8], 0
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [esi]
mov esi, eax
test eax, eax
jne 0x1003a830
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
add edi, 4
mov dword [ebp - 0x14], edi
cmp edi, dword [eax + 4]
jne 0x1003a7e5
cmp dword [ebp - 0x28], 0
je 0x1003aae5
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp + 8]
mov esi, dword [eax]
mov eax, dword [esi + 0x18]
add esi, 0x18
mov ecx, dword [edi + 0xc8]
cmp dword [eax + 0x3c], ecx
je 0x1003aa8f
test ecx, ecx
je 0x1003aa87
mov ecx, dword [edi + 0x7c]
call fcn.100057f0
mov eax, dword [esi]
cmp byte [eax + 0x48], 0
je 0x1003aa80
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 3
lea ecx, [ecx + 0xc4]
call fcn.1003db80
mov dword [edi + 4], 0
mov eax, dword [esi]
mov eax, dword [eax + 0x3c]
mov dword [edi + 0x58], eax
mov edx, dword [esi]
cmp dword [edx + 4], 0
je 0x1003aae5
push esi
add edx, 0x3c
lea ecx, [ebp - 0x3c]
call fcn.100154b0
add esp, 4
push eax
push eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x44]
mov ecx, dword [edi + 0xc0]
push eax
add ecx, 0x9c
call fcn.10016b10
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x1003aae5
add dword [esi + 0x40], 0xffffffff
jne 0x1003aae5
mov ecx, esi
call fcn.1000f0a0
mov byte [ebp - 4], 4
push dword [esi - 4]
call ebx
add esp, 4
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
push eax
push dword [eax]
lea eax, [ebp + 8]
push eax
call fcn.1003de30
push dword [ebp - 0x2c]
call fcn.1004a648
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8