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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5dde6d
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x65f810]
xor eax, esp
mov dword [esp + 0x300], eax
push ebx
push esi
push edi
mov eax, dword [0x65f810]
xor eax, esp
push eax
lea eax, [esp + 0x318]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebx + 0x10]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebx
cmp dword [ebx + 0xc], edi
jbe 0x45afde
call fcn.00579468
mov ecx, dword [ebx]
mov ebx, dword [ebx + 0xc]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x1c]
cmp ebx, dword [ecx + 0x10]
jbe 0x45aff9
call fcn.00579468
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
mov eax, dword [ecx]
push edi
push edx
push ebx
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.00457250
xor edi, edi
xor ecx, ecx
mov dword [esp + 0x108], 7
mov dword [esp + 0x104], edi
mov word [esp + 0xf4], cx
mov eax, dword [esp + 0x14]
lea edx, [esp + 0xf0]
push edx
push eax
mov dword [esp + 0x328], edi
call fcn.00458ce0
add esp, 8
lea ecx, [esp + 0x94]
call fcn.00459f60
lea ecx, [esp + 0x44]
mov byte [esp + 0x320], 1
call fcn.00481b70
lea ecx, [esp + 0x24]
mov byte [esp + 0x320], 2
call fcn.00481b70
lea ecx, [esp + 0x64]
mov byte [esp + 0x320], 3
call fcn.00481b70
lea ecx, [esp + 0xf0]
push ecx
lea ecx, [esp + 0x68]
mov byte [esp + 0x324], 4
call fcn.00457860
lea ecx, [esp + 0x7c]
call fcn.00481b70
push 8
lea ecx, [esp + 0x80]
mov byte [esp + 0x324], 5
call fcn.00459400
push 0x1fe
lea eax, [esp + 0x112]
xor edx, edx
push edi
push eax
mov word [esp + 0x118], dx
call fcn.00578cb0
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add esp, 0xc
add eax, edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], edi
je 0x45b334
mov dword [esp + 0x18], edi
jmp 0x45b112
xor edi, edi
fldz
fstp qword [esp + 0x3c]
cmp dword [esp + 0x20], eax
jb 0x45b123
call fcn.00579468
mov eax, dword [esi + 0xc]
add eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xa0]
call fcn.0045a2c0
mov ebx, eax
test ebx, ebx
jle 0x45b2e7
cmp edi, 0x10
jge 0x45b235
lea eax, [esp + 0x7c]
push eax
push edi
lea ecx, [esp + 0x9c]
call fcn.00459fb0
lea ecx, [esp + 0x10c]
push ecx
lea edx, [esp + 0x80]
push edx
lea eax, [esp + 0xf8]
push eax
call fcn.00457de0
add esp, 0xc
test al, al
je 0x45b22c
mov ecx, dword [esp + 0x54]
sub ecx, dword [esp + 0x50]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x45b1c3
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0xf4]
push eax
call fcn.0045adc0
add esp, 8
lea ecx, [esp + 0x10c]
push ecx
lea edx, [esp + 0x80]
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.00457f20
fst qword [esp + 0x68]
fld qword [esp + 0x48]
add esp, 0xc
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x45b22a
cmp dword [esp + 0x14], 0
fstp qword [esp + 0x3c]
jle 0x45b22c
lea ecx, [esp + 0x10c]
push ecx
lea edx, [esp + 0x80]
push edx
lea eax, [esp + 0x6c]
push eax
call fcn.00457f20
fcom qword [esp + 0x68]
add esp, 0xc
fnstsw ax
test ah, 0x41
jne 0x45b22a
fstp qword [esp + 0x3c]
jmp 0x45b22c
fstp st(0)
inc edi
cmp edi, ebx
jl 0x45b14e
fldz
fcomp qword [esp + 0x3c]
fnstsw ax
test ah, 5
jp 0x45b2e7
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp dword [esp + 0x20], ecx
jb 0x45b26a
call fcn.00579468
mov eax, dword [esi + 0xc]
fld qword [esp + 0x3c]
add eax, dword [esp + 0x18]
fstp qword [esp + 0xc4]
xor edx, edx
push 0xffffffffffffffff
push edx
push eax
lea ecx, [esp + 0xd8]
mov dword [esp + 0xf0], 7
mov dword [esp + 0xec], 0
mov word [esp + 0xdc], dx
call fcn.00439be0
lea eax, [esp + 0xc4]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x324], 6
call fcn.0045ad20
cmp dword [esp + 0xe4], 8
mov byte [esp + 0x320], 5
jb 0x45b2e7
mov ecx, dword [esp + 0xd0]
push ecx
call fcn.00506f70
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x45b305
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x110]
push 0
push eax
call fcn.00578cb0
add esp, 0xc
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x20]
add dword [esp + 0x18], 0x1c
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
mov dword [esp + 0x20], edi
cmp edi, eax
jb 0x45b110
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x30]
mov eax, 0x66666667
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
push ecx
mov ecx, dword [esp + 0x20]
call fcn.0045a680
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
mov ebx, eax
cmp esi, eax
jbe 0x45b372
call fcn.00579468
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x24]
cmp esi, eax
jbe 0x45b37f
call fcn.00579468
test edi, edi
je 0x45b389
cmp edi, dword [esp + 0x24]
je 0x45b38e
call fcn.00579468
mov ecx, ebx
sub ecx, esi
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push ebx
push esi
call fcn.0045ab20
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
add esp, 0xc
cmp eax, ebx
jbe 0x45b3c3
call fcn.00579468
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x24]
jmp 0x45b3d0
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x34]
jbe 0x45b3df
call fcn.00579468
mov eax, dword [esp + 0x24]
xor esi, esi
cmp eax, esi
je 0x45b3ed
cmp eax, edi
je 0x45b3f2
call fcn.00579468
cmp dword [esp + 0x14], ebx
jae 0x45b462
mov dword [esp + 0x60], ebx
test edi, edi
jne 0x45b456
call fcn.00579468
xor eax, eax
cmp ebx, dword [eax + 0xc]
ja 0x45b411
call fcn.00579468
lea esi, [ebx - 0x28]
test edi, edi
jne 0x45b45a
call fcn.00579468
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x45b429
call fcn.00579468
lea ecx, [esi + 8]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.00457860
test edi, edi
jne 0x45b45e
call fcn.00579468
xor eax, eax
cmp ebx, dword [eax + 0xc]
ja 0x45b44b
call fcn.00579468
mov eax, dword [esp + 0x30]
mov ebx, esi
jmp 0x45b3d0
mov eax, dword [edi]
jmp 0x45b407
mov eax, dword [edi]
jmp 0x45b41f
mov eax, dword [edi]
jmp 0x45b441
mov eax, dword [esp + 0x88]
cmp eax, esi
je 0x45b476
push eax
call fcn.00506f70
add esp, 4
mov edx, dword [esp + 0x7c]
push edx
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], esi
call fcn.00506f70
mov eax, dword [esp + 0x74]
add esp, 4
cmp eax, esi
je 0x45b4c5
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x78]
lea edx, [esp + 0x70]
push edx
push ecx
push eax
call fcn.00440040
mov edx, dword [esp + 0x80]
push edx
call fcn.00506f70
add esp, 0x14
mov eax, dword [esp + 0x64]
push eax
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
call fcn.00506f70
mov eax, dword [esp + 0x34]
add esp, 4
cmp eax, esi
je 0x45b508
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x30]
push edx
push ecx
push eax
call fcn.00459030
mov edx, dword [esp + 0x40]
push edx
call fcn.00506f70
add esp, 0x14
mov eax, dword [esp + 0x24]
push eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
call fcn.00506f70
mov eax, dword [esp + 0x54]
add esp, 4
cmp eax, esi
je 0x45b54b
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x58]
lea edx, [esp + 0x50]
push edx
push ecx
push eax
call fcn.00440040
mov edx, dword [esp + 0x60]
push edx
call fcn.00506f70
add esp, 0x14
mov eax, dword [esp + 0x44]
push eax
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
call fcn.00506f70
mov eax, dword [esp + 0xbc]
add esp, 4
cmp eax, esi
je 0x45b578
push eax
call fcn.00506f70
add esp, 4
mov ecx, dword [esp + 0xac]
push ecx
mov dword [esp + 0xbc], esi
mov dword [esp + 0xc0], esi
mov dword [esp + 0xc4], esi
call fcn.00506f70
mov eax, dword [esp + 0xa4]
add esp, 4
cmp eax, esi
je 0x45b5b1
push eax
call fcn.00506f70
add esp, 4
mov edx, dword [esp + 0x94]
push edx
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa8], esi
mov dword [esp + 0xac], esi
call fcn.00506f70
add esp, 4
cmp dword [esp + 0x108], 8
jb 0x45b5f0
mov eax, dword [esp + 0xf4]
push eax
call fcn.00506f70
add esp, 4
mov ecx, dword [esp + 0x318]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x300]
xor ecx, esp
call fcn.005792fc
mov esp, ebp
pop ebp
ret