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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x74
mov ecx, dword [ebp + 0xc]
fldz
push ebx
fstp qword [ecx + 0x20]
push esi
xor esi, esi
cmp dword [ecx + 0x10], esi
push edi
mov dword [esp + 0x60], esi
jle 0x5afb4c
mov dword [esp + 0x3c], esi
mov dword [esp + 0x64], esi
jmp 0x5af7a0
mov ebx, dword [ecx + 0x14]
add ebx, dword [esp + 0x64]
mov dword [esp + 0x58], esi
cmp dword [ebx + 0x10], esi
jle 0x5afb2b
xor eax, eax
mov dword [esp + 0x5c], eax
lea ebx, [ebx]
mov edx, dword [ebx + 0x14]
add edx, eax
cmp dword [edx + 0x18], esi
mov dword [esp + 0x7c], edx
mov dword [esp + 0x78], esi
jle 0x5afb10
lea edi, [edx + 0x1c]
mov dword [esp + 0x54], edi
lea ecx, [ecx]
mov ecx, dword [edx + 0x14]
imul ecx, dword [edx + 0x10]
test ecx, ecx
mov dword [esp + 0x74], esi
jle 0x5afaf2
mov dword [esp + 0x50], esi
mov ecx, dword [edi + 0x14]
add ecx, dword [esp + 0x50]
mov dword [esp + 0x6c], 0
mov esi, dword [ecx + 0x10]
imul esi, dword [ecx + 0x14]
test esi, esi
mov dword [esp + 0x70], ecx
jle 0x5afad1
mov dword [esp + 0x4c], 0
jmp 0x5af827
mov ecx, dword [esp + 0x70]
mov esi, dword [ecx + 0x18]
mov ecx, dword [edi + 0x10]
add esi, dword [esp + 0x4c]
test ecx, ecx
jne 0x5af847
mov eax, dword [esi]
sub eax, dword [edi]
mov ecx, dword [esi + 4]
mov dword [esp + 0x34], eax
mov eax, ecx
sub eax, dword [edi + 4]
jmp 0x5af8a2
cmp ecx, 1
jne 0x5af86c
mov edx, dword [ebx + 0x14]
lea ecx, [eax + edx - 0x7c]
mov eax, dword [ecx + 8]
sub eax, dword [edi]
mov edx, dword [esi]
sub eax, dword [ecx]
mov ecx, dword [esi + 4]
add eax, edx
mov dword [esp + 0x34], eax
mov eax, ecx
sub eax, dword [edi + 4]
jmp 0x5af8a2
cmp ecx, 2
jne 0x5af87e
mov ecx, dword [ebx + 0x14]
lea edx, [eax + ecx - 0x7c]
mov eax, dword [esi]
sub eax, dword [edi]
jmp 0x5af890
mov edx, dword [ebx + 0x14]
mov ecx, dword [esi]
lea edx, [eax + edx - 0x7c]
mov eax, dword [edx + 8]
sub eax, dword [edx]
sub eax, dword [edi]
add eax, ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x34], eax
mov eax, dword [edx + 0xc]
sub eax, dword [edx + 4]
sub eax, dword [edi + 4]
add eax, ecx
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 0x750]
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + edx + 0x14]
cmp eax, 1
jne 0x5af951
mov eax, dword [esi + 0xc]
xor edx, edx
sub eax, ecx
test eax, eax
mov dword [esp + 0x38], edx
jle 0x5afa3e
mov eax, dword [esi + 8]
mov ecx, dword [ebp + 8]
sub eax, dword [esi]
add ecx, 0x600c
mov dword [esp + 0x40], ecx
xor ecx, ecx
test eax, eax
jle 0x5af933
mov eax, dword [esp + 0x30]
add edx, eax
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x48], edx
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
mov edx, dword [ebx + 0x18]
imul eax, dword [esp + 0x44]
add eax, ecx
add eax, dword [esp + 0x34]
add ecx, 1
mov edx, dword [edx + eax*4]
mov eax, dword [esp + 0x48]
shl edx, 6
mov dword [eax], edx
add eax, 4
mov dword [esp + 0x48], eax
mov eax, dword [esi + 8]
sub eax, dword [esi]
cmp ecx, eax
jl 0x5af8fd
mov edx, dword [esp + 0x38]
mov ecx, dword [esi + 0xc]
sub ecx, dword [esi + 4]
add dword [esp + 0x40], 0x1000
add edx, 1
cmp edx, ecx
mov dword [esp + 0x38], edx
jl 0x5af8e5
jmp 0x5afa3e
test eax, eax
jne 0x5afa3e
mov eax, dword [esi + 0xc]
xor edx, edx
sub eax, ecx
test eax, eax
mov dword [esp + 0x38], edx
jle 0x5afa3e
mov eax, dword [esi + 8]
mov ecx, dword [ebp + 8]
sub eax, dword [esi]
add ecx, 0x600c
mov dword [esp + 0x48], ecx
test eax, eax
mov dword [esp + 0x40], 0
jle 0x5afa21
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x48]
add edx, eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x68], ecx
fld dword [edi + 0x1c]
sub esp, 8
fmul qword [0x649918]
fstp qword [esp]
call fcn.005ba270
add esp, 8
call fcn.0044eb60
mov ecx, eax
mov eax, 0x4000000
cdq
idiv ecx
mov edx, dword [ebx + 8]
sub edx, dword [ebx]
mov ecx, dword [ebx + 0x18]
imul edx, dword [esp + 0x44]
add edx, dword [esp + 0x40]
add edx, dword [esp + 0x34]
imul dword [ecx + edx*4]
mov cl, 0xc
call fcn.005bb2b0
mov cl, 1
mov edi, eax
call fcn.005bb2b0
mov ecx, eax
mov eax, dword [esp + 0x68]
and edi, 1
add ecx, edi
mov edi, dword [esp + 0x54]
sar ecx, 7
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
add eax, 4
mov dword [esp + 0x68], eax
mov eax, dword [esi + 8]
sub eax, dword [esi]
add ecx, 1
cmp ecx, eax
mov dword [esp + 0x40], ecx
jl 0x5af9a0
mov edx, dword [esp + 0x38]
mov ecx, dword [esi + 0xc]
sub ecx, dword [esi + 4]
add dword [esp + 0x48], 0x1000
add edx, 1
cmp edx, ecx
mov dword [esp + 0x38], edx
jl 0x5af97e
mov ecx, dword [edi + 0x10]
cmp ecx, 2
jne 0x5afa4d
mov ecx, 1
jmp 0x5afa57
cmp ecx, 1
jne 0x5afa57
mov ecx, 2
mov edx, dword [ebp + 0x10]
fld dword [edi + 0x1c]
mov eax, dword [edx + 0x750]
mov edx, dword [esp + 0x3c]
add eax, edx
mov edx, dword [ebp + 0xc]
push edx
mov edx, dword [edx + 0x10]
push edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
push edx
mov edx, dword [ebx + 0x10]
sub edx, dword [esp + 0x64]
sub esp, 8
fstp qword [esp]
push eax
mov eax, dword [esp + 0x78]
sub edx, 1
push edx
push eax
push ecx
mov ecx, dword [ebp + 8]
push esi
push ecx
call fcn.005aeaf0
mov ecx, dword [esp + 0x9c]
mov edx, dword [ecx + 0x10]
imul edx, dword [ecx + 0x14]
mov eax, dword [esp + 0x98]
add dword [esp + 0x78], 0x3c58
add eax, 1
add esp, 0x2c
mov dword [esp + 0x6c], eax
cmp eax, edx
mov eax, dword [esp + 0x5c]
jl 0x5af823
mov edx, dword [esp + 0x7c]
mov esi, dword [edx + 0x14]
imul esi, dword [edx + 0x10]
mov ecx, dword [esp + 0x74]
add dword [esp + 0x50], 0x24
add ecx, 1
cmp ecx, esi
mov dword [esp + 0x74], ecx
jl 0x5af7f7
xor esi, esi
mov ecx, dword [esp + 0x78]
add ecx, 1
add edi, 0x20
cmp ecx, dword [edx + 0x18]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x54], edi
jl 0x5af7e0
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x58]
add edx, 1
add eax, 0x7c
cmp edx, dword [ebx + 0x10]
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], eax
jl 0x5af7c0
mov eax, dword [esp + 0x60]
add dword [esp + 0x64], 0x20
add dword [esp + 0x3c], 0x434
add eax, 1
cmp eax, dword [ecx + 0x10]
mov dword [esp + 0x60], eax
jl 0x5af7a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret