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

Disassembly:
sub esp, 0x68
push ebx
push ebp
mov ebp, dword [esp + 0x7c]
push esi
mov esi, dword [esp + 0x78]
mov ebx, dword [esp + 0x7c]
xor eax, eax
push edi
cmp dword [esi + 0x1c], 6
sete al
cmp ebp, 0x3ff8
mov dword [esp + 0x24], eax
jl 0x5b3673
mov eax, dword [ebx + 0xc]
cdq
idiv dword [ebx + 8]
cmp eax, 0xf
jg 0x5b3673
test byte [esi + 4], 1
je 0x5b30fd
call fcn.005aa8f0
fsubr qword [esi + 0x68]
fstp qword [esi + 0x68]
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0x60]
mov edi, dword [ebx + 0x10]
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 0x20]
mov esi, dword [ebx + 0x1c]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebx + 0x18]
mov dword [esp + 0x2c], edx
mov edx, dword [ebx + 0x64]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x50], ecx
mov ecx, dword [ebx + 0x24]
mov dword [esp + 0x4c], edx
mov edx, dword [ebx + 0x2c]
push eax
push ebp
push ebx
mov dword [esp + 0x50], edi
mov dword [esp + 0x60], ecx
mov dword [esp + 0x4c], edx
call fcn.005b3f40
mov ebp, eax
add esp, 0xc
mov dword [esp + 0x74], ebp
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebp + 0x64]
mov dword [esp + 0x1c], edx
mov edx, dword [ebp + 0x24]
mov dword [esp + 0x60], ecx
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x14], eax
mov eax, dword [edi + edx*4]
mov edx, dword [ecx + 0x44]
mov ecx, eax
mov edi, edx
mov dword [esp + 0x5c], edx
rep movsd dword es:[edi], dword [esi]
xor edi, edi
cmp eax, edi
jle 0x5b31b5
mov ecx, dword [edx]
mov esi, dword [esp + 0x40]
add edx, 4
dec eax
mov ecx, dword [esi + ecx*4]
mov dword [edx - 4], ecx
jne 0x5b31a3
mov esi, dword [esp + 0x7c]
push 0x800
push esi
call fcn.005aa5d0
add esp, 8
push eax
push 0xffffffffffffffff
push 0x800
call fcn.005aaa70
mov edx, dword [esp + 0x48]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x34]
add esp, 0xc
cmp eax, edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x84], edi
mov dword [edx], edi
jle 0x5b3635
mov eax, dword [esp + 0x8c]
mov ebp, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x1c]
sub eax, ebp
mov dword [esp + 0x1c], eax
mov eax, edx
mov edx, dword [esp + 0x28]
sub ecx, ebp
sub eax, ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x60], ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x64], edx
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x84]
mov edx, dword [eax]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x6c], edx
cmp dword [eax + edx*4], esi
jne 0x5b3613
mov eax, dword [esp + 0x88]
mov ebx, dword [eax + edx*4]
mov eax, dword [esp + 0x2c]
cmp eax, 1
mov dword [esp + 0x68], ebx
jne 0x5b3278
mov eax, dword [esp + 0x48]
mov eax, dword [eax + edx*4]
mov dword [ecx + ebp], eax
jmp 0x5b329d
mov esi, edx
mov edi, dword [esp + 0x20]
imul esi, eax
lea ecx, [eax*4]
mov eax, dword [esp + 0x4c]
lea esi, [eax + esi*4]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x5b32af
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx + edx*4]
mov dword [ebp], eax
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x44]
xor esi, esi
mov eax, dword [ecx + edx*4]
mov ecx, dword [esp + 0x1c]
mov dword [ecx + ebp], eax
mov eax, dword [edi + edx*4 + 4]
mov ecx, dword [edi + edx*4]
cmp ecx, eax
jge 0x5b33ad
mov ebx, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
sub edi, ebx
sub eax, ecx
mov dword [esp + 0x8c], edx
lea edx, [ebx + ecx*4]
mov dword [esp + 0x28], edi
mov dword [esp + 0x3c], eax
jmp 0x5b32fe
mov edi, dword [esp + 0x28]
mov ecx, dword [edi + edx]
mov ebx, dword [esp + 0x18]
mov eax, ecx
and eax, 0x7ff
mov edi, dword [ebx + eax*4]
cmp edi, 0xffffffff
jne 0x5b3335
mov dword [ebp], ecx
mov ecx, dword [esp + 0x8c]
mov edi, dword [edx]
add ebp, 4
mov dword [ecx], edi
mov dword [ebx + eax*4], esi
inc esi
add ecx, 4
mov dword [esp + 0x8c], ecx
jmp 0x5b338b
mov ebx, dword [esp + 0x14]
shl edi, 2
cmp dword [ebx + edi], ecx
jne 0x5b334c
mov eax, dword [esp + 0x10]
mov ecx, dword [edx]
add dword [eax + edi], ecx
jmp 0x5b338b
xor eax, eax
test esi, esi
jle 0x5b336b
mov edi, ebx
cmp dword [edi], ecx
je 0x5b3362
inc eax
add edi, 4
cmp eax, esi
jl 0x5b3354
jmp 0x5b336b
mov edi, dword [esp + 0x10]
mov ebx, dword [edx]
add dword [edi + eax*4], ebx
cmp eax, esi
jne 0x5b338b
mov eax, dword [esp + 0x8c]
mov dword [ebp], ecx
mov ecx, dword [edx]
inc esi
mov dword [eax], ecx
add ebp, 4
add eax, 4
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x3c]
add edx, 4
dec eax
mov dword [esp + 0x3c], eax
jne 0x5b32fa
mov ebp, dword [esp + 0x30]
mov ebx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
mov edi, dword [esp + 0x44]
cmp edx, ebx
je 0x5b3573
mov eax, dword [esp + 0x2c]
cmp eax, 1
jne 0x5b33d3
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x60]
mov ecx, dword [edx + ebx*4]
mov edx, dword [eax + ebp]
add edx, ecx
mov dword [eax + ebp], edx
jmp 0x5b33f7
mov edx, dword [esp + 0x20]
mov ecx, ebx
imul ecx, eax
push 1
push edx
mov edx, dword [esp + 0x54]
push 1
lea ecx, [edx + ecx*4]
push ecx
push 0x3f800000
push eax
call fcn.005aab20
add esp, 0x18
mov eax, dword [esp + 0x24]
test eax, eax
je 0x5b340e
mov edx, dword [esp + 0x50]
mov ecx, dword [ebp]
mov eax, dword [edx + ebx*4]
add ecx, eax
mov dword [ebp], ecx
mov edx, dword [esp + 0x54]
lea ecx, [ebx*4]
mov eax, dword [edx + ecx]
mov edx, dword [esp + 0x1c]
add dword [edx + ebp], eax
mov eax, dword [edi + ebx*4 + 4]
mov ecx, dword [edi + ecx]
cmp ecx, eax
jge 0x5b350b
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x58]
lea ebp, [edi + esi*4]
mov edi, dword [esp + 0x5c]
lea edx, [edx + esi*4]
sub edi, ebx
sub eax, ecx
mov dword [esp + 0x8c], edx
lea edx, [ebx + ecx*4]
mov dword [esp + 0x28], edi
mov dword [esp + 0x3c], eax
jmp 0x5b3464
mov edi, dword [esp + 0x28]
mov ecx, dword [edx + edi]
mov ebx, dword [esp + 0x18]
mov eax, ecx
and eax, 0x7ff
mov edi, dword [ebx + eax*4]
cmp edi, 0xffffffff
jne 0x5b349b
mov dword [ebp], ecx
mov ecx, dword [esp + 0x8c]
mov edi, dword [edx]
add ebp, 4
mov dword [ecx], edi
mov dword [ebx + eax*4], esi
inc esi
add ecx, 4
mov dword [esp + 0x8c], ecx
jmp 0x5b34f1
mov ebx, dword [esp + 0x14]
shl edi, 2
cmp dword [ebx + edi], ecx
jne 0x5b34b2
mov eax, dword [esp + 0x10]
mov ecx, dword [edx]
add dword [eax + edi], ecx
jmp 0x5b34f1
xor eax, eax
test esi, esi
jle 0x5b34d1
mov edi, ebx
cmp dword [edi], ecx
je 0x5b34c8
inc eax
add edi, 4
cmp eax, esi
jl 0x5b34ba
jmp 0x5b34d1
mov edi, dword [esp + 0x10]
mov ebx, dword [edx]
add dword [edi + eax*4], ebx
cmp eax, esi
jne 0x5b34f1
mov eax, dword [esp + 0x8c]
mov dword [ebp], ecx
mov ecx, dword [edx]
inc esi
mov dword [eax], ecx
add ebp, 4
add eax, 4
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x3c]
add edx, 4
dec eax
mov dword [esp + 0x3c], eax
jne 0x5b3460
mov ebp, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x84]
mov ebx, dword [esp + 0x18]
mov eax, edi
mov ecx, dword [esp + 0x14]
and eax, 0x7ff
mov eax, dword [ebx + eax*4]
test eax, eax
jl 0x5b3545
cmp dword [ecx + eax*4], edi
je 0x5b3545
xor eax, eax
test esi, esi
jle 0x5b3545
mov edx, ecx
cmp dword [edx], edi
je 0x5b3541
inc eax
add edx, 4
cmp eax, esi
jl 0x5b3535
mov edx, dword [esp + 0x1c]
test eax, eax
jl 0x5b3582
shl eax, 2
cmp dword [ecx + eax], edi
jne 0x5b3582
mov ebx, dword [esp + 0x10]
mov ebx, dword [ebx + eax]
sub dword [edx + ebp], ebx
mov edx, dword [ecx + esi*4 - 4]
dec esi
mov dword [ecx + eax], edx
mov edx, dword [esp + 0x10]
mov ebx, dword [edx + esi*4]
mov dword [edx + eax], ebx
mov ebx, dword [esp + 0x18]
jmp 0x5b3582
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x84]
test esi, esi
jle 0x5b35b2
mov eax, ecx
mov dword [esp + 0x84], esi
mov edx, dword [eax]
add eax, 4
and edx, 0x7ff
mov dword [ebx + edx*4], 0xffffffff
mov edx, dword [esp + 0x84]
dec edx
mov dword [esp + 0x84], edx
jne 0x5b358f
mov eax, edi
mov edx, dword [esp + 0x38]
and eax, 0x7ff
add ebp, 4
add edx, esi
inc edi
mov dword [ebx + eax*4], 0xffffffff
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x38], edx
shl eax, 2
add ebx, eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x80]
mov dword [eax + ebp], edx
lea eax, [esi*4]
add ecx, eax
mov dword [esp + 0x84], edi
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
add ecx, eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x64]
add edx, 4
dec eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x64], eax
jne 0x5b3237
mov ebp, dword [esp + 0x74]
mov esi, dword [esp + 0x7c]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
push edx
push ebp
push ebx
mov dword [ebp + 0xc], ecx
call fcn.005b40e0
mov al, byte [esi + 4]
add esp, 0xc
test al, 1
je 0x5b365d
call fcn.005aa8f0
fadd qword [esi + 0x68]
fstp qword [esi + 0x68]
push 0x800
push esi
call fcn.005aa600
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x88]
push eax
push ecx
push ebp
push ebx
push esi
call fcn.005b36a0
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret