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

Disassembly:
sub esp, 0x3d8
mov eax, dword [0x69cffc]
xor eax, esp
mov dword [esp + 0x3d4], eax
push ebx
mov edx, dword [esp + 0x3e4]
xorps xmm0, xmm0
push ebp
push esi
push edi
mov edi, dword [esp + 0x3ec]
mov dword [esp + 0x2c], edx
movlpd qword [esp + 0x58], xmm0
movlpd qword [esp + 0x50], xmm0
mov eax, dword [edi + 0x1c]
mov ebx, dword [edi + 0xc]
movlpd qword [esp + 0x44], xmm0
add ebx, 0x10
movlpd qword [esp + 0x6c], xmm0
mov eax, dword [eax]
shr eax, 5
and eax, 3
mov dword [esp + 0x30], edi
imul ecx, eax, 0x2e8
mov eax, dword [edi + 0x18]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x24], 0x7fffff
mov eax, dword [ecx + eax + 0x458]
mov ecx, dword [edi + 8]
add ecx, 0x10
mov dword [esp + 0x64], ecx
mov ecx, dword [edi + 0x10]
mov dword [edx + 0x35c], 0xffffffff
add ecx, 0x10
xor edx, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x60], edx
xor esi, esi
cdq
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x50], eax
push esi
push ecx
lea eax, [esp + 0x7c]
push eax
push edi
call fcn.005d0df0
push dword [esp + 0x24]
mov dword [esp + 0x3e8], eax
push dword [esp + 0x78]
call dword [0x6ad1e8]
cdq
xorps xmm0, xmm0
mov dword [esp + 0x8c], eax
movzx eax, word [esi*2 + 0x660f04]
mov dword [esp + 0x90], edx
cdq
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x8c]
push eax
push edi
movlpd qword [esp + 0x9c], xmm0
mov dword [esp + 0xa8], edx
call fcn.005d2d50
cdq
add esp, 0x20
mov ebx, eax
mov ebp, edx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebp
test esi, esi
je 0x5d07cf
mov edi, 8
lea esi, [esp + 0x2bc]
xor edx, edx
dec edi
mov eax, 1
nop dword [eax]
xor ecx, ecx
cmp word [esi + eax*2], cx
setne cl
add edx, ecx
cmp edx, 2
jg 0x5d0784
inc eax
cmp eax, 0x10
jl 0x5d0750
add esi, 0x20
test edi, edi
jg 0x5d0743
add ebx, 0x460
mov dword [esp + 0x8c], ebx
adc ebp, 0
mov dword [esp + 0x90], ebp
push dword [esp + 0x18]
mov edi, dword [esp + 0x88]
mov ecx, ebx
push dword [esp + 0x20]
add ecx, edi
mov eax, ebp
mov ebp, dword [esp + 0x90]
adc eax, ebp
push eax
push ecx
call fcn.0058fd70
mov esi, dword [esp + 0x7c]
mov ebx, eax
add esi, dword [esp + 0x74]
mov ecx, dword [esp + 0x80]
adc ecx, dword [esp + 0x78]
shld ecx, esi, 8
shl esi, 8
add ebx, esi
mov esi, dword [esp + 0x10]
adc edx, ecx
jmp 0x5d081c
push dword [esp + 0x18]
mov edi, dword [esp + 0x88]
mov ecx, ebx
push dword [esp + 0x20]
add ecx, edi
mov eax, ebp
mov ebp, dword [esp + 0x90]
adc eax, ebp
push eax
push ecx
call fcn.0058fd70
mov esi, dword [esp + 0x7c]
mov ebx, eax
add esi, dword [esp + 0x74]
mov ecx, dword [esp + 0x80]
adc ecx, dword [esp + 0x78]
shld ecx, esi, 8
shl esi, 8
add ebx, esi
mov esi, dword [esp + 0x10]
adc edx, ecx
test esi, esi
je 0x5d0845
cmp edx, dword [esp + 0x24]
jl 0x5d0845
jg 0x5d082a
cmp ebx, dword [esp + 0x20]
jb 0x5d0845
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
mov eax, dword [ebp + 0x35c]
jmp 0x5d08f8
mov eax, dword [esp + 0x74]
mov ecx, 0x40
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x58], ebp
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x50], edi
mov dword [ebp + 0x35c], esi
lea edi, [ebp + 0x248]
mov dword [esp + 0x3c], eax
lea esi, [esp + 0x2bc]
mov eax, dword [esp + 0x80]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x44], eax
cmp dword [edi + 0x130], 0
mov eax, dword [esp + 0x90]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x3d4]
mov dword [esp + 0x60], eax
je 0x5d08d8
mov eax, dword [esp + 0x3d8]
mov dword [ebp + 0x364], eax
mov ax, word [esp + 0x3dc]
mov word [ebp + 0x368], ax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x28], ecx
mov ecx, eax
mov dword [esp + 0x14], ecx
mov eax, esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], edx
inc esi
mov dword [esp + 0x10], esi
cmp esi, 4
jl 0x5d06b5
push eax
push edi
call fcn.005cfad0
mov eax, dword [esp + 0x3c]
add esp, 8
add dword [ebp], eax
mov eax, dword [esp + 0x38]
adc dword [ebp + 4], eax
mov eax, dword [esp + 0x3c]
add dword [ebp + 8], eax
mov eax, dword [esp + 0x40]
adc dword [ebp + 0xc], eax
mov eax, dword [esp + 0x44]
add dword [ebp + 0x18], eax
mov eax, dword [esp + 0x4c]
adc dword [ebp + 0x1c], eax
mov eax, dword [esp + 0x50]
add dword [ebp + 0x10], eax
mov eax, dword [esp + 0x58]
adc dword [ebp + 0x14], eax
mov edx, dword [esp + 0x60]
or dword [ebp + 0x360], edx
add dword [ebp + 0x20], ebx
mov eax, dword [esp + 0x24]
adc dword [ebp + 0x24], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x68]
cmp eax, ecx
je 0x5d0973
push ecx
push eax
call dword [0x6ad1cc]
add esp, 8
mov ecx, dword [edi + 0x130]
test ecx, ecx
je 0x5d0a04
mov eax, dword [edi]
lea ecx, [ecx + eax*4]
movzx eax, byte [ebp + 0x364]
mov byte [edi + 0x12c], al
movsx eax, byte [ebp + 0x366]
lea eax, [eax + eax*2]
sar eax, 2
mov byte [edi + 0x12d], al
movzx eax, byte [ebp + 0x365]
mov byte [ecx], al
movzx eax, byte [ebp + 0x366]
sub al, byte [edi + 0x12d]
mov byte [ecx + 1], al
mov eax, dword [edi + 0x130]
mov ecx, dword [edi]
lea ecx, [eax + ecx*4]
movzx eax, byte [ebp + 0x367]
mov byte [edi + 0x12e], al
movsx eax, byte [ebp + 0x369]
lea eax, [eax + eax*2]
sar eax, 2
mov byte [edi + 0x12f], al
movzx eax, byte [ebp + 0x368]
mov byte [ecx + 2], al
movzx eax, byte [ebp + 0x369]
sub al, byte [edi + 0x12f]
mov byte [ecx + 3], al
mov ecx, dword [esp + 0x3e4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0058f0d5
add esp, 0x3d8
ret