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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x426020]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
fldz
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], 0
fst qword [esp + 0x28]
fldz
mov esi, dword [ebp + 8]
fstp dword [esp + 0x10]
mov ebx, dword [esi + 4]
mov dword [esp + 0x14], eax
mov eax, dword [esi]
add ebx, ebx
mov edx, eax
xor ecx, ecx
mov word [esp + 0x10], cx
fstp qword [esp + 0x20]
mov cx, word [esp + 0x10]
add ebx, ebx
shr edx, 0x1d
add ebx, ebx
or ebx, edx
movsx edx, cx
mov dword [esp + 0x10], edx
add eax, eax
add eax, eax
fild dword [esp + 0x10]
add eax, eax
mov dword [esp + 0x1c], eax
fsub qword [esp + 0x28]
call fcn.0040b410
mov word [esp + 0x10], ax
mov edx, dword [esp + 0x18]
sub edx, 0x703d4e96
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
mov eax, ebx
shr eax, 0x18
mov ecx, ebx
mov byte [esp + 0x38], al
shr ecx, 0x10
mov byte [esp + 0x39], cl
fstp dword [esp + 0x10]
fld qword [0x423870]
mov eax, ebx
fld qword [esp + 0x20]
shr eax, 8
fucompp
mov byte [esp + 0x3a], al
mov byte [esp + 0x3b], bl
fnstsw ax
test ah, 0x44
jnp 0x403c4b
fld qword [esp + 0x20]
mov ecx, dword [esp + 0x18]
fstp st(0)
mov eax, 1
fld dword [0x423280]
mov edx, dword [0x425e04]
add dword [esp + 0x18], eax
fstp st(0)
fld dword [0x423280]
fadd qword [0x41f370]
fstp dword [0x423280]
add dword [0x425e04], eax
fld qword [0x425bd0]
mov ax, word [0x4242a0]
movsx ecx, ax
mov eax, dword [esp + 0x1c]
sub ecx, 0x41145f33
mov dword [esp + 0x34], ecx
mov edx, eax
shr edx, 0x18
fild dword [esp + 0x34]
mov byte [esp + 0x3c], dl
mov ecx, eax
mov edx, eax
fsubp st(1)
shr ecx, 0x10
shr edx, 8
mov byte [esp + 0x3f], al
fstp qword [0x425bd0]
mov byte [esp + 0x3d], cl
fld qword [0x425f08]
mov byte [esp + 0x3e], dl
fld qword [0x425ec0]
fsub qword [0x41f5b0]
fsubp st(1)
fstp qword [0x425f08]
mov edi, dword [esi]
fld dword [esp + 0x10]
and edi, 0x3f
fsubr qword [0x41f5a8]
fcomp qword [0x41f5a0]
fnstsw ax
test ah, 1
jne 0x403cff
dec word [0x4242b0]
mov ax, word [0x4242b0]
movsx ecx, ax
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
fadd dword [esp + 0x10]
mov edx, dword [0x425f1c]
mov dword [esp + 0x1c], edx
fild dword [esp + 0x1c]
faddp st(1)
call fcn.0040b410
mov dword [0x425f1c], eax
mov ebx, 0x38
cmp edi, 0x38
jb 0x403d0e
mov ebx, 0x78
push 0x40
lea eax, [esp + 0x44]
push 0
push eax
sub ebx, edi
call fcn.0040b830
push ebx
lea ecx, [esp + 0x50]
push ecx
push esi
mov byte [esp + 0x58], 0x80
call fcn.00402e50
push 8
lea edx, [esp + 0x54]
push edx
push esi
call fcn.00402e50
fld qword [0x41f598]
mov edx, dword [esp + 0x38]
fld qword [0x41f590]
fld1
add esp, 0x24
lea ecx, [esi + 8]
add edx, 2
mov esi, 8
fld qword [esp + 0x20]
fsub st(1)
fstp qword [esp + 0x20]
fld qword [esp + 0x20]
fld qword [esp + 0x20]
fadd qword [esp + 0x28]
movzx eax, byte [ecx + 3]
mov byte [edx - 2], al
movzx eax, byte [ecx + 2]
fsubp st(1)
mov byte [edx - 1], al
fstp qword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fstp dword [0x42381c]
mov eax, dword [ecx]
shr eax, 8
mov byte [edx], al
movzx eax, word [0x423f18]
imul eax, eax, 0xbdeff2c5
mov word [0x423f18], ax
movzx eax, byte [ecx]
fld qword [esp + 0x28]
fsub st(3)
mov byte [edx + 1], al
mov eax, dword [0x423208]
sub eax, 0x7255b5b8
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fcompp
fnstsw ax
test ah, 0x41
jne 0x403de3
fld qword [esp + 0x28]
fadd st(2)
fstp qword [esp + 0x28]
add ecx, 4
add edx, 4
sub esi, 1
jne 0x403d5c
mov ecx, dword [esp + 0x84]
fstp st(2)
pop edi
fstp st(1)
pop esi
fstp st(0)
pop ebx
xor ecx, esp
call fcn.0040b3f6
mov esp, ebp
pop ebp
ret