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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x5e8c1f
mov eax, dword fs:[0]
push eax
sub esp, 0x1e8
mov eax, dword [0x62fda0]
xor eax, esp
mov dword [esp + 0x1b0], eax
push ebx
push esi
push edi
mov eax, dword [0x62fda0]
xor eax, esp
push eax
lea eax, [esp + 0x1f8]
mov dword fs:[0], eax
fldz
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
fst qword [esp + 0xbc]
mov ebx, dword [ebp + 0x14]
fst qword [esp + 0xc4]
mov esi, ecx
fst qword [esp + 0xcc]
mov ecx, dword [ebp + 0x10]
fst qword [esp + 0xd4]
mov dword [esp + 0x38], ecx
fst qword [esp + 0xdc]
mov ecx, edi
fstp qword [esp + 0xe4]
mov dword [esp + 0x44], eax
call fcn.004f10c0
fstp qword [esp + 0x84]
test word [edi + 0x20], 0xfff9
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x18]
mov dword [esp + 0x1c], edx
fild dword [esp + 0x1c]
mov edx, dword [edi + 0x1c]
mov dword [esp + 0x1c], eax
fst qword [esp + 0x114]
fild dword [esp + 0x1c]
mov dword [esp + 0x1c], ecx
fstp qword [esp + 0x11c]
fild dword [esp + 0x1c]
mov dword [esp + 0x1c], edx
fstp qword [esp + 0x124]
fild dword [esp + 0x1c]
fst qword [esp + 0x54]
fdivp st(1)
jne 0x5ade77
fst qword [esp + 0x1c]
call fcn.005bd8aa
fstp qword [esp + 0x24]
fld qword [esp + 0x1c]
call fcn.005bd8a4
fld qword [esp + 0x24]
fstp qword [esp + 0x8c]
fstp qword [esp + 0x94]
fld qword [esp + 0x11c]
fdiv qword [esp + 0x54]
fst qword [esp + 0x1c]
call fcn.005bd8aa
fstp qword [esp + 0x24]
fld qword [esp + 0x1c]
call fcn.005bd8a4
fld qword [esp + 0x24]
fstp qword [esp + 0x9c]
fstp qword [esp + 0xa4]
fld qword [esp + 0x124]
fdiv qword [esp + 0x54]
jmp 0x5adee3
fchs
fst qword [esp + 0x1c]
call fcn.005bd8aa
fstp qword [esp + 0x24]
fld qword [esp + 0x1c]
call fcn.005bd8a4
fld qword [esp + 0x24]
fstp qword [esp + 0x8c]
fstp qword [esp + 0x94]
fld qword [esp + 0x11c]
fdiv qword [esp + 0x54]
fchs
fst qword [esp + 0x1c]
call fcn.005bd8aa
fstp qword [esp + 0x24]
fld qword [esp + 0x1c]
call fcn.005bd8a4
fld qword [esp + 0x24]
fstp qword [esp + 0x9c]
fstp qword [esp + 0xa4]
fld qword [esp + 0x124]
fdiv qword [esp + 0x54]
fchs
fst qword [esp + 0x1c]
call fcn.005bd8aa
fstp qword [esp + 0x24]
fld qword [esp + 0x1c]
call fcn.005bd8a4
fld qword [esp + 0x24]
movzx eax, byte [ebx + 8]
fstp qword [esp + 0xac]
and eax, 0xf
sub eax, 1
fstp qword [esp + 0xb4]
je 0x5ae03d
sub eax, 1
je 0x5adfed
sub eax, 1
jne 0x5ae045
mov ebx, dword [esp + 0xa8]
fld qword [esp + 0x11c]
mov eax, dword [esp + 0x9c]
fst qword [esp + 0x12c]
fld qword [esp + 0x124]
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0xa4]
fstp qword [esp + 0x134]
mov dword [esp + 0xc8], ebx
mov ebx, dword [esp + 0xac]
fstp qword [esp + 0x13c]
mov dword [esp + 0xcc], ebx
mov ebx, dword [esp + 0xb0]
mov dword [esp + 0xd0], ebx
mov ebx, dword [esp + 0xb4]
mov dword [esp + 0xbc], eax
mov dword [esp + 0xd4], ebx
mov ebx, dword [esp + 0xb8]
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc4], edx
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xe0], ecx
mov dword [esp + 0xe4], edx
mov dword [esp + 0xe8], eax
mov dword [esp + 0x50], 4
jmp 0x5ae045
mov ecx, dword [esp + 0x9c]
fld qword [esp + 0x11c]
mov edx, dword [esp + 0xa0]
fstp qword [esp + 0x12c]
mov eax, dword [esp + 0xa4]
mov dword [esp + 0xbc], ecx
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0xc0], edx
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], ecx
mov dword [esp + 0x50], 2
jmp 0x5ae045
mov dword [esp + 0x50], 0
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
lea ecx, [esp + 0x170]
fstp qword [esp + 0x24]
call fcn.00514e60
mov edx, dword [edi]
mov eax, dword [edx + 0x5c]
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x200], ebx
call eax
cmp eax, 0x11
jne 0x5ae084
cmp dword [edi + 0x24], ebx
je 0x5ae084
mov ebx, edi
fld qword [esp + 0x24]
mov ecx, dword [esp + 0x44]
fcom qword [ecx]
fnstsw ax
test ah, 0x41
jp 0x5ae159
fsubr qword [ecx]
fstp qword [ecx]
mov ecx, dword [esp + 0x38]
test byte [ecx], 1
jne 0x5ae94f
test ebx, ebx
je 0x5ae123
mov eax, dword [ebx + 0x28]
mov ebx, dword [ebx + 0x24]
push eax
push ebx
push edi
lea ecx, [esp + 0x150]
call fcn.00514e80
push eax
lea ecx, [esp + 0x174]
mov byte [esp + 0x204], 1
call fcn.005193c0
lea ecx, [esp + 0x144]
mov byte [esp + 0x200], 0
call fcn.00514eb0
mov edx, dword [0x630c6c]
push edx
lea ecx, [esp + 0x174]
call fcn.0051a8a0
push 0
mov dword [0x630c7c], eax
mov edx, dword [esi + 0x34]
push eax
mov eax, dword [0x630c6c]
push eax
mov ecx, esi
call edx
mov dword [0x630c7c], 0
jmp 0x5ae94f
mov ecx, dword [0x630c6c]
push edi
call fcn.00568bc0
mov eax, dword [0x630c6c]
push 0
push 3
push eax
mov ecx, esi
mov dword [0x630c7c], 3
call fcn.005659d0
mov dword [0x630c7c], 0
jmp 0x5ae94f
fsub qword [ecx]
lea ecx, [esp + 0xec]
push ecx
mov ecx, edi
fstp qword [esp + 0x28]
fild dword [edi + 0x14]
fld qword [0x5fa9b8]
fmul st(1), st(0)
fxch st(1)
fchs
fst qword [esp + 0x60]
fild dword [edi + 0x18]
fmulp st(2)
fxch st(1)
fchs
fst qword [esp + 0x68]
fstp qword [esp + 0x80]
fstp qword [esp + 0x78]
call fcn.004efe90
lea ecx, [esp + 0x30]
call fcn.004fd440
lea ecx, [esp + 0x3c]
call fcn.004fd440
xor eax, eax
lea ecx, [esp + 0x19c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
call fcn.004ee1e0
test word [edi + 0x20], 0xfff9
mov byte [esp + 0x200], 2
jne 0x5ae1dd
mov edx, dword [esp + 0x44]
fld qword [edx]
fdiv qword [esp + 0x54]
jmp 0x5ae1e9
mov eax, dword [esp + 0x44]
fld qword [eax]
fdiv qword [esp + 0x54]
fchs
fst qword [esp + 0x1c]
call fcn.005bd8aa
fstp qword [esp + 0x6c]
fld qword [esp + 0x1c]
call fcn.005bd8a4
fld qword [esp + 0x6c]
fld st(0)
mov ecx, dword [esp + 0x38]
test byte [ecx], 1
fld qword [esp + 0x5c]
fmul st(1), st(0)
fld qword [esp + 0x64]
fld st(0)
fmul st(5)
fsubp st(3)
fmulp st(3)
fmulp st(3)
fxch st(1)
faddp st(2)
fst qword [esp + 0xfc]
fstp qword [esp + 0x5c]
fst qword [esp + 0x104]
fstp qword [esp + 0x64]
fld qword [0x5ecc78]
jne 0x5ae409
fld qword [esp + 0x74]
fld st(0)
fld qword [esp + 0x54]
fmul st(1), st(0)
fxch st(1)
fadd qword [esp + 0xec]
fldz
fcom st(1)
fnstsw ax
fxch st(1)
test ah, 0x41
jp 0x5ae26c
fadd st(4)
jmp 0x5ae26e
fsub st(4)
call fcn.005bd3f0
fld qword [esp + 0x7c]
fld st(0)
mov dword [esp + 0x48], eax
fmulp st(3)
fxch st(2)
fadd qword [esp + 0xf4]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 1
jne 0x5ae297
faddp st(3)
jmp 0x5ae299
fsubrp st(3)
fxch st(2)
call fcn.005bd3f0
fxch st(1)
sub esp, 0x10
fstp qword [esp + 8]
lea ecx, [esp + 0x7c]
mov dword [esp + 0x5c], eax
fstp qword [esp]
call fcn.004ede50
push eax
lea ecx, [esp + 0x34]
call fcn.00505d10
fld qword [esp + 0x64]
sub esp, 0x10
fstp qword [esp + 8]
lea ecx, [esp + 0x7c]
fld qword [esp + 0x6c]
fstp qword [esp]
call fcn.004ede50
push eax
lea ecx, [esp + 0x40]
call fcn.00505d10
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
cmp eax, dword [esp + 0x3c]
jne 0x5ae300
cmp ecx, dword [esp + 0x40]
je 0x5ae40b
mov dx, word [edi + 0x20]
fld qword [esp + 0x84]
neg eax
sub esp, 8
mov dword [esp + 0x38], eax
fstp qword [esp]
and dx, 0xfff9
neg ecx
movzx eax, dx
push eax
mov dword [esp + 0x40], ecx
mov ecx, dword [edi + 0x1c]
push ecx
lea eax, [esp + 0x4c]
push eax
mov eax, dword [0x630c6c]
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x60]
push edx
push eax
mov ecx, esi
call fcn.00564ed0
test eax, eax
je 0x5ae3fd
test ebx, ebx
je 0x5ae3e2
lea ecx, [esp + 0x19c]
push ecx
mov ecx, dword [0x630c6c]
call fcn.00568da0
mov eax, dword [ebx + 0x28]
mov ecx, dword [ebx + 0x24]
push eax
push ecx
lea edx, [esp + 0x1a4]
push edx
lea ecx, [esp + 0x150]
call fcn.00514e80
push eax
lea ecx, [esp + 0x174]
mov byte [esp + 0x204], 3
call fcn.005193c0
lea ecx, [esp + 0x144]
mov byte [esp + 0x200], 2
call fcn.00514eb0
push 0x630c6c
lea ecx, [esp + 0x174]
call fcn.005adbe0
add esp, 4
push 0
mov dword [0x630c7c], eax
mov edx, dword [esi + 0x34]
push eax
mov eax, dword [0x630c6c]
push eax
mov ecx, esi
call edx
mov dword [0x630c7c], 0
jmp 0x5ae40b
mov eax, dword [0x630c6c]
push 0
push 3
push eax
mov ecx, esi
mov dword [0x630c7c], 3
call fcn.005659d0
mov dword [0x630c7c], 0
jmp 0x5ae40b
fstp st(0)
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
cmp eax, dword [esp + 0x50]
jle 0x5ae41b
xor eax, eax
jmp 0x5ae41c
inc eax
mov dword [ecx], eax
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x78]
call fcn.005befe0
fld qword [esp + 0x24]
mov edx, dword [esp + 0x38]
mov eax, dword [edx]
fsub qword [esp + eax*8 + 0x114]
mov dword [esp + 0x1c], 1
fst qword [esp + 0x24]
fldz
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 1
je 0x5ae6d3
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
mov edx, eax
shl edx, 4
fld qword [esp + edx + 0x8c]
lea ecx, [esp + edx + 0x8c]
fld qword [ecx + 8]
fld st(1)
fld qword [esp + 0xfc]
fmul st(1), st(0)
fld qword [esp + 0x104]
fld st(0)
fmul st(4)
fsubp st(3)
fmulp st(4)
fmulp st(2)
fxch st(2)
faddp st(1)
fxch st(1)
fst qword [esp + 0xfc]
fstp qword [esp + 0x5c]
fst qword [esp + 0x104]
fstp qword [esp + 0x64]
test al, 1
jne 0x5ae68a
fld qword [esp + 0x74]
fld st(0)
fld qword [esp + 0x54]
fmul st(1), st(0)
fxch st(1)
fadd qword [esp + 0xec]
fcom st(3)
fnstsw ax
fld qword [0x5ecc78]
test ah, 1
jne 0x5ae4e6
fadd st(1), st(0)
jmp 0x5ae4e8
fsub st(1), st(0)
fxch st(1)
call fcn.005bd3f0
fld qword [esp + 0x7c]
fld st(0)
mov dword [esp + 0x48], eax
fmulp st(3)
fxch st(2)
fadd qword [esp + 0xf4]
fcom st(4)
fnstsw ax
fstp st(4)
test ah, 1
jne 0x5ae513
faddp st(3)
jmp 0x5ae515
fsubp st(3)
fxch st(2)
call fcn.005bd3f0
fxch st(1)
sub esp, 0x10
fstp qword [esp + 8]
lea ecx, [esp + 0x7c]
mov dword [esp + 0x5c], eax
fstp qword [esp]
call fcn.004ede50
push eax
lea ecx, [esp + 0x34]
call fcn.00505d10
fld qword [esp + 0x64]
sub esp, 0x10
fstp qword [esp + 8]
lea ecx, [esp + 0x11c]
fld qword [esp + 0x6c]
fstp qword [esp]
call fcn.004ede50
push eax
lea ecx, [esp + 0x40]
call fcn.00505d10
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
cmp eax, dword [esp + 0x3c]
jne 0x5ae57f
cmp ecx, dword [esp + 0x40]
je 0x5ae68c
fld qword [esp + 0x84]
neg eax
mov dword [esp + 0x30], eax
mov ax, word [edi + 0x20]
sub esp, 8
neg ecx
fstp qword [esp]
and ax, 0xfff9
movzx eax, ax
push eax
mov dword [esp + 0x40], ecx
mov ecx, dword [edi + 0x1c]
push ecx
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [0x630c6c]
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x60]
push eax
push ecx
mov ecx, esi
call fcn.00564ed0
test eax, eax
je 0x5ae67e
test ebx, ebx
je 0x5ae663
mov ecx, dword [0x630c6c]
lea edx, [esp + 0x19c]
push edx
call fcn.00568da0
mov eax, dword [ebx + 0x28]
mov ecx, dword [ebx + 0x24]
push eax
push ecx
lea eax, [esp + 0x1a4]
push eax
lea ecx, [esp + 0x150]
call fcn.00514e80
push eax
lea ecx, [esp + 0x174]
mov byte [esp + 0x204], 4
call fcn.005193c0
lea ecx, [esp + 0x144]
mov byte [esp + 0x200], 2
call fcn.00514eb0
push 0x630c6c
lea ecx, [esp + 0x174]
call fcn.005adbe0
mov ecx, dword [0x630c6c]
add esp, 4
push 0
push eax
mov dword [0x630c7c], eax
mov edx, dword [esi + 0x34]
push ecx
mov ecx, esi
call edx
mov dword [0x630c7c], 0
jmp 0x5ae68c
mov eax, dword [0x630c6c]
push 0
push 3
push eax
mov ecx, esi
mov dword [0x630c7c], 3
call fcn.005659d0
mov dword [0x630c7c], 0
jmp 0x5ae68c
fstp st(0)
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
cmp eax, dword [esp + 0x50]
jle 0x5ae69c
xor eax, eax
jmp 0x5ae69d
inc eax
mov dword [ecx], eax
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x78]
call fcn.005befe0
fld qword [esp + 0x24]
mov edx, dword [esp + 0x38]
mov eax, dword [edx]
fsub qword [esp + eax*8 + 0x114]
fst qword [esp + 0x24]
fldz
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 1
jne 0x5ae462
mov ecx, dword [esp + 0x38]
test byte [ecx], 1
jne 0x5ae92d
fld qword [esp + 0x74]
fld st(0)
fld qword [esp + 0x54]
fmul st(1), st(0)
fxch st(1)
fadd qword [esp + 0xec]
fcom st(3)
fnstsw ax
fld qword [0x5ecc78]
test ah, 1
jne 0x5ae708
fadd st(1), st(0)
jmp 0x5ae70a
fsub st(1), st(0)
fxch st(1)
call fcn.005bd3f0
fld qword [esp + 0x7c]
fld st(0)
mov dword [esp + 0x48], eax
fmulp st(3)
fxch st(2)
fadd qword [esp + 0xf4]
fcom st(4)
fnstsw ax
fstp st(4)
test ah, 1
jne 0x5ae735
faddp st(3)
jmp 0x5ae737
fsubp st(3)
fxch st(2)
call fcn.005bd3f0
fxch st(1)
sub esp, 0x10
fstp qword [esp + 8]
lea ecx, [esp + 0x11c]
mov dword [esp + 0x5c], eax
fstp qword [esp]
call fcn.004ede50
push eax
lea ecx, [esp + 0x34]
call fcn.00505d10
mov ecx, edi
call fcn.004eeb30
sub esp, 8
mov ecx, edi
fstp qword [esp]
call fcn.004eeb00
sub esp, 8
lea ecx, [esp + 0x11c]
fstp qword [esp]
call fcn.004ede50
push eax
lea ecx, [esp + 0x40]
call fcn.00505d10
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
cmp eax, dword [esp + 0x3c]
jne 0x5ae7ac
cmp ecx, dword [esp + 0x40]
je 0x5ae8b8
mov dx, word [edi + 0x20]
fld qword [esp + 0x84]
mov edi, dword [edi + 0x1c]
neg eax
sub esp, 8
mov dword [esp + 0x38], eax
fstp qword [esp]
and dx, 0xfff9
movzx eax, dx
push eax
neg ecx
push edi
mov dword [esp + 0x44], ecx
lea eax, [esp + 0x4c]
push eax
mov eax, dword [0x630c6c]
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x60]
push edx
push eax
mov ecx, esi
call fcn.00564ed0
test eax, eax
je 0x5ae8ac
test ebx, ebx
je 0x5ae891
lea ecx, [esp + 0x19c]
push ecx
mov ecx, dword [0x630c6c]
call fcn.00568da0
mov eax, dword [ebx + 0x28]
mov ebx, dword [ebx + 0x24]
push eax
push ebx
lea edx, [esp + 0x1a4]
push edx
lea ecx, [esp + 0x150]
call fcn.00514e80
push eax
lea ecx, [esp + 0x174]
mov byte [esp + 0x204], 5
call fcn.005193c0
lea ecx, [esp + 0x144]
mov byte [esp + 0x200], 2
call fcn.00514eb0
push 0x630c6c
lea ecx, [esp + 0x174]
call fcn.005adbe0
add esp, 4
push 0
mov dword [0x630c7c], eax
mov edx, dword [esi + 0x34]
push eax
mov eax, dword [0x630c6c]
push eax
mov ecx, esi
call edx
mov dword [0x630c7c], 0
jmp 0x5ae92f
mov eax, dword [0x630c6c]
push 0
push 3
push eax
mov ecx, esi
mov dword [0x630c7c], 3
call fcn.005659d0
mov dword [0x630c7c], 0
jmp 0x5ae92f
fldz
mov ecx, dword [esp + 0x44]
fcomp qword [ecx]
fnstsw ax
test ah, 0x44
jp 0x5ae92f
cmp dword [esp + 0x1c], 1
jne 0x5ae92f
mov ecx, edi
call fcn.004ee1c0
cmp ax, 2
jne 0x5ae92f
test ebx, ebx
je 0x5ae904
mov edx, dword [0x630c6c]
push edx
mov ecx, ebx
call fcn.0051a8a0
push 0
mov dword [0x630c7c], eax
mov edx, dword [esi + 0x34]
push eax
mov eax, dword [0x630c6c]
push eax
mov ecx, esi
call edx
jmp 0x5ae92f
mov ecx, dword [0x630c6c]
push edi
call fcn.00568bc0
mov eax, dword [0x630c6c]
push 0
push 3
push eax
mov ecx, esi
mov dword [0x630c7c], 3
call fcn.005659d0
jmp 0x5ae92f
fstp st(0)
fld qword [esp + 0x24]
mov ecx, dword [esp + 0x44]
fchs
mov byte [esp + 0x200], 0
fstp qword [ecx]
lea ecx, [esp + 0x19c]
call fcn.004eeaf0
lea ecx, [esp + 0x170]
mov dword [esp + 0x200], 0xffffffff
call fcn.00514eb0
mov ecx, dword [esp + 0x1f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b0]
xor ecx, esp
call fcn.005bd2c6
mov esp, ebp
pop ebp
ret 0x10