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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
cmp dword [ebx + 0x68], edi
je 0x525e11
mov eax, dword [ebx + 0x4c]
cmp eax, edi
je 0x525c12
cmp dword [ebx + 0x98], edi
mov dword [esp + 0x10], edi
je 0x52585a
movzx ecx, byte [ebx + 0x80]
shr ecx, 5
and ecx, 1
mov dword [ebx + 0x2c], ecx
cmp dword [ebx + 0x2c], edi
je 0x525867
mov dword [esp + 0x10], 1
cmp dword [ebx + 0x6c], edi
je 0x525874
mov dword [esp + 0x10], 2
cmp dword [ebx + 0x70], edi
je 0x525887
mov dword [esp + 0x10], 3
mov dword [ebx + 0x2c], edi
mov dword [ebx + 0x6c], edi
cmp dword [ebx + 0xbc], edi
je 0x525a11
push 0x10
call 0x5b91d4
cmp eax, edi
je 0x5258ad
push dword [ebx + 0x40]
mov esi, eax
push dword [ebx + 0x3c]
call fcn.00522f4a
jmp 0x5258af
xor eax, eax
cmp eax, edi
mov dword [esp + 0xc], eax
jne 0x5258bd
mov dword [ebx + 0xbc], edi
lea esi, [esp + 0x20]
call fcn.00522f26
mov esi, dword [ebx + 0xa4]
call fcn.00522f7e
push 5
xor edx, edx
pop ecx
div ecx
mov esi, dword [ebx + 0xa8]
mov dword [esp + 0x14], eax
call fcn.00522f7e
push 5
xor edx, edx
pop ecx
div ecx
mov esi, dword [ebx + 0xa4]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x3c], eax
call fcn.00522f9e
mov esi, dword [ebx + 0xa4]
push eax
push dword [esp + 0x18]
push edi
call fcn.00522f7e
push 5
pop ecx
xor edx, edx
div ecx
mov edi, dword [ebx + 0xa4]
xor ecx, ecx
lea esi, [esp + 0x2c]
imul eax, dword [esp + 0x1c]
push eax
lea eax, [esp + 0x40]
call fcn.00522e30
mov ecx, dword [ebx + 0x3c]
mov eax, dword [esp + 0x14]
sub ecx, dword [esp + 0x1c]
mov esi, dword [ebx + 0x4c]
and dword [esp + 0x34], 0
sub ecx, eax
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
call fcn.00522f9e
mov esi, dword [ebx + 0x4c]
push eax
call fcn.00522f7e
push 5
pop ecx
xor edx, edx
div ecx
mov esi, dword [ebx + 0x4c]
dec eax
push eax
push 0
call fcn.00522f7e
push 5
pop ecx
xor edx, edx
div ecx
mov edi, dword [ebx + 0x4c]
xor ecx, ecx
lea esi, [esp + 0x2c]
imul eax, dword [esp + 0x1c]
push eax
lea eax, [esp + 0x40]
call fcn.00522e30
mov edi, dword [esp + 0x1c]
mov eax, dword [ebx + 0x3c]
sub eax, edi
and dword [esp + 0x34], 0
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x38], edi
mov esi, dword [ebx + 0xa8]
mov dword [esp + 0x3c], eax
call fcn.00522f9e
mov esi, dword [ebx + 0xa8]
push eax
push edi
push 0
call fcn.00522f7e
push 5
pop ecx
xor edx, edx
div ecx
mov edi, dword [ebx + 0xa8]
xor ecx, ecx
lea esi, [esp + 0x2c]
imul eax, dword [esp + 0x1c]
push eax
lea eax, [esp + 0x40]
call fcn.00522e30
push dword [esp + 0x20]
call 0x5b917a
xor edi, edi
jmp 0x525a15
mov dword [esp + 0xc], eax
cmp dword [ebx + 0x2c], edi
je 0x525b97
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], edi
call 0x5b9240
cmp dword [ebx + 0x98], edi
mov dword [esp + 0x18], eax
je 0x525a89
mov eax, dword [ebx + 0x88]
cmp dword [ebx + 0x8c], eax
jbe 0x525a4c
mov dword [ebx + 0x8c], eax
test eax, eax
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
jge 0x525a5e
fadd qword [0x51bb18]
mov eax, dword [ebx + 0x8c]
fdivr qword [0x51bcb0]
test eax, eax
fild dword [ebx + 0x8c]
jge 0x525a7a
fadd qword [0x51bb18]
fmulp st(1)
fadd qword [0x51bca8]
fstp dword [ebx + 0x7c]
fld1
jmp 0x525a8e
fld1
fst dword [ebx + 0x7c]
fst dword [esp + 0x50]
lea eax, [esp + 0x50]
fldz
push eax
fst dword [esp + 0x58]
lea esi, [esp + 0x18]
fst dword [esp + 0x5c]
fst dword [esp + 0x60]
fst dword [esp + 0x64]
fst dword [esp + 0x68]
fst dword [esp + 0x70]
fst dword [esp + 0x74]
fst dword [esp + 0x78]
fst dword [esp + 0x7c]
fst dword [esp + 0x80]
fst dword [esp + 0x88]
fst dword [esp + 0x8c]
fst dword [esp + 0x90]
fst dword [esp + 0x94]
fst dword [esp + 0x98]
fxch st(1)
fst dword [esp + 0x6c]
fst dword [esp + 0x84]
fld dword [ebx + 0x7c]
fstp dword [esp + 0x9c]
fxch st(1)
fst dword [esp + 0xa0]
fst dword [esp + 0xa4]
fst dword [esp + 0xa8]
fst dword [esp + 0xac]
fstp dword [esp + 0xb0]
fstp dword [esp + 0xb4]
call fcn.005272ff
cmp dword [ebx + 0xbc], edi
mov esi, dword [esp + 0xc]
je 0x525b51
call fcn.00522f9e
push eax
call fcn.00522f7e
push eax
push edi
push edi
mov edi, esi
jmp 0x525b7d
call fcn.00522f9e
mov esi, dword [esp + 0xc]
push eax
call fcn.00522f7e
push 5
pop ecx
xor edx, edx
div ecx
push eax
push edi
mov edi, esi
call fcn.00522f7e
push 5
xor edx, edx
pop ecx
div ecx
imul eax, dword [esp + 0x1c]
push eax
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x24]
lea eax, [ebx + 0x34]
call fcn.00522e30
push dword [esp + 0x14]
call 0x5b9246
jmp 0x525bee
cmp dword [ebx + 0xbc], edi
mov esi, dword [esp + 0xc]
je 0x525bb5
call fcn.00522f9e
push eax
call fcn.00522f7e
push eax
push edi
push edi
mov edi, esi
jmp 0x525be1
call fcn.00522f9e
mov esi, dword [esp + 0xc]
push eax
call fcn.00522f7e
push 5
pop ecx
xor edx, edx
div ecx
push eax
push edi
mov edi, esi
call fcn.00522f7e
push 5
xor edx, edx
pop ecx
div ecx
imul eax, dword [esp + 0x1c]
push eax
mov esi, dword [ebp + 8]
xor ecx, ecx
lea eax, [ebx + 0x34]
call fcn.00522e30
cmp dword [ebx + 0xbc], 0
je 0x525d84
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x525d84
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x525d84
mov eax, dword [ebx + 0x9c]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
lea esi, [esp + 0x30]
call fcn.0052343b
mov esi, dword [ebx + 0x40]
mov edx, dword [ebx + 0x3c]
mov ecx, dword [ebx + 0x38]
sub esi, 5
push esi
mov esi, dword [ebp + 8]
sub edx, 5
lea edi, [ebx + 0x34]
mov eax, dword [edi]
push edx
add ecx, 3
add eax, 3
push ecx
push eax
lea eax, [esp + 0x40]
call fcn.00522dc5
fld1
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push eax
push 0
push ecx
fstp dword [esp]
push 0xff000000
call 0x5b9180
mov dword [esp + 0x18], eax
mov eax, dword [edi]
inc eax
inc eax
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x38]
inc eax
inc eax
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x3c]
sub eax, 4
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x40]
sub eax, 4
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x24]
call fcn.00522d7a
xor ecx, ecx
cmp dword [ebx + 0x2c], ecx
je 0x525d08
cmp dword [ebx + 0xa0], ecx
jne 0x525d10
fld1
lea eax, [esp + 0x20]
push eax
push ecx
push ecx
fstp dword [esp]
push 0xffffffffffffffff
mov dword [esp + 0x30], ecx
call 0x5b9180
mov dword [esp + 0x24], eax
mov eax, dword [edi]
inc eax
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0x38]
inc eax
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0x3c]
dec eax
dec eax
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 0x40]
dec eax
dec eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x44]
call fcn.00522d7a
lea eax, [esp + 0x14]
push eax
mov eax, edi
jmp 0x525d64
cmp dword [ebx + 0xa0], ecx
je 0x525d72
mov eax, dword [ebx + 0x90]
fld dword [0x51bca0]
lea edx, [esp + 0x20]
push edx
push ecx
push ecx
fstp dword [esp]
push eax
mov dword [esp + 0x30], ecx
call 0x5b9180
mov dword [esp + 0x24], eax
mov eax, dword [edi]
add eax, 3
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0x38]
add eax, 3
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0x3c]
sub eax, 6
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 0x40]
sub eax, 6
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x44]
call fcn.00522d7a
push dword [esp + 0x20]
call 0x5b91bc
push dword [esp + 0x14]
call 0x5b91bc
push dword [esp + 0x34]
call 0x5b91ce
cmp dword [ebx + 0x6c], 0
je 0x525da6
cmp dword [ebx + 0xc4], 0
je 0x525da6
fld1
mov esi, dword [ebp + 8]
push ecx
push ecx
fst dword [esp + 4]
fstp dword [esp]
call fcn.005272d7
xor esi, esi
cmp dword [ebx + 0x70], esi
je 0x525dd3
mov eax, dword [ebx]
push 0x51073c
mov ecx, ebx
call dword [eax + 0x14]
mov esi, eax
test esi, esi
je 0x525dd3
lea eax, [esi + 0x8c]
mov edi, dword [eax]
mov ecx, edi
and ecx, 0x7fffffff
mov dword [eax], ecx
jmp 0x525dd7
mov edi, dword [esp + 0x1c]
push dword [ebp + 8]
mov ecx, ebx
call fcn.0052c4af
test esi, esi
je 0x525deb
mov dword [esi + 0x8c], edi
cmp dword [ebx + 0x6c], 0
je 0x525e11
cmp dword [ebx + 0xc4], 0
je 0x525e11
fld dword [0x51bb60]
mov esi, dword [ebp + 8]
push ecx
push ecx
fst dword [esp + 4]
fstp dword [esp]
call fcn.005272d7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4