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

Disassembly:
sub esp, 0x148
mov eax, dword [0x69cffc]
xor eax, esp
mov dword [esp + 0x144], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x160]
mov edx, dword [esp + 0x16c]
mov ecx, dword [esp + 0x15c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x164]
mov dword [esp + 0x48], eax
imul eax, edx, 0x108
lea ebx, [ecx + 0xd5c]
mov dword [esp + 0x64], edx
add ecx, 0x54fc
add ebx, eax
lea eax, [edx + edx*2]
shl eax, 6
add eax, ecx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x54], eax
xor ecx, ecx
test edx, edx
lea eax, [esp + 0x94]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0xb4]
sete cl
mov dword [esp + 0x50], eax
or eax, 0xffffffff
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x170]
mov ebp, dword [esp + 0x30]
movzx eax, word [eax + 2]
mov edi, dword [esp + 0x168]
imul eax, eax
cdq
and edx, 3
lea esi, [edx + eax]
movzx edx, byte [ecx + 0x65f570]
sar esi, 2
lea ecx, [edi + edx*2]
add ecx, edx
lea edx, [ebp - 1]
imul ecx, ecx, 0xb
mov bl, byte [ecx + ebx]
mov ecx, 0xf
nop dword [eax]
nop dword [eax + eax]
mov edi, dword [esp + 0x20]
movzx eax, byte [ecx + 0x6608c4]
movsx eax, word [edi + eax*2]
mov edi, dword [esp + 0x168]
imul eax, eax
cmp eax, esi
jg 0x5d18b4
dec ecx
cmp ecx, ebp
jge 0x5d1890
jmp 0x5d18b6
mov edx, ecx
mov ebp, dword [esp + 0x174]
lea eax, [edx + 1]
cmp edx, 0xf
movzx esi, bl
cmovge eax, edx
add esi, esi
mov dword [esp + 0x60], eax
xor ecx, ecx
movzx eax, word [esi + 0x65e370]
imul ebp
cmp dword [esp + 0x64], ecx
mov dword [esp + 0x34], eax
mov eax, 0xc
cmove ecx, eax
mov dword [esp + 0x5c], edx
add ecx, dword [esp + 0x54]
mov ebx, dword [ecx + edi*4]
mov ecx, 0x65e56e
test edi, edi
jne 0x5d1907
mov eax, ecx
sub eax, esi
movzx eax, word [eax]
jmp 0x5d1909
xor eax, eax
imul ebp
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], edx
test edi, edi
jne 0x5d192b
sub ecx, esi
movzx eax, word [ecx]
jmp 0x5d192d
xor eax, eax
imul ebp
mov dword [esp + 0xac], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0xa4], eax
mov eax, ebx
mov dword [esp + 0xa8], edx
mov dword [esp + 0x24], eax
cmp ebx, dword [esp + 0x60]
jg 0x5d1c68
lea ebp, [ebx + ebx*2]
mov dword [esp + 0x18], ebp
lea ebx, [esp + ebx*8 + 0xd6]
nop word [eax + eax]
movzx esi, byte [eax + 0x6608c4]
mov eax, dword [esp + 0x170]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], 0
lea ecx, [esi + esi]
movzx edi, word [ecx + eax]
movzx edx, word [eax + esi*2 + 0x20]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x70], ecx
movzx eax, word [eax + ecx]
mov ecx, eax
shr ax, 0xf
movzx eax, ax
mov dword [esp + 0x80], eax
movsx eax, cx
mov dword [esp + 0x10], eax
neg dword [esp + 0x10]
test cx, cx
mov ecx, dword [esp + 0x10]
cmovns ecx, eax
mov eax, dword [esp + 0x170]
movzx eax, word [eax + esi*2 + 0xc0]
add ecx, eax
mov esi, dword [esp + 0x4c]
mov eax, ecx
mov dword [esp + 0x10], ecx
imul eax, edx
mov edx, 0x7ff
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x58], esi
mov ecx, eax
add eax, 0x10000
shr eax, 0x11
shr ecx, 0x11
cmp eax, 0x7ff
cmova eax, edx
cmp ecx, edx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x24]
cmova ecx, edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x50], esi
mov esi, ebx
mov dword [esp + 0x4c], edx
movzx eax, byte [eax + 0x65f571]
mov dword [esp + 0x88], eax
lea eax, [ecx*2 + 0x65e570]
mov dword [esp + 0x3c], eax
mov eax, edi
neg eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x90], eax
mov eax, ecx
imul eax, edi
mov edi, dword [esp + 0x28]
sub esi, eax
mov dword [esp + 0x40], esi
nop dword [eax]
cmp ecx, 2
mov edx, 2
mov eax, ecx
cmovg eax, edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x84], eax
add eax, ebp
mov eax, dword [edx + eax*4 + 0xc]
mov edx, dword [esp + 0x1c]
mov dword [edx + 8], eax
test ecx, ecx
js 0x5d1bee
cmp ecx, dword [esp + 0x6c]
jg 0x5d1bee
mov edx, dword [esp + 0x70]
mov eax, esi
imul eax, esi
mov esi, dword [esp + 0x58]
imul ebx, ebx
movzx edx, word [edx + 0x660ba0]
mov dword [esp + 0x38], 0
sub eax, ebx
mov ebx, ecx
imul eax, edx
mov edx, 0x100
imul edx
cmp ecx, 0x43
mov dword [esp + 0x78], eax
mov eax, 0x43
cmovg ebx, eax
mov dword [esp + 0x7c], edx
mov eax, dword [esp + 0x3c]
movzx edi, word [eax]
mov eax, dword [esi + 8]
movzx eax, word [eax + ebx*2]
add eax, edi
imul dword [esp + 0x174]
mov ebp, eax
add ebp, dword [esi]
adc edx, dword [esi + 4]
mov esi, dword [esi + 0x18]
mov dword [esp + 0x74], edx
movzx eax, word [esi + ebx*2]
mov esi, dword [esp + 0x58]
add eax, edi
imul dword [esp + 0x174]
mov ebx, dword [esp + 0x74]
add eax, dword [esi + 0x10]
adc edx, dword [esi + 0x14]
cmp edx, ebx
jg 0x5d1b30
jl 0x5d1b21
cmp eax, ebp
jae 0x5d1b34
mov ebp, eax
mov ebx, edx
mov eax, 1
mov dword [esp + 0x38], eax
jmp 0x5d1b38
xor eax, eax
jmp 0x5d1b38
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x28]
add ebp, dword [esp + 0x78]
mov edx, dword [esp + 0x80]
adc ebx, dword [esp + 0x7c]
mov byte [edi - 2], al
mov eax, dword [esp + 0x1c]
mov byte [edi - 1], dl
mov word [edi], cx
mov dword [eax], ebp
mov dword [eax + 4], ebx
test ecx, ecx
je 0x5d1c09
mov esi, dword [esp + 0x5c]
cmp ebx, esi
jg 0x5d1c09
jl 0x5d1b7d
cmp ebp, dword [esp + 0x34]
jae 0x5d1c09
cmp dword [esp + 0x18], 0x2d
jge 0x5d1baf
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x84]
lea eax, [eax + edx*2]
add eax, edx
mov edx, dword [esp + 0x8c]
imul eax, eax, 0xb
movzx eax, byte [eax + edx]
movzx eax, word [eax*2 + 0x65e370]
jmp 0x5d1bb1
xor eax, eax
imul dword [esp + 0x174]
add eax, ebp
adc edx, ebx
cmp edx, esi
jg 0x5d1c05
jl 0x5d1bc8
cmp eax, dword [esp + 0x34]
jae 0x5d1c05
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x44], edx
jmp 0x5d1c0d
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov dword [eax], 0xffffffff
mov dword [eax + 4], 0x7fffff
jmp 0x5d1c15
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
add dword [esp + 0x3c], 2
inc edx
mov dword [esp + 0x14], edx
add edi, 4
mov edx, dword [esp + 0x90]
add eax, 0x10
add dword [esp + 0x40], edx
inc ecx
cmp dword [esp + 0x14], 1
mov esi, dword [esp + 0x40]
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], eax
jle 0x5d1a60
mov eax, dword [esp + 0x24]
add ebp, 3
inc eax
mov dword [esp + 0x18], ebp
mov ebx, edi
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x60]
jle 0x5d1970
mov ebx, dword [esp + 0x30]
cmp dword [esp + 0x64], 0
xorps xmm0, xmm0
mov eax, dword [esp + 0x20]
jne 0x5d1ca8
movups xmmword [eax + 2], xmm0
movq qword [eax + 0x12], xmm0
mov dword [eax + 0x1a], 0
mov word [eax + 0x1e], 0
mov eax, dword [esp + 0x48]
movups xmmword [eax + 2], xmm0
movq qword [eax + 0x12], xmm0
mov dword [eax + 0x1a], 0
mov word [eax + 0x1e], 0
jmp 0x5d1cba
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
mov eax, dword [esp + 0x48]
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
mov edx, dword [esp + 0x2c]
cmp edx, 0xffffffff
jne 0x5d1cca
xor eax, eax
jmp 0x5d1d53
mov ecx, dword [esp + 0x44]
xor ebp, ebp
lea eax, [ecx + edx*2]
mov ecx, dword [esp + 0x68]
mov byte [esp + eax*4 + 0xd4], cl
mov ecx, dword [esp + 0x44]
cmp edx, ebx
jl 0x5d1d4c
movzx edi, byte [edx + 0x6608c4]
lea eax, [ecx + edx*2]
lea ebx, [esp + 0xd4]
movzx esi, word [ebx + eax*4 + 2]
lea ebx, [ebx + eax*4]
mov ecx, esi
mov eax, esi
neg eax
cmp byte [ebx + 1], 0
movzx edx, ax
mov eax, ecx
cmove edx, eax
mov eax, dword [esp + 0x48]
movzx ecx, dx
mov edx, dword [esp + 0x2c]
mov word [eax + edx*2], cx
dec edx
movsx eax, si
or ebp, eax
mov dword [esp + 0x2c], edx
movsx eax, cx
mov ecx, dword [esp + 0x170]
movsx ecx, word [ecx + edi*2]
imul ecx, eax
mov eax, dword [esp + 0x20]
mov word [eax + edi*2], cx
movsx ecx, byte [ebx]
cmp edx, dword [esp + 0x30]
jge 0x5d1ce6
xor eax, eax
test ebp, ebp
setne al
mov ecx, dword [esp + 0x154]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0058f0d5
add esp, 0x148
ret