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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a8681
push eax
mov dword fs:[0], esp
sub esp, 0x278
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 4], ebx
jne 0x524855
xor al, al
jmp 0x52526f
fld qword [0x6abc7c]
call sub.msvcrt.dll__CIacos
fld dword [esp + 0x298]
fchs
fmulp st(1)
lea edi, [esp + 0x84]
mov ebp, 4
fmul qword [0x6abc8c]
fld st(0)
fcos
fstp dword [esp + 0x54]
fsin
fstp dword [esp + 0x50]
mov ecx, edi
call fcn.005432d6
add edi, 8
dec ebp
jne 0x52488b
push 0xbf000000
push 0xbf000000
lea ecx, [esp + 0x18]
call fcn.005432e6
mov ecx, dword [eax]
push 0xbf000000
mov dword [esp + 0x88], ecx
mov ecx, esi
mov edx, dword [eax + 4]
mov dword [esp + 0x8c], edx
call fcn.00533a56
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
fild qword [esp + 0x14]
push ecx
lea ecx, [esp + 0x78]
fsub dword [0x6abc6c]
fstp dword [esp]
call fcn.005432e6
mov ecx, dword [eax]
mov dword [esp + 0x8c], ecx
mov ecx, esi
mov edx, dword [eax + 4]
mov dword [esp + 0x90], edx
call fcn.00533a46
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
fild qword [esp + 0x10]
push ecx
lea ecx, [esp + 0x74]
fsub dword [0x6abc6c]
fstp dword [esp]
push 0xbf000000
call fcn.005432e6
mov ecx, dword [eax]
mov dword [esp + 0x94], ecx
mov ecx, esi
mov edx, dword [eax + 4]
mov dword [esp + 0x98], edx
call fcn.00533a46
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
fild qword [esp + 0x10]
push ecx
mov ecx, esi
fsub dword [0x6abc6c]
fstp dword [esp]
call fcn.00533a56
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
fild qword [esp + 0x14]
push ecx
lea ecx, [esp + 0x78]
fsub dword [0x6abc6c]
fstp dword [esp]
call fcn.005432e6
mov ecx, dword [eax]
lea edi, [esp + 0x28]
mov dword [esp + 0x9c], ecx
mov ebp, 4
mov edx, dword [eax + 4]
mov dword [esp + 0xa0], edx
mov ecx, edi
call fcn.005432d6
add edi, 8
dec ebp
jne 0x524999
mov al, byte [esp + 0x2b0]
test al, al
je 0x5249ed
xor eax, eax
mov ecx, dword [esp + eax + 0x84]
mov edx, dword [esp + eax + 0x88]
mov dword [esp + eax + 0x28], ecx
mov dword [esp + eax + 0x2c], edx
add eax, 8
cmp eax, 0x20
jl 0x5249b3
fld dword [esp + 0x28]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 1
je 0x524bfb
fld dword [esp + 0x28]
jmp 0x524bff
xor eax, eax
fld dword [esp + 0x54]
fmul dword [esp + eax + 0x84]
fld dword [esp + 0x50]
fmul dword [esp + eax + 0x88]
add eax, 8
cmp eax, 0x20
fsubp st(1)
fstp dword [esp + eax + 0x20]
fld dword [esp + 0x50]
fmul dword [esp + eax + 0x7c]
fld dword [esp + 0x54]
fmul dword [esp + eax + 0x80]
faddp st(1)
fstp dword [esp + eax + 0x24]
jl 0x5249ef
mov al, byte [esp + 0x2ac]
test al, al
je 0x5249d1
mov ecx, esi
call fcn.00533a56
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
fild qword [esp + 0x10]
push ecx
mov ecx, esi
fsubr dword [0x6abc6c]
fstp dword [esp]
call fcn.00533a46
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
fild qword [esp + 0x14]
push ecx
lea ecx, [esp + 0x78]
fsub dword [0x6abc6c]
fstp dword [esp]
call fcn.005432e6
sub esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.00543306
lea ecx, [esp + 0x48]
call fcn.00543326
fcomp qword [0x6abc9c]
fnstsw ax
test ah, 1
je 0x524ab3
mov eax, dword [esp + 0x29c]
mov ecx, esi
push eax
call fcn.00523be6
jmp 0x52526f
mov ecx, esi
call fcn.00533a56
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
fild qword [esp + 0x10]
push ecx
mov ecx, esi
fsub dword [0x6abc6c]
fstp dword [esp]
call fcn.00533a46
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
fild qword [esp + 0x14]
push ecx
lea ecx, [esp + 0x78]
fsubr dword [0x6abc6c]
fstp dword [esp]
call fcn.005432e6
sub esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.00543306
lea ecx, [esp + 0x48]
call fcn.00543326
fcomp qword [0x6abc9c]
fnstsw ax
test ah, 1
je 0x524b2f
mov ecx, dword [esp + 0x29c]
push ecx
mov ecx, esi
call fcn.00523756
jmp 0x52526f
mov ecx, esi
call fcn.00533a46
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
fild qword [esp + 0x10]
push ecx
mov ecx, esi
fsubr dword [0x6abc6c]
fstp dword [esp]
call fcn.00533a56
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
fild qword [esp + 0x14]
push ecx
lea ecx, [esp + 0x78]
fsubr dword [0x6abc6c]
fstp dword [esp]
call fcn.005432e6
sub esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.00543306
lea ecx, [esp + 0x48]
call fcn.00543326
fcomp qword [0x6abc9c]
fnstsw ax
test ah, 1
je 0x524bab
mov edx, dword [esp + 0x29c]
mov ecx, esi
push edx
call fcn.00525296
jmp 0x52526f
sub esp, 8
lea eax, [esp + 0xa4]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.00543306
lea ecx, [esp + 0x48]
call fcn.00543326
fcomp qword [0x6abc9c]
fnstsw ax
test ah, 1
je 0x5249d1
mov ecx, dword [esp + 0x29c]
cmp ecx, ebx
je 0x52526d
push 1
push 1
push 1
push esi
call fcn.0051ace6
jmp 0x52526d
fld dword [esp + 0x30]
fld dword [esp + 0x38]
fcomp dword [esp + 0x40]
fnstsw ax
test ah, 1
je 0x524c14
fld dword [esp + 0x38]
jmp 0x524c18
fld dword [esp + 0x40]
fxch st(1)
fcomp st(1)
fnstsw ax
test ah, 1
fstp st(0)
je 0x524c44
fld dword [esp + 0x28]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 1
je 0x524c3a
mov ecx, dword [esp + 0x28]
jmp 0x524c61
mov edx, dword [esp + 0x30]
mov dword [esp + 0x24], edx
jmp 0x524c65
fld dword [esp + 0x38]
fcomp dword [esp + 0x40]
fnstsw ax
test ah, 1
je 0x524c5d
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], eax
jmp 0x524c65
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x24], ecx
fld dword [esp + 0x2c]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 1
je 0x524c7a
fld dword [esp + 0x2c]
jmp 0x524c7e
fld dword [esp + 0x34]
fld dword [esp + 0x3c]
fcomp dword [esp + 0x44]
fnstsw ax
test ah, 1
je 0x524c93
fld dword [esp + 0x3c]
jmp 0x524c97
fld dword [esp + 0x44]
fxch st(1)
fcomp st(1)
fnstsw ax
test ah, 1
fstp st(0)
je 0x524cc3
fld dword [esp + 0x2c]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 1
je 0x524cb9
mov edx, dword [esp + 0x2c]
jmp 0x524ce0
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
jmp 0x524ce4
fld dword [esp + 0x3c]
fcomp dword [esp + 0x44]
fnstsw ax
test ah, 1
je 0x524cdc
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x1c], ecx
jmp 0x524ce4
mov edx, dword [esp + 0x44]
mov dword [esp + 0x1c], edx
fld dword [esp + 0x28]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 0x41
jne 0x524cf9
fld dword [esp + 0x28]
jmp 0x524cfd
fld dword [esp + 0x30]
fld dword [esp + 0x38]
fcomp dword [esp + 0x40]
fnstsw ax
test ah, 0x41
jne 0x524d12
fld dword [esp + 0x38]
jmp 0x524d16
fld dword [esp + 0x40]
fxch st(1)
fcomp st(1)
fnstsw ax
test ah, 0x41
fstp st(0)
jne 0x524d42
fld dword [esp + 0x28]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 0x41
jne 0x524d38
mov eax, dword [esp + 0x28]
jmp 0x524d5f
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x18], ecx
jmp 0x524d63
fld dword [esp + 0x38]
fcomp dword [esp + 0x40]
fnstsw ax
test ah, 0x41
jne 0x524d5b
mov edx, dword [esp + 0x38]
mov dword [esp + 0x18], edx
jmp 0x524d63
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], eax
fld dword [esp + 0x2c]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 0x41
jne 0x524d78
fld dword [esp + 0x2c]
jmp 0x524d7c
fld dword [esp + 0x34]
fld dword [esp + 0x3c]
fcomp dword [esp + 0x44]
fnstsw ax
test ah, 0x41
jne 0x524d91
fld dword [esp + 0x3c]
jmp 0x524d95
fld dword [esp + 0x44]
fxch st(1)
fcomp st(1)
fnstsw ax
test ah, 0x41
fstp st(0)
jne 0x524dc1
fld dword [esp + 0x2c]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 0x41
jne 0x524db7
mov ecx, dword [esp + 0x2c]
jmp 0x524dde
mov edx, dword [esp + 0x34]
mov dword [esp + 0x20], edx
jmp 0x524de2
fld dword [esp + 0x3c]
fcomp dword [esp + 0x44]
fnstsw ax
test ah, 0x41
jne 0x524dda
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
jmp 0x524de2
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x20], ecx
fld dword [esp + 0x18]
fsub dword [esp + 0x24]
sub esp, 8
fadd dword [0x6abc6c]
fstp qword [esp]
call dword [sym.imp.msvcrt.dll_floor]
call sub.msvcrt.dll__ftol
fld dword [esp + 0x28]
fsub dword [esp + 0x24]
mov ebp, eax
mov dword [esp + 0x64], ebp
fadd dword [0x6abc6c]
fstp qword [esp]
call dword [sym.imp.msvcrt.dll_floor]
add esp, 8
call sub.msvcrt.dll__ftol
fild dword [esp + 0x5c]
fld dword [esp + 0x18]
fadd dword [esp + 0x24]
fld st(1)
fsub dword [0x6abc94]
mov edi, eax
mov al, byte [esp + 0x2b0]
fsubp st(1)
mov dword [esp + 0x60], edi
test al, al
fmul dword [0x6abc6c]
fstp dword [esp + 0x6c]
fild dword [esp + 0x60]
fstp dword [esp + 0x64]
fld dword [esp + 0x20]
fadd dword [esp + 0x1c]
fld dword [esp + 0x64]
fsub dword [0x6abc94]
fsubp st(1)
fmul dword [0x6abc6c]
fstp dword [esp + 0x48]
fmul dword [0x6abc6c]
fstp dword [esp + 0x70]
fld dword [esp + 0x64]
fmul dword [0x6abc6c]
fstp dword [esp + 0x10]
je 0x524eda
mov ecx, esi
call fcn.00533a56
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ebx
fild qword [esp + 0x64]
mov ecx, esi
fmul dword [0x6abc6c]
fsubr dword [esp + 0x6c]
fstp dword [esp + 0x6c]
call fcn.00533a46
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ebx
fild qword [esp + 0x7c]
fmul dword [0x6abc6c]
fsubr dword [esp + 0x48]
fstp dword [esp + 0x48]
push ebx
lea ecx, [esp + 0xa8]
call fcn.0051ab96
push esi
lea ecx, [esp + 0xa8]
mov dword [esp + 0x294], ebx
call fcn.0051ae26
mov ecx, esi
call fcn.00533a96
push eax
mov ecx, esi
call fcn.00533a86
and eax, 0xffff
lea ecx, [esp + 0xa8]
push eax
push edi
push ebp
call fcn.0051ae66
push 0x100
mov ecx, esi
call fcn.00529ea6
push eax
lea ecx, [esp + 0xac]
call fcn.0052a946
mov ecx, esi
call fcn.00539576
test al, al
je 0x524f4e
lea ecx, [esp + 0xa4]
call fcn.00539616
mov eax, dword [esp + 0x2a8]
cmp eax, ebx
je 0x524f61
mov edx, dword [eax]
mov dword [esp + 0x58], edx
jmp 0x524f74
mov al, 0xff
mov byte [esp + 0x5b], 0
mov byte [esp + 0x5a], al
mov byte [esp + 0x59], al
mov byte [esp + 0x58], al
mov eax, dword [esp + 0x48]
mov ecx, esi
mov dword [esp + 0x20], eax
call fcn.005338a6
test al, al
jne 0x5250f2
xor ebp, ebp
cmp edi, ebx
mov dword [esp + 0x48], ebx
jle 0x525227
mov dword [esp + 0x4c], ebx
jmp 0x524fa1
xor ebx, ebx
mov eax, dword [esp + 0x4c]
cdq
idiv edi
mov dword [esi + 0x144], eax
mov eax, dword [esi + 0x148]
cmp eax, ebx
jne 0x525227
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x1c], ecx
push edx
push ebx
lea ecx, [esp + 0xac]
call fcn.0052ad86
mov ecx, esi
mov edi, eax
call fcn.00539576
test al, al
je 0x524ff7
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0xa4]
push eax
push ebx
call fcn.005398a6
mov ebp, eax
mov eax, dword [esp + 0x5c]
cmp eax, ebx
jle 0x5250bf
fld dword [esp + 0x20]
fmul dword [esp + 0x50]
mov ebx, eax
fstp dword [esp + 0x78]
fld dword [esp + 0x20]
fmul dword [esp + 0x54]
fstp dword [esp + 0x64]
fld dword [esp + 0x1c]
fmul dword [esp + 0x54]
mov al, byte [esp + 0x2b0]
test al, al
fadd dword [esp + 0x78]
fstp dword [esp + 0x18]
fld dword [esp + 0x1c]
fmul dword [esp + 0x50]
fsubr dword [esp + 0x64]
fstp dword [esp + 0x24]
je 0x525060
fld dword [esp + 0x18]
fadd dword [esp + 0x70]
fstp dword [esp + 0x18]
fld dword [esp + 0x24]
fadd dword [esp + 0x10]
fstp dword [esp + 0x24]
mov edx, dword [esp + 0x2a4]
mov eax, dword [esp + 0x2a0]
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x20]
push eax
push ecx
lea eax, [esp + 0x8c]
push edx
push eax
mov ecx, esi
call fcn.00534016
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov cx, word [esp + 0x1a]
test ebp, ebp
je 0x5250a1
mov byte [ebp], ch
inc ebp
fld dword [esp + 0x1c]
fadd dword [0x6abc94]
mov byte [edi], al
inc edi
mov byte [edi], ah
inc edi
fstp dword [esp + 0x1c]
mov byte [edi], cl
inc edi
dec ebx
jne 0x52501d
fld dword [esp + 0x20]
fadd dword [0x6abc94]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x60]
inc eax
add edx, 0x64
cmp eax, edi
fstp dword [esp + 0x20]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
jl 0x524f9f
jmp 0x525225
test edi, edi
jle 0x525225
mov dword [esp + 0x4c], 0
jmp 0x525108
mov edi, dword [esp + 0x60]
mov eax, dword [esp + 0x4c]
cdq
idiv edi
mov dword [esi + 0x144], eax
mov eax, dword [esi + 0x148]
test eax, eax
jne 0x525225
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x6c]
xor ebp, ebp
mov dword [esp + 0x1c], ecx
test eax, eax
jle 0x5251ff
fld dword [esp + 0x20]
fmul dword [esp + 0x50]
fstp dword [esp + 0x78]
fld dword [esp + 0x20]
fmul dword [esp + 0x54]
fstp dword [esp + 0x64]
fld dword [esp + 0x1c]
fmul dword [esp + 0x54]
mov al, byte [esp + 0x2b0]
test al, al
fadd dword [esp + 0x78]
fstp dword [esp + 0x18]
fld dword [esp + 0x1c]
fmul dword [esp + 0x50]
fsubr dword [esp + 0x64]
fstp dword [esp + 0x24]
je 0x525194
fld dword [esp + 0x18]
fadd dword [esp + 0x70]
fstp dword [esp + 0x18]
fld dword [esp + 0x24]
fadd dword [esp + 0x10]
fstp dword [esp + 0x24]
mov eax, dword [esp + 0x2a4]
mov ecx, dword [esp + 0x2a0]
lea edx, [esp + 0x58]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x8c]
push eax
push ecx
mov ecx, esi
call fcn.00534016
mov edi, dword [eax]
mov ecx, esi
call fcn.00539576
test al, al
je 0x5251d3
push 1
jmp 0x5251d5
push 0
push edi
push ebx
push ebp
lea ecx, [esp + 0xb4]
call fcn.0052a456
fld dword [esp + 0x1c]
fadd dword [0x6abc94]
mov eax, dword [esp + 0x5c]
inc ebp
cmp ebp, eax
fstp dword [esp + 0x1c]
jl 0x525151
fld dword [esp + 0x20]
fadd dword [0x6abc94]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x60]
inc ebx
add ecx, 0x64
cmp ebx, eax
mov dword [esp + 0x4c], ecx
fstp dword [esp + 0x20]
jl 0x525104
xor ebx, ebx
mov ecx, dword [esp + 0x29c]
cmp ecx, ebx
je 0x52523c
lea edx, [esp + 0xa4]
push edx
jmp 0x525246
lea eax, [esp + 0xa4]
mov ecx, esi
push eax
call fcn.0051b126
lea ecx, [esp + 0xa4]
mov dword [esp + 0x290], 0xffffffff
mov dword [esp + 0xa4], 0x6abb34
call fcn.0051abb6
mov al, 1
mov ecx, dword [esp + 0x288]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x284
ret 0x1c