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

Disassembly:
sub esp, 0xb14
mov eax, dword [0x69cffc]
xor eax, esp
mov dword [esp + 0xb10], eax
push ebx
mov ebx, dword [esp + 0xb1c]
push ebp
push esi
push edi
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
mov edi, dword [esp + 0xb2c]
mov dword [esp + 0x28], edi
mov eax, dword [eax]
shr eax, 5
and eax, 3
mov dword [esp + 0xac], ecx
imul edx, eax, 0x2e8
mov eax, dword [edx + ecx + 0x464]
add edx, ecx
cmp dword [ecx + 0x5878], 0
mov dword [esp + 0x9c], eax
mov eax, dword [ebx + 8]
mov esi, dword [edx + 0x454]
mov dword [esp + 0x94], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0xa8], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x78], 0
je 0x5d059b
mov eax, dword [edx + 0x45c]
mov ecx, 0xd3
imul ecx
xorps xmm0, xmm0
movlpd qword [esp + 0x790], xmm0
movlpd qword [esp + 0x798], xmm0
movlpd qword [esp + 0x7a8], xmm0
mov dword [esp + 0xaf0], 0
push ebx
mov dword [esp + 0x7a4], 0xd3
mov dword [esp + 0x7a8], 0
mov dword [esp + 0x7b4], eax
mov dword [esp + 0x7b8], edx
call fcn.005cf8b0
lea eax, [edi + 0x34c]
add esp, 4
mov dword [esp + 0x74], eax
mov eax, esi
cdq
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], edx
mov edx, dword [ebx + 0x58]
mov edi, edx
mov eax, dword [esp + 0x94]
mov esi, edx
sar esi, 2
mov dword [esp + 0x24], 0xffffffff
movzx ecx, word [edx*2 + 0x660880]
add eax, ecx
mov dword [esp + 0x98], eax
mov eax, dword [ebx + 0x18]
mov ebp, dword [eax + 0x30]
and edi, 3
jne 0x5d005b
mov eax, dword [ebx + 0x24]
mov ecx, esi
imul ecx, ebp
mov al, byte [ecx + eax - 1]
movzx ecx, word [edx*2 + 0x660880]
jmp 0x5d0063
mov eax, dword [esp + 0x74]
mov al, byte [edx + eax - 1]
movzx eax, al
mov dword [esp + 0x2c], eax
test esi, esi
jne 0x5d0078
mov eax, dword [ebx + 0x24]
sub eax, ebp
mov al, byte [eax + edi]
jmp 0x5d0080
mov eax, dword [esp + 0x74]
mov al, byte [edx + eax - 4]
mov edx, dword [esp + 0x2c]
xorps xmm0, xmm0
push dword [ebx + 0x54]
movzx eax, al
movlpd qword [esp + 0x90], xmm0
movlpd qword [esp + 0x88], xmm0
movlpd qword [esp + 0x80], xmm0
lea eax, [eax + eax*4]
movlpd qword [esp + 0xc4], xmm0
lea eax, [edx + eax*2]
mov dword [esp + 0x50], 0
lea eax, [eax + eax*4]
mov dword [esp + 0x34], 0xffffffff
lea eax, [eax*4 + 0x660f18]
mov dword [esp + 0x38], 0x7fffff
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x54]
add eax, ecx
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 0x14]
push eax
lea ebp, [eax + 0x688]
mov dword [esp + 0x18], ebp
call dword [0x6ad1f8]
mov ecx, dword [esp + 0xcc]
add esp, 8
mov dword [esp + 0x38], ecx
xor eax, eax
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
nop dword [eax]
mov esi, dword [esp + 0x98]
push eax
push ebp
push esi
lea eax, [esp + 0xb0c]
push eax
push ebx
call fcn.005d0d10
mov ecx, dword [ebx + 0x58]
shl eax, cl
push ebp
push esi
mov dword [esp + 0x98], eax
call dword [0x6ad1e0]
mov edi, dword [esp + 0xb8]
add esp, 0x1c
cdq
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], edx
test edi, edi
je 0x5d01be
push 0x660b80
push ebp
push esi
call dword [0x6ad1dc]
imul eax, edi
add esp, 0xc
sub eax, 0xffffff80
sar eax, 8
jmp 0x5d01c0
xor eax, eax
mov ecx, dword [esp + 0x1c]
cdq
mov dword [esp + 0x6c], edx
mov edi, eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0xa4], edi
movzx eax, word [eax + ecx*2]
cdq
mov dword [esp + 0x54], eax
mov dword [esp + 0x70], edx
test ecx, ecx
je 0x5d0220
lea ebp, [esp + 0xb00]
mov ecx, 1
xor esi, esi
nop dword [eax + eax]
xor eax, eax
cmp word [ebp + ecx*2], ax
setne al
add esi, eax
cmp esi, 3
jg 0x5d0220
inc ecx
cmp ecx, 0x10
jl 0x5d0200
mov esi, 0x8c
xor ebp, ebp
jmp 0x5d023a
xorps xmm0, xmm0
movlpd qword [esp + 0x438], xmm0
mov ebp, dword [esp + 0x43c]
mov esi, dword [esp + 0x438]
add edi, dword [esp + 0x64]
mov ecx, esi
mov eax, dword [esp + 0x6c]
adc eax, dword [esp + 0x68]
push dword [esp + 0x58]
shld eax, edi, 8
push dword [esp + 0x60]
mov dword [esp + 0x68], eax
mov eax, ebp
shl edi, 8
add ecx, dword [esp + 0x5c]
adc eax, edx
push eax
push ecx
call fcn.0058fd70
add eax, edi
adc edx, dword [esp + 0x60]
cmp dword [esp + 0x24], 0
jl 0x5d028d
cmp edx, dword [esp + 0x34]
jg 0x5d0388
jl 0x5d028d
cmp eax, dword [esp + 0x30]
jae 0x5d0388
lea eax, [esp + 0xb00]
push eax
push ebx
call fcn.005d2cd0
add esp, 8
cdq
add eax, esi
mov esi, eax
mov dword [esp + 0x84], eax
adc edx, ebp
mov ebp, dword [esp + 0x54]
push dword [esp + 0x58]
add esi, ebp
mov dword [esp + 0x90], edx
push dword [esp + 0x60]
adc edx, dword [esp + 0x78]
push edx
push esi
call fcn.0058fd70
mov ecx, eax
add ecx, edi
adc edx, dword [esp + 0x60]
cmp dword [esp + 0x24], 0
jl 0x5d02f1
cmp edx, dword [esp + 0x34]
jg 0x5d0388
jl 0x5d02f1
cmp ecx, dword [esp + 0x30]
jae 0x5d0388
mov eax, dword [esp + 0x64]
mov esi, ebp
mov ebp, dword [esp + 0x48]
movups xmm0, xmmword [esp + 0xb00]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x6c]
mov edi, dword [esp + 0xa4]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 0x58]
shl eax, 5
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebp
movups xmmword [esp + eax + 0x7d8], xmm0
mov dword [esp + 0x30], ecx
movups xmm0, xmmword [esp + 0xb10]
mov dword [esp + 0x34], edx
movups xmmword [esp + eax + 0x7e8], xmm0
mov eax, dword [esp + 0x84]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x2c], eax
jmp 0x5d0394
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, 0xa
jl 0x5d0160
mov ebp, dword [esp + 0x790]
add ebp, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
adc dword [esp + 0x794], eax
add dword [esp + 0x798], edi
mov ecx, dword [esp + 0x40]
adc dword [esp + 0x79c], ecx
mov eax, dword [esp + 0x20]
add dword [esp + 0x7a8], eax
mov ecx, dword [esp + 0x2c]
adc dword [esp + 0x7ac], ecx
add dword [esp + 0x7a0], esi
mov edx, dword [esp + 0x38]
adc dword [esp + 0x7a4], edx
mov edx, dword [esp + 0x4c]
or dword [esp + 0xaf0], edx
add eax, esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xa8]
adc ecx, dword [esp + 0x38]
mov dword [esp + 0x790], ebp
mov eax, dword [eax + 0x45c]
cdq
push edx
push eax
push ecx
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0058fd70
add edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
adc ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x7b0]
shld ecx, edi, 8
shl edi, 8
add eax, edi
mov edi, dword [esp + 0x7b4]
adc edx, ecx
add esi, eax
mov eax, dword [esp + 0x28]
adc edi, edx
mov dword [esp + 0x7b0], esi
mov dword [esp + 0x7b4], edi
cmp edi, dword [eax + 0x24]
jg 0x5d059b
jl 0x5d047c
cmp esi, dword [eax + 0x20]
jae 0x5d059b
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0xac]
add eax, dword [esp + 0x14]
mov dword [esp + 0x78], eax
cmp eax, dword [ecx + 0x5878]
jg 0x5d059b
mov ecx, dword [ebx + 0x58]
mov edx, dword [esp + 0x48]
movzx eax, word [ecx*2 + 0x660880]
add eax, dword [esp + 0x50]
cmp edx, eax
je 0x5d04c0
push eax
push edx
call dword [0x6ad1d0]
mov ecx, dword [ebx + 0x58]
add esp, 8
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push dword [esp + 0x50]
mov byte [edx + ecx + 0x34c], al
xor ecx, ecx
cmp dword [esp + 0x50], ecx
mov eax, dword [ebx + 0x58]
setne cl
sar eax, 2
push ebx
mov dword [ebx + eax*4 + 0x80], ecx
mov eax, dword [ebx + 0x58]
and eax, 3
mov dword [ebx + eax*4 + 0x5c], ecx
call fcn.005cf5b0
add esp, 8
test eax, eax
jne 0x5d0010
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x794]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x798]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x79c]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x7a8]
mov dword [ecx + 0x18], eax
mov eax, dword [esp + 0x7ac]
mov dword [ecx + 0x1c], eax
mov eax, dword [esp + 0x7a0]
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x7a4]
mov dword [ecx + 0x14], eax
mov eax, dword [esp + 0xaf0]
mov dword [ecx + 0x360], eax
lea eax, [ecx + 0x34c]
push eax
push ebx
mov dword [ecx], ebp
mov dword [ecx + 0x20], esi
mov dword [ecx + 0x24], edi
call fcn.005cfa90
mov ecx, dword [ebx + 0xc]
lea esi, [esp + 0x7e0]
mov eax, dword [ebx + 0x10]
add esp, 8
mov edi, dword [esp + 0x28]
mov dword [ebx + 0x10], ecx
add edi, 0x48
mov dword [ebx + 0xc], eax
mov ecx, 0x80
rep movsd dword es:[edi], dword [esi]
mov eax, 1
jmp 0x5d059d
xor eax, eax
mov ecx, dword [esp + 0xb20]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0058f0d5
add esp, 0xb14
ret