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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x84
mov eax, dword [0xd9ae74]
test eax, eax
push ebx
push esi
push edi
je 0x522b5a
test byte [eax], 1
je 0x522b5a
mov al, byte [0xe74d8d]
test al, al
je 0x522b5a
fld dword [0xe74de0]
push 0
fmul dword [0x886824]
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x54]
fstp dword [esp + 0x30]
fld dword [0xe74de4]
push ecx
fchs
lea edx, [esp + 0x70]
fmul dword [0x886824]
push edx
fstp dword [esp + 0x3c]
fld dword [0xe74de8]
fmul dword [0x886824]
fstp dword [esp + 0x40]
call fcn.00511930
fld dword [esp + 0x68]
fmul dword [0x886824]
push 3
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x80]
fstp dword [esp + 0x38]
push edx
call fcn.00511930
fld dword [esp + 0x6c]
fmul dword [0x886824]
mov eax, dword [0xe74e04]
fld dword [esp + 0x74]
mov ecx, dword [0xe74e0c]
fmul dword [0x886824]
mov dword [esp + 0x60], eax
fsub dword [0x8850b8]
mov dword [esp + 0x68], ecx
lea esi, [esp + 0x48]
lea ecx, [esp + 0x60]
fstp dword [esp + 0x44]
fld dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
fadd st(1)
push edx
lea edx, [esp + 0x4c]
fmul dword [0x870774]
fsub dword [0x8850c0]
fstp dword [esp + 0x40]
mov eax, dword [esp + 0x40]
fstp st(0)
push eax
fld dword [0xe74e08]
fchs
fstp dword [esp + 0x6c]
call fcn.005221e0
push eax
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x7c]
mov dword [0xd9adb0], eax
push edx
lea eax, [esp + 0x98]
push eax
call fcn.00511930
fld dword [esp + 0xa0]
fchs
add esp, 0x38
fmul dword [0x886824]
fld dword [0xe74e18]
fcomp dword [0x87076c]
fnstsw ax
test ah, 0x41
jne 0x522520
fld dword [0xe74e18]
fmul dword [0x87183c]
fstp dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], ecx
jmp 0x522530
mov dword [esp + 0x1c], 0x42700000
mov dword [esp + 0x24], 0x42700000
fmul dword [0x870774]
mov dword [esp + 0x74], 0
fst dword [esp + 0x20]
fmul dword [0x8cafe4]
fstp dword [esp + 0x2c]
fld dword [esp + 0x28]
fchs
fstp dword [esp + 0x70]
fld dword [esp + 0x30]
fchs
fst dword [esp + 0x78]
fmul dword [esp + 0x78]
fld dword [esp + 0x70]
fmul dword [esp + 0x70]
faddp st(1)
fcomp dword [0x879dc4]
fnstsw ax
test ah, 0x44
jp 0x52258d
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], 0
jmp 0x5225b8
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x74]
push eax
call fcn.00402c01
fld dword [esp + 0x70]
fmul dword [0x8cb05c]
fstp dword [esp + 0x34]
fld dword [esp + 0x78]
fmul dword [0x8cb05c]
fstp dword [esp + 0x3c]
mov eax, dword [0xeebb14]
test eax, eax
mov dword [esp + 0x38], 0xbdcccccd
je 0x5225d1
mov dword [esp + 0x38], 0xbdf5c28f
mov edi, dword [0xd9ae74]
lea ebx, [edi + 4]
add edi, 0x604
lea esi, [edi + 0x1c]
mov dword [esp + 0x14], 0x80
jmp 0x5225f0
fld dword [edi]
fcomp dword [esp + 0x28]
fnstsw ax
test ah, 0x41
jne 0x522605
fld dword [edi]
fsub dword [esp + 0x28]
jmp 0x52260b
fld dword [esp + 0x28]
fsub dword [edi]
fld dword [esi - 0x18]
fcomp dword [esp + 0x2c]
fnstsw ax
test ah, 0x41
jne 0x522622
fld dword [esi - 0x18]
fsub dword [esp + 0x2c]
jmp 0x522629
fld dword [esp + 0x2c]
fsub dword [esi - 0x18]
fld dword [esi - 0x14]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 0x41
jne 0x522640
fld dword [esi - 0x14]
fsub dword [esp + 0x30]
jmp 0x522647
fld dword [esp + 0x30]
fsub dword [esi - 0x14]
fstp dword [esp + 0x48]
fcomp dword [esp + 0x20]
fnstsw ax
test ah, 1
je 0x5228ec
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 0x41
je 0x5228ee
fld dword [esp + 0x48]
fcomp dword [esp + 0x24]
fnstsw ax
test ah, 0x41
je 0x5228ee
fld dword [esi - 0x18]
fcomp dword [0x886010]
fnstsw ax
test ah, 0x41
jnp 0x5228ee
push 0x80
call fcn.0042d710
add esp, 4
test ax, ax
jne 0x522718
push 0xc8
call fcn.0042d710
movzx ecx, ax
mov dword [esp + 0x1c], ecx
push 0xc8
fild dword [esp + 0x20]
fmul dword [0x8cb058]
fsub dword [0x8cb054]
fadd dword [ebx]
fstp dword [ebx]
call fcn.0042d710
movzx edx, ax
mov dword [esp + 0x20], edx
push 0xc8
fild dword [esp + 0x24]
fmul dword [0x8cb050]
fsub dword [str._n_33]
fadd dword [ebx + 4]
fstp dword [ebx + 4]
call fcn.0042d710
movzx eax, ax
mov dword [esp + 0x24], eax
add esp, 0xc
fild dword [esp + 0x18]
fmul dword [0x8cb058]
fsub dword [0x88689c]
fadd dword [ebx + 8]
fstp dword [ebx + 8]
fld dword [esi - 4]
push 0xd9ad10
fsub dword [edi]
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x78]
fstp dword [esp + 0x78]
push edx
fld dword [esi]
fsub dword [esi - 0x18]
fstp dword [esp + 0x80]
fld dword [esi + 4]
fsub dword [esi - 0x14]
fstp dword [esp + 0x84]
fld dword [esi + 0x14]
fsub dword [edi]
fstp dword [esp + 0x8c]
fld dword [esi + 0x18]
fsub dword [esi - 0x18]
fstp dword [esp + 0x90]
fld dword [esi + 0x1c]
fsub dword [esi - 0x14]
fstp dword [esp + 0x94]
fld dword [esp + 0x8c]
fadd dword [esp + 0x7c]
fmul dword [0x870774]
fadd dword [edi]
fadd dword [ebx]
fstp dword [edi]
fld dword [esp + 0x90]
fadd dword [esp + 0x80]
fmul dword [0x870774]
fadd dword [ebx + 4]
fadd dword [esi - 0x18]
fstp dword [esi - 0x18]
fld dword [esp + 0x94]
fadd dword [esp + 0x84]
fmul dword [0x870774]
fadd dword [ebx + 8]
fadd dword [esi - 0x14]
fstp dword [esi - 0x14]
call fcn.00402e99
push 0xd9ad10
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x88]
push ecx
mov dword [esp + 0x88], 0x3f800000
call fcn.00402e99
fld dword [esp + 0x80]
fadd dword [esp + 0x70]
mov dword [esp + 0x8c], 0x3f800000
fmul dword [0x870774]
fsubr dword [edi]
fstp dword [edi]
fld dword [esp + 0x84]
fadd dword [esp + 0x74]
fmul dword [0x870774]
fsubr dword [esi - 0x18]
fstp dword [esi - 0x18]
fld dword [esp + 0x88]
fadd dword [esp + 0x78]
fmul dword [0x870774]
fsubr dword [esi - 0x14]
fstp dword [esi - 0x14]
fld dword [esp + 0x70]
fadd dword [edi]
fstp dword [esi - 4]
fld dword [esp + 0x74]
fadd dword [esi - 0x18]
fstp dword [esi]
fld dword [esp + 0x78]
fadd dword [esi - 0x14]
fstp dword [esi + 4]
fld dword [esp + 0x80]
fadd dword [edi]
fstp dword [esi + 0x14]
fld dword [esp + 0x84]
fadd dword [esi - 0x18]
fstp dword [esi + 0x18]
fld dword [esp + 0x88]
fadd dword [esi - 0x14]
fstp dword [esi + 0x1c]
fld dword [esp + 0x80]
fadd dword [esi - 4]
fstp dword [esi + 0x2c]
fld dword [esp + 0x84]
fadd dword [esi]
fstp dword [esi + 0x30]
fld dword [esp + 0x88]
fadd dword [esi + 4]
fstp dword [esi + 0x34]
fld dword [esi - 0x18]
fcomp dword [0x886010]
fnstsw ax
test ah, 0x41
jnp 0x5228e3
fld dword [esi]
fcomp dword [0x886010]
fnstsw ax
test ah, 0x41
jnp 0x5228e3
fld dword [esi + 0x18]
fcomp dword [0x886010]
fnstsw ax
test ah, 0x41
jnp 0x5228e3
fld dword [esi + 0x30]
fcomp dword [0x886010]
fnstsw ax
test ah, 0x41
jp 0x522b42
mov dword [esi - 0x18], 0x3d4ccccd
jmp 0x5228ee
fstp st(0)
fld dword [esi - 0x18]
fcomp dword [0x886010]
fnstsw ax
test ah, 0x41
jp 0x52291f
fld dword [ebx + 4]
fcomp dword [0x870e28]
fnstsw ax
test ah, 0x41
jne 0x52291f
fld dword [ebx + 4]
fsub dword [0x8cb04c]
fstp dword [ebx + 4]
jmp 0x522ad3
mov eax, dword [0xd9adb0]
cmp eax, 3
ja case.default.0x52292d
jmp dword [eax*4 + 0x522b64]
fld dword [esp + 0x28]
push 0xc8
fsub dword [0x8850c0]
fstp dword [edi]
call fcn.0042d710
movzx edx, ax
mov dword [esp + 0x1c], edx
push 0xc8
fild dword [esp + 0x20]
fmul dword [0x886824]
fmul dword [esp + 0x28]
fadd dword [esp + 0x34]
fsub dword [esp + 0x28]
fstp dword [esi - 0x18]
call fcn.0042d710
movzx eax, ax
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
jmp 0x5229cc
fld dword [esp + 0x28]
push 0xc8
fadd dword [0x8850c0]
fstp dword [edi]
call fcn.0042d710
movzx ecx, ax
mov dword [esp + 0x1c], ecx
push 0xc8
fild dword [esp + 0x20]
fmul dword [0x886824]
fmul dword [esp + 0x28]
fadd dword [esp + 0x34]
fsub dword [esp + 0x28]
fstp dword [esi - 0x18]
call fcn.0042d710
movzx edx, ax
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fmul dword [0x886824]
fmul dword [esp + 0x2c]
fadd dword [esp + 0x38]
fsub dword [esp + 0x2c]
jmp 0x522a9f
push 0xc8
call fcn.0042d710
movzx eax, ax
mov dword [esp + 0x1c], eax
push 0xc8
fild dword [esp + 0x20]
fmul dword [0x886824]
fmul dword [esp + 0x24]
fadd dword [esp + 0x30]
fsub dword [esp + 0x24]
fstp dword [edi]
call fcn.0042d710
movzx ecx, ax
mov dword [esp + 0x20], ecx
fild dword [esp + 0x20]
fmul dword [0x886824]
fmul dword [esp + 0x28]
fadd dword [esp + 0x34]
fsub dword [esp + 0x28]
fstp dword [esi - 0x18]
fld dword [esp + 0x38]
fsub dword [0x8850c0]
jmp 0x522a9f
push 0xc8
call fcn.0042d710
movzx edx, ax
mov dword [esp + 0x1c], edx
push 0xc8
fild dword [esp + 0x20]
fmul dword [0x886824]
fmul dword [esp + 0x24]
fadd dword [esp + 0x30]
fsub dword [esp + 0x24]
fstp dword [edi]
call fcn.0042d710
movzx eax, ax
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fmul dword [0x886824]
fmul dword [esp + 0x28]
fadd dword [esp + 0x34]
fsub dword [esp + 0x28]
fstp dword [esi - 0x18]
fld dword [esp + 0x38]
fadd dword [0x8850c0]
fstp dword [esi - 0x14]
add esp, 8
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov ecx, ebx
mov dword [ecx], edx
mov edx, dword [esp + 0x3c]
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
fld dword [edi]
fadd dword [ebx]
fstp dword [edi]
fld dword [ebx + 4]
fadd dword [esi - 0x18]
fstp dword [esi - 0x18]
fld dword [ebx + 8]
fadd dword [esi - 0x14]
fstp dword [esi - 0x14]
mov ecx, edi
mov edx, dword [ecx]
lea eax, [esi - 4]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov ecx, dword [ecx + 8]
mov dword [eax + 8], ecx
mov eax, edi
mov ecx, dword [eax]
lea edx, [esi + 0x14]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov eax, dword [eax + 8]
mov dword [edx + 8], eax
mov ecx, edi
mov edx, dword [ecx]
lea eax, [esi + 0x2c]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov ecx, dword [ecx + 8]
mov dword [eax + 8], ecx
fld dword [esi - 4]
fadd dword [0x8cb048]
fstp dword [esi - 4]
fld dword [esi + 0x1c]
fadd dword [0x8cb048]
fstp dword [esi + 0x1c]
fld dword [esi + 0x2c]
fadd dword [0x8cb048]
fstp dword [esi + 0x2c]
fld dword [esi + 0x34]
fadd dword [0x8cb048]
fstp dword [esi + 0x34]
mov eax, dword [esp + 0x14]
add ebx, 0xc
add edi, 0x60
add esi, 0x60
dec eax
mov dword [esp + 0x14], eax
jne 0x5225f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret