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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x74
mov eax, dword [ebp + 0xc]
push ebx
xor edx, edx
cmp dword [eax + 0x10], edx
push esi
push edi
mov dword [esp + 0x6c], edx
jle 0x5b0056
mov dword [esp + 0x38], edx
mov dword [esp + 0x58], edx
jmp 0x5afb90
mov ebx, dword [eax + 0x14]
add ebx, dword [esp + 0x58]
mov dword [esp + 0x68], edx
cmp dword [ebx + 0x10], edx
mov dword [esp + 0x30], ebx
jle 0x5b0035
mov dword [esp + 0x34], edx
lea esp, [esp]
mov ecx, dword [ebx + 0x14]
add ecx, dword [esp + 0x34]
mov dword [esp + 0x64], edx
cmp dword [ecx + 0x18], edx
mov dword [esp + 0x74], ecx
jle 0x5b0019
lea edi, [ecx + 0x1c]
mov dword [esp + 0x24], edi
nop
mov eax, dword [ecx + 0x10]
imul eax, dword [ecx + 0x14]
test eax, eax
mov dword [esp + 0x60], edx
jle 0x5afffe
mov dword [esp + 0x54], edx
jmp 0x5afbf0
mov eax, dword [edi + 0x14]
add eax, dword [esp + 0x54]
mov dword [esp + 0x5c], edx
mov esi, dword [eax + 0x10]
imul esi, dword [eax + 0x14]
test esi, esi
mov dword [esp + 0x4c], eax
jle 0x5affdf
mov dword [esp + 0x50], edx
mov esi, dword [eax + 0x18]
mov ecx, dword [edi + 0x10]
add esi, dword [esp + 0x50]
cmp ecx, 2
jne 0x5afc28
mov ecx, 1
jmp 0x5afc32
cmp ecx, 1
jne 0x5afc32
mov ecx, 2
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x750]
mov edx, dword [esp + 0x38]
add eax, edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x328]
push edx
push eax
push ecx
mov ecx, dword [ebp + 8]
push esi
push ecx
call fcn.005aef20
mov eax, dword [edi + 0x10]
add esp, 0x14
test eax, eax
jne 0x5afc75
mov eax, dword [esi]
mov ebx, dword [esp + 0x24]
mov edx, dword [esi + 4]
mov edi, eax
sub edi, dword [ebx]
mov ecx, edx
sub ecx, dword [ebx + 4]
jmp 0x5afce8
cmp eax, 1
jne 0x5afc9f
mov edx, dword [ebx + 0x14]
mov eax, dword [esp + 0x34]
mov edi, dword [edx + eax - 0x74]
mov ebx, dword [esp + 0x24]
sub edi, dword [ebx]
lea ecx, [edx + eax - 0x7c]
sub edi, dword [ecx]
mov edx, dword [esi + 4]
mov eax, dword [esi]
mov ecx, edx
add edi, eax
sub ecx, dword [ebx + 4]
jmp 0x5afce8
cmp eax, 2
jne 0x5afcbb
mov ecx, dword [ebx + 0x14]
mov edx, dword [esp + 0x34]
mov eax, dword [esi]
lea ebx, [ecx + edx - 0x7c]
mov ecx, dword [esp + 0x24]
mov edi, eax
sub edi, dword [ecx]
jmp 0x5afcd6
mov eax, dword [esp + 0x34]
mov edx, dword [ebx + 0x14]
mov edi, dword [edx + eax - 0x74]
mov ecx, dword [esp + 0x24]
sub edi, dword [ecx]
lea ebx, [edx + eax - 0x7c]
sub edi, dword [ebx]
mov eax, dword [esi]
add edi, eax
mov ecx, dword [ebx + 0xc]
sub ecx, dword [ebx + 4]
mov ebx, dword [esp + 0x24]
sub ecx, dword [ebx + 4]
mov edx, dword [esi + 4]
add ecx, edx
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx + 0x750]
mov ecx, dword [ebx + ecx + 0x328]
test ecx, ecx
je 0x5afdbc
mov ebx, 1
shl ebx, cl
mov ecx, dword [esi + 0xc]
sub ecx, edx
test ecx, ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x28], 0
jle 0x5afdbc
mov edx, dword [ebp + 8]
add edx, 0x600c
mov dword [esp + 0x40], edx
mov ecx, dword [esi + 8]
sub ecx, eax
test ecx, ecx
mov dword [esp + 0x2c], 0
jle 0x5afd9b
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x48], ecx
mov edx, dword [ecx]
test edx, edx
mov eax, edx
jge 0x5afd58
neg eax
cmp eax, ebx
jl 0x5afd82
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx + 0x750]
mov ebx, dword [esp + 0x38]
mov ecx, dword [ebx + ecx + 0x328]
sar eax, cl
test edx, edx
jge 0x5afd78
neg eax
mov ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
mov dword [ecx], eax
mov eax, dword [esi]
mov edx, dword [esi + 8]
add dword [esp + 0x2c], 1
add ecx, 4
sub edx, eax
cmp dword [esp + 0x2c], edx
mov dword [esp + 0x48], ecx
jl 0x5afd4e
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 0xc]
sub edx, dword [esi + 4]
add dword [esp + 0x40], 0x1000
add ecx, 1
cmp ecx, edx
mov dword [esp + 0x28], ecx
jl 0x5afd35
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x750]
mov edx, dword [esp + 0x38]
cmp dword [edx + ecx + 0x14], 1
jne 0x5afe70
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
xor edx, edx
test eax, eax
mov dword [esp + 0x28], edx
jle 0x5affab
mov eax, dword [esi + 8]
mov ecx, dword [ebp + 8]
sub eax, dword [esi]
mov ebx, dword [esp + 0x30]
add ecx, 0x600c
mov dword [esp + 0x44], ecx
xor ecx, ecx
test eax, eax
jle 0x5afe52
mov eax, dword [esp + 0x3c]
add edx, eax
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
cdq
sub eax, edx
mov edx, dword [ebx + 8]
sub edx, dword [ebx]
mov ebx, dword [esp + 0x30]
imul edx, dword [esp + 0x40]
mov ebx, dword [ebx + 0x18]
add dword [esp + 0x2c], 4
add edx, ecx
sar eax, 1
add edx, edi
mov dword [ebx + edx*4], eax
mov eax, dword [esi + 8]
sub eax, dword [esi]
mov ebx, dword [esp + 0x30]
add ecx, 1
cmp ecx, eax
jl 0x5afe16
mov edx, dword [esp + 0x28]
mov ecx, dword [esi + 0xc]
sub ecx, dword [esi + 4]
add dword [esp + 0x44], 0x1000
add edx, 1
cmp edx, ecx
mov dword [esp + 0x28], edx
jl 0x5afdfe
jmp 0x5affaf
mov edx, dword [esi + 0xc]
sub edx, dword [esi + 4]
xor ecx, ecx
test edx, edx
mov dword [esp + 0x28], ecx
jle 0x5affab
mov eax, dword [ebp + 8]
mov ebx, dword [esp + 0x30]
add eax, 0x600c
mov dword [esp + 0x48], eax
mov edx, dword [esi + 8]
sub edx, dword [esi]
xor eax, eax
test edx, edx
mov dword [esp + 0x2c], eax
jle 0x5aff8c
mov edx, dword [esp + 0x3c]
add ecx, edx
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x44], ecx
lea esp, [esp]
mov edx, dword [esp + 0x44]
mov ecx, dword [edx]
test ecx, 0xfffffffe
mov edx, dword [esp + 0x24]
mov dword [esp + 0x70], ecx
fild dword [esp + 0x70]
fmul dword [edx + 0x1c]
fmul qword [0x649970]
fst qword [esp + 0x78]
jne 0x5aff03
mov ecx, dword [ebx + 8]
fstp st(0)
sub ecx, dword [ebx]
mov edx, dword [ebx + 0x18]
imul ecx, dword [esp + 0x40]
add ecx, eax
add ecx, edi
mov dword [edx + ecx*4], 0
jmp 0x5aff6f
fadd st(0), st(0)
sub esp, 8
fabs
fstp qword [esp]
call fcn.005ba270
call fcn.0044eb60
and eax, 0x80000001
jns 0x5aff23
dec eax
or eax, 0xfffffffe
inc eax
fld qword [esp + 0x80]
mov dword [esp + 0x78], eax
fabs
fstp qword [esp]
call fcn.005ba270
add esp, 8
call fcn.0044eb60
fldz
fcomp qword [esp + 0x78]
mov ecx, dword [esp + 0x70]
add ecx, eax
fnstsw ax
test ah, 0x41
jne 0x5aff55
neg ecx
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
mov edx, dword [ebx + 0x18]
imul eax, dword [esp + 0x40]
add eax, dword [esp + 0x2c]
add eax, edi
mov dword [edx + eax*4], ecx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 8]
sub ecx, dword [esi]
add dword [esp + 0x44], 4
add eax, 1
cmp eax, ecx
mov dword [esp + 0x2c], eax
jl 0x5afec0
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 0xc]
sub edx, dword [esi + 4]
add dword [esp + 0x48], 0x1000
add ecx, 1
cmp ecx, edx
mov dword [esp + 0x28], ecx
jl 0x5afe94
jmp 0x5affaf
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x4c]
mov edx, dword [eax + 0x10]
imul edx, dword [eax + 0x14]
mov ecx, dword [esp + 0x5c]
add dword [esp + 0x50], 0x3c58
mov edi, dword [esp + 0x24]
add ecx, 1
cmp ecx, edx
mov dword [esp + 0x5c], ecx
jl 0x5afc12
mov ecx, dword [esp + 0x74]
xor edx, edx
mov esi, dword [ecx + 0x10]
imul esi, dword [ecx + 0x14]
mov eax, dword [esp + 0x60]
add dword [esp + 0x54], 0x24
add eax, 1
cmp eax, esi
mov dword [esp + 0x60], eax
jl 0x5afbf0
mov eax, dword [esp + 0x64]
add eax, 1
add edi, 0x20
cmp eax, dword [ecx + 0x18]
mov dword [esp + 0x64], eax
mov dword [esp + 0x24], edi
jl 0x5afbd0
mov eax, dword [esp + 0x68]
add dword [esp + 0x34], 0x7c
add eax, 1
cmp eax, dword [ebx + 0x10]
mov dword [esp + 0x68], eax
jl 0x5afbb0
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x6c]
add dword [esp + 0x58], 0x20
add dword [esp + 0x38], 0x434
add ecx, 1
cmp ecx, dword [eax + 0x10]
mov dword [esp + 0x6c], ecx
jl 0x5afb90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret