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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0xc], edx
push 1
mov edx, dword [esi + 0x60]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x64]
push edx
add edx, edx
call fcn.00409f70
add esp, 8
mov ecx, esi
call fcn.0043fc40
mov edx, ecx
mov esi, eax
mov dword [esp + 0x28], esi
mov ecx, dword [edx + 0x70]
call fcn.00434930
mov ecx, esi
movss xmm0, dword [eax]
movss dword [esp + 0x34], xmm0
call fcn.00408d60
xor esi, esi
mov dword [esp + 0x38], eax
xor ecx, ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], esi
xor edi, edi
call fcn.00408d60
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], 1
movzx ecx, word [ecx]
test cx, cx
je 0x43cac2
cvttss2si eax, xmm0
movaps xmm0, xmmword [esp + 0x60]
mov dword [esp + 0x2c], eax
nop dword [eax]
push 0xffffff
push dword [edx + 0x70]
movzx eax, cx
lea edx, [esp + 0x8c]
movaps xmmword [esp + 0x48], xmm0
lea ecx, [esp + 0x48]
movq xmm0, qword [esp + 0x78]
push eax
movq qword [esp + 0x5c], xmm0
call fcn.00439560
mov eax, dword [esp + 0x18]
add esp, 0xc
movzx esi, word [eax]
mov edx, esi
or edx, 0x80000000
mov ecx, edx
mov dword [esp + 0x20], edx
call fcn.004ac320
cmp dword [ebp + 0xc], 0
mov ecx, eax
je 0x43ca63
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.0040aac0
test ecx, ecx
je 0x43c970
mov ecx, dword [esp + 0x20]
xor esi, esi
mov dword [esp + 0x10], esi
call fcn.004394a0
jmp 0x43ca46
cmp dword [esp + 0x30], 0
jge 0x43ca2a
movss xmm1, dword [0x545acc]
movss xmm0, dword [esp + 0xa0]
call fcn.00401400
movss xmm1, dword [0x545acc]
cvttss2si esi, xmm0
movss xmm0, dword [esp + 0xa4]
addss xmm0, dword [esp + 0xa0]
movd xmm2, esi
cvtdq2ps xmm2, xmm2
movss dword [esp + 0x20], xmm0
subss xmm0, xmm2
call fcn.00401400
cvtss2sd xmm0, xmm0
sub esp, 8
movsd qword [esp + 0x18], xmm0
fld qword [esp + 0x18]
fstp qword [esp]
call fcn.004faf00
fstp qword [esp + 0x18]
movsd xmm0, qword [esp + 0x18]
add esp, 8
movss xmm1, dword [esp + 0x20]
cvtpd2ps xmm0, xmm0
cvttss2si ecx, xmm0
lea eax, [ecx + esi]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm1, xmm0
addss xmm1, dword [esp + 0xa8]
addss xmm1, dword [esp + 0x34]
addss xmm1, dword [0x545af0]
cvttss2si eax, xmm1
mov dword [esp + 0x10], eax
add eax, ecx
jmp 0x43ca44
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x48]
sar esi, 1
sub edx, esi
add edx, dword [esp + 0x38]
mov dword [esp + 0x10], edx
add eax, edx
add eax, esi
mov edx, dword [ebp + 8]
add edi, eax
cmp dword [esp + 0x24], 0
mov dword [esp + 0x24], 0
cmove esi, dword [esp + 0x1c]
mov dword [esp + 0x1c], esi
jmp 0x43caa0
test ecx, ecx
je 0x43ca72
mov ecx, edx
call fcn.004394a0
mov esi, eax
jmp 0x43ca8e
mov ecx, esi
call fcn.004ac9b0
test eax, eax
je 0x43ca83
mov esi, dword [esp + 0x28]
jmp 0x43ca8e
mov eax, dword [esp + 0x28]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov edx, dword [ebp + 8]
xor ecx, ecx
call fcn.0043fbb0
add eax, esi
add eax, dword [esp + 0x2c]
add edi, eax
mov eax, dword [esp + 0xc]
movaps xmm0, xmmword [esp + 0x60]
add eax, 2
mov dword [esp + 0xc], eax
movzx eax, word [eax]
mov ecx, eax
test ax, ax
jne 0x43c8f0
mov esi, dword [esp + 0x10]
push dword [esp + 0x60]
call fcn.004d8b08
mov ecx, dword [ebp + 0xc]
add esp, 4
mov edx, dword [ebp + 8]
call fcn.0043fbb0
mov ecx, dword [esp + 0x3c]
sub edi, eax
mov dword [ecx], edi
sub edi, esi
mov eax, edi
mov dword [ecx + 8], edi
sub eax, dword [esp + 0x1c]
pop edi
mov dword [ecx + 4], eax
pop esi
mov esp, ebp
pop ebp
ret