Function at 0x5a7f00
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5e876b
mov eax, dword fs:[0]
push eax
sub esp, 0x3f8
mov eax, dword [0x62fda0]
xor eax, esp
mov dword [esp + 0x3f0], eax
push ebx
push esi
push edi
mov eax, dword [0x62fda0]
xor eax, esp
push eax
lea eax, [esp + 0x408]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push fcn.0045c490
push fcn.00568b40
push 0x12
push 0x10
lea eax, [esp + 0x17c]
push eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edi
call fcn.005bd55c
mov cx, word [edi + 0x20]
and cx, 0xfff9
movzx edx, cx
push edi
lea ecx, [esp + 0x3d8]
mov dword [esp + 0x414], 0
mov dword [esp + 0x24], edx
call fcn.005195f0
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov esi, dword [edi + 0x24]
mov ebx, dword [edi + 0x28]
mov dword [esp + 0x68], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x6c], ecx
lea ecx, [esp + 0x3b0]
mov byte [esp + 0x410], 1
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x70], esi
mov dword [esp + 0x30], ebx
call fcn.004ee1e0
lea ecx, [esp + 0xa4]
push ecx
mov ecx, edi
mov byte [esp + 0x414], 2
call fcn.004efe90
push eax
lea ecx, [esp + 0x78]
call fcn.005b88c0
cmp esi, ebx
mov eax, esi
jl 0x5a7ff4
mov eax, ebx
cdq
sub eax, edx
mov ebx, eax
mov eax, esi
sub eax, dword [esp + 0x30]
sar ebx, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x44], 0
fild dword [esp + 0x10]
fabs
fcomp qword [0x5ee600]
fnstsw ax
test ah, 5
jp 0x5a8028
mov dword [esp + 0x44], 1
fild dword [esp + 0x70]
mov ecx, dword [esp + 0x24]
fstp qword [esp + 0x5c]
call fcn.005620e0
fld qword [esp + 0x5c]
mov ecx, dword [esp + 0x24]
fmul st(1), st(0)
fsubrp st(1)
fstp qword [esp + 0xc4]
fild dword [esp + 0x30]
fstp qword [esp + 0xcc]
call fcn.005620e0
fld qword [esp + 0xcc]
fmul st(1), st(0)
fsubrp st(1)
fst qword [esp + 0x4c]
fld qword [esp + 0xc4]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x5a807f
fstp st(1)
jmp 0x5a8081
fstp st(0)
fmul qword [0x5ecc78]
mov ecx, edi
fstp qword [esp + 0x7c]
call fcn.0051e5d0
test eax, eax
je 0x5a8791
mov ecx, edi
call fcn.004f10c0
fld st(0)
fld qword [0x5ecc70]
fsub st(1), st(0)
fxch st(1)
fcom qword [0x5fb4c0]
fnstsw ax
test ah, 1
jne 0x5a81d6
fcomp qword [0x5fb4b8]
fnstsw ax
test ah, 0x41
jp 0x5a81d8
fstp st(1)
fstp st(0)
lea edx, [esp + 0x16c]
push edx
lea ecx, [esp + 0x3d8]
call fcn.0051a8a0
push eax
lea eax, [esp + 0x170]
push eax
lea ecx, [esp + 0x148]
call fcn.00512040
lea ecx, [esp + 0x100]
mov byte [esp + 0x410], 5
call fcn.00528000
lea ecx, [esp + 0x88]
mov byte [esp + 0x410], 6
call fcn.00528000
lea ecx, [esp + 0x34]
mov byte [esp + 0x410], 7
call fcn.004f6ca0
mov eax, dword [esp + 0x10]
cdq
push 0
lea ecx, [esp + 0x38]
push ecx
mov esi, eax
xor esi, edx
push 1
sub esi, edx
push ebx
lea ecx, [esp + 0x150]
mov byte [esp + 0x420], 8
mov dword [esp + 0x30], esi
call fcn.00514bb0
mov eax, dword [esp + 0x34]
xor ecx, ecx
cmp eax, 2
mov dword [esp + 0x2c], ecx
jl 0x5a838f
fldz
xor esi, esi
fstp qword [esp + 0x14]
mov dword [esp + 0x10], ecx
test eax, eax
jle 0x5a838b
lea esp, [esp]
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx + esi*4]
call fcn.00522510
mov ebx, eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + esi*4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x34]
call eax
cmp dword [esp + 0x10], ebx
jg 0x5a837e
fcom qword [esp + 0x14]
fnstsw ax
test ah, 1
jne 0x5a837e
fstp qword [esp + 0x14]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x2c], esi
jmp 0x5a8380
fstp st(0)
fcompp
fnstsw ax
test ah, 5
jp 0x5a80d3
lea ecx, [esp + 0x11c]
call fcn.004f9920
cmp esi, dword [esp + 0x30]
mov esi, dword [esp + 0x20]
jge 0x5a82cf
cmp si, 1
jne 0x5a820d
fld qword [0x5ecc70]
jmp 0x5a8213
fld qword [0x5ecc68]
sub esp, 8
mov eax, esp
lea edx, [esp + 0x7c]
fstp qword [eax]
mov dword [esp + 0x1c], esp
push edx
lea ecx, [esp + 0x128]
call fcn.004f9b80
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x124]
call fcn.004f9c70
push eax
lea ecx, [esp + 0xa8]
call fcn.005b98d0
lea edx, [esp + 0xa4]
push edx
lea ecx, [esp + 0x18]
call fcn.005b88c0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x3d8]
call fcn.004f11e0
lea ecx, [esp + 0xa4]
push ecx
lea ecx, [esp + 0x18]
call fcn.005b88c0
push esi
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0xe4]
call fcn.004ee640
mov byte [esp + 0x410], 3
push eax
lea ecx, [esp + 0x3b4]
call fcn.004efe30
lea ecx, [esp + 0xd4]
mov byte [esp + 0x410], 2
call fcn.004eeaf0
jmp 0x5a80d3
cmp si, 1
jne 0x5a82dd
fld qword [0x5ecc68]
jmp 0x5a82e3
fld qword [0x5ecc70]
sub esp, 8
mov eax, esp
lea edx, [esp + 0x7c]
fstp qword [eax]
mov dword [esp + 0x1c], esp
push edx
lea ecx, [esp + 0x128]
call fcn.004f9b80
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x124]
call fcn.004f9c70
push eax
lea ecx, [esp + 0xa8]
call fcn.005b98d0
lea edx, [esp + 0xa4]
push edx
lea ecx, [esp + 0x18]
call fcn.005b88c0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x3d8]
call fcn.004f1310
lea ecx, [esp + 0xa4]
push ecx
lea ecx, [esp + 0x18]
call fcn.005b88c0
push esi
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0xe4]
call fcn.004ee640
mov byte [esp + 0x410], 4
jmp 0x5a82a9
fstp st(0)
inc esi
cmp esi, dword [esp + 0x34]
jl 0x5a8190
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x2c]
mov ecx, dword [ecx + edx*4]
lea eax, [esp + 0x100]
push eax
call fcn.00526f80
mov ebx, dword [esp + 0x10c]
push 0
lea ecx, [esp + 0x104]
call fcn.0052c760
push eax
push ebx
mov ebx, dword [esp + 0x30]
mov ecx, ebx
call fcn.005659d0
lea ecx, [esp + 0x34]
call fcn.004f6cf0
fld qword [esp + 0xc4]
fld st(0)
call fcn.005bd3f0
fld qword [esp + 0x4c]
fld st(0)
mov dword [esp + 0x3f8], eax
call fcn.005bd3f0
fcom st(1)
mov dword [esp + 0x3fc], eax
fnstsw ax
test ah, 0x41
jne 0x5a840d
fld qword [esp + 0xcc]
fdiv st(2)
jmp 0x5a8413
fld qword [esp + 0x5c]
fdiv st(1)
fld st(0)
call fcn.005bd3f0
mov ecx, eax
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fcompp
fnstsw ax
test ah, 5
jp 0x5a842e
inc ecx
mov edx, ecx
and edx, 0x80000001
jns 0x5a843d
dec edx
or edx, 0xfffffffe
inc edx
cmp edx, 1
jne 0x5a8443
inc ecx
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
dec eax
cmp eax, 1
jl 0x5a8650
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
fild dword [esp + 0x10]
cmp dword [esp + 0x70], eax
jge 0x5a8493
fmul st(2)
fld st(0)
fsub st(3)
call fcn.005bd3f0
cmp esi, eax
jle 0x5a8691
fstp st(2)
fstp st(0)
call fcn.005bd3f0
mov dword [esp + 0x3fc], eax
jmp 0x5a84b6
fmul st(1)
fld st(0)
fsub st(2)
call fcn.005bd3f0
cmp esi, eax
jle 0x5a8691
fstp st(2)
fstp st(0)
call fcn.005bd3f0
mov dword [esp + 0x3f8], eax
push fcn.0045c490
push fcn.00568b40
push 0x12
push 0x10
lea ecx, [esp + 0x29c]
push ecx
call fcn.005bd55c
lea edx, [esp + 0x28c]
push edx
lea ecx, [esp + 0x3d8]
mov byte [esp + 0x414], 9
call fcn.0051a8a0
push eax
lea eax, [esp + 0x290]
push eax
lea ecx, [esp + 0xdc]
call fcn.00512040
lea ecx, [esp + 0xa4]
mov byte [esp + 0x410], 0xa
call fcn.00528000
fld qword [esp + 0x7c]
xor ebx, ebx
push ebx
lea ecx, [esp + 0x38]
push ecx
push 1
mov byte [esp + 0x41c], 0xb
call fcn.005bd3f0
push eax
lea ecx, [esp + 0xe4]
call fcn.00514bb0
mov eax, dword [esp + 0x34]
cmp eax, 2
mov dword [esp + 0x2c], ebx
jl 0x5a85a4
fldz
xor esi, esi
fstp qword [esp + 0x5c]
test eax, eax
jle 0x5a85a4
jmp 0x5a8560
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx + esi*4]
call fcn.00522510
mov edi, eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + esi*4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x34]
call eax
cmp ebx, edi
jg 0x5a8597
fcom qword [esp + 0x5c]
fnstsw ax
test ah, 1
jne 0x5a8597
fstp qword [esp + 0x5c]
mov ebx, edi
mov dword [esp + 0x2c], esi
jmp 0x5a8599
fstp st(0)
inc esi
cmp esi, dword [esp + 0x34]
jl 0x5a8560
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x2c]
mov ecx, dword [ecx + edx*4]
lea eax, [esp + 0xa4]
push eax
call fcn.00526f80
mov esi, dword [esp + 0xb0]
push 0
lea ecx, [esp + 0xa8]
call fcn.0052c760
mov ecx, dword [esp + 0x28]
push eax
push esi
call fcn.005659d0
lea ecx, [esp + 0x34]
call fcn.004f6cf0
lea ecx, [esp + 0xa4]
mov byte [esp + 0x410], 0xa
call fcn.0052d4d0
lea ecx, [esp + 0xd4]
mov byte [esp + 0x410], 9
call fcn.00514dd0
push fcn.0045c490
push 0x12
push 0x10
lea ecx, [esp + 0x298]
push ecx
mov byte [esp + 0x420], 8
call fcn.005bd4f9
fld qword [esp + 0x4c]
fld qword [esp + 0xc4]
mov esi, dword [esp + 0x20]
fxch st(1)
add dword [esp + 0x10], 2
sub dword [esp + 0x14], 1
jne 0x5a8460
mov ebx, dword [esp + 0x24]
cmp dword [esp + 0x44], 1
fstp st(1)
fstp st(0)
jne 0x5a8695
push edi
lea ecx, [esp + 0x3b4]
call fcn.004efe30
lea edx, [esp + 0x3b0]
push edx
lea ecx, [esp + 0x8c]
call fcn.0052d810
mov eax, dword [esp + 0x94]
push 0
push 3
push eax
mov ecx, ebx
call fcn.005659d0
jmp 0x5a86c6
fstp st(0)
jmp 0x5a863c
mov ecx, edi
call fcn.004f10c0
fld st(0)
fld qword [0x5ecc70]
fsub st(1), st(0)
fxch st(1)
fcom qword [0x5fb4c0]
fnstsw ax
test ah, 1
jne 0x5a8718
fcomp qword [0x5fb4b8]
fnstsw ax
test ah, 0x41
jp 0x5a871a
fstp st(1)
fstp st(0)
lea ecx, [esp + 0x34]
mov byte [esp + 0x410], 7
call fcn.00467410
lea ecx, [esp + 0x88]
mov byte [esp + 0x410], 6
call fcn.0052d4d0
lea ecx, [esp + 0x100]
mov byte [esp + 0x410], 5
call fcn.0052d4d0
lea ecx, [esp + 0x140]
mov byte [esp + 0x410], 2
call fcn.00514dd0
jmp 0x5a896d
fstp st(0)
fcompp
fnstsw ax
test ah, 5
jp 0x5a86c6
lea ecx, [esp + 0x3bc]
push ecx
lea edx, [esp + 0x3b8]
push edx
call fcn.004fa0c0
add esp, 8
test eax, eax
jne 0x5a86c6
lea ecx, [esp + 0x3b0]
call fcn.004f10c0
fstp qword [esp + 0x4c]
mov ecx, edi
call fcn.004f10c0
fcomp qword [esp + 0x4c]
fnstsw ax
test ah, 0x41
jne 0x5a86c6
lea eax, [esp + 0x3b0]
push eax
lea ecx, [esp + 0x8c]
call fcn.0052d810
mov ecx, dword [esp + 0x94]
push 0
push 3
push ecx
mov ecx, ebx
call fcn.005659d0
jmp 0x5a86c6
mov eax, dword [esp + 0x30]
cmp esi, eax
jle 0x5a87b2
mov eax, esi
cdq
sub eax, edx
mov edx, dword [esp + 0x68]
mov esi, eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
jmp 0x5a87c7
mov ecx, dword [esp + 0x54]
cdq
sub eax, edx
mov edx, dword [esp + 0x58]
mov esi, eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
lea ecx, [esp + 0x88]
sar esi, 1
call fcn.00528000
sub esi, ebx
push esi
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x418], 0xc
call fcn.004f2bd0
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0xd8]
mov byte [esp + 0x414], 0xd
mov dword [esp + 0x2c], esi
call fcn.00512160
lea edx, [esp + 0x88]
push edx
lea ecx, [esp + 0xd8]
mov byte [esp + 0x414], 0xe
call fcn.00526f80
mov esi, dword [esp + 0x94]
push 0
lea ecx, [esp + 0x8c]
call fcn.0052c760
mov ebx, dword [esp + 0x28]
push eax
push esi
mov ecx, ebx
call fcn.005659d0
lea ecx, [esp + 0x88]
call fcn.00529550
fild dword [esp + 0x28]
mov edi, 1
fst qword [esp + 0x4c]
fld qword [esp + 0x7c]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x5a8932
call fcn.005bd3f0
push eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0xac]
call fcn.004f2bd0
lea ecx, [esp + 0xa4]
push ecx
inc edi
lea ecx, [esp + 0x144]
mov byte [esp + 0x414], 0xf
mov dword [esp + 0x2c], edi
call fcn.00512160
lea edx, [esp + 0x88]
push edx
lea ecx, [esp + 0x144]
mov byte [esp + 0x414], 0x10
call fcn.00526f80
mov esi, dword [esp + 0x94]
push 0
lea ecx, [esp + 0x8c]
call fcn.0052c760
push eax
push esi
mov ecx, ebx
call fcn.005659d0
lea ecx, [esp + 0x88]
call fcn.00529550
lea ecx, [esp + 0x140]
mov byte [esp + 0x410], 0xf
call fcn.00514dd0
lea ecx, [esp + 0xa4]
mov byte [esp + 0x410], 0xe
call fcn.004f2cc0
fild dword [esp + 0x28]
fmul qword [esp + 0x7c]
fcom qword [esp + 0x4c]
fnstsw ax
test ah, 5
jnp 0x5a8875
lea ecx, [esp + 0xd4]
fstp st(0)
mov byte [esp + 0x410], 0xd
call fcn.00514dd0
lea ecx, [esp + 0x34]
mov byte [esp + 0x410], 0xc
call fcn.004f2cc0
lea ecx, [esp + 0x88]
mov byte [esp + 0x410], 2
call fcn.0052d4d0
lea ecx, [esp + 0x3b0]
mov byte [esp + 0x410], 1
call fcn.004eeaf0
lea ecx, [esp + 0x3d4]
mov byte [esp + 0x410], 0
call fcn.00514eb0
push fcn.0045c490
push 0x12
push 0x10
lea eax, [esp + 0x178]
push eax
mov dword [esp + 0x420], 0xffffffff
call fcn.005bd4f9
mov ecx, dword [esp + 0x408]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3f0]
xor ecx, esp
call fcn.005bd2c6
mov esp, ebp
pop ebp
ret 4