Function at 0x5a0db0
Capabilities:
Encrypt data using speck
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov esi, ecx
mov eax, dword [ecx + 0x24c]
mov dword [ebp - 0x3c], 0
test eax, eax
jne 0x5a1ac2
mov edi, dword [esi + 4]
mov ebx, dword [esi + 0x34]
mov dword [ebp - 0x2c], 2
cmp dword [esi + 0x14], 0x1c
jb 0x5a16a1
lea eax, [esi + 8]
mov dword [ebp - 0x48], eax
push eax
call fcn.00523090
add esp, 4
mov eax, dword [esi]
cmp eax, 7
mov dword [ebp - 0x24], esi
je 0x5a1226
mov ecx, ebx
cmp eax, 8
jne 0x5a0e18
mov ebx, edi
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x20], ecx
jmp 0x5a134b
cmp eax, 9
jne 0x5a0e27
mov ebx, ecx
mov esi, dword [ebp - 0x24]
jmp 0x5a10a5
mov dword [ebp - 0x28], 0xffffffe1
cmp eax, 0xa
mov esi, dword [ebp - 0x24]
mov ebx, ecx
je 0x5a1458
jmp 0x5a16ad
add ecx, 8
mov dword [esi + 0xc], ecx
shr eax, 8
and eax, dword [ebx*4 + 0x7aa1f0]
lea eax, [edx + eax*4]
movzx edx, word [edx + 2]
lea edx, [eax + edx*4]
mov bl, byte [edx]
jmp 0x5a0e8c
mov edi, dword [esi + 0x10]
movzx ebx, word [edi]
shrd eax, ebx, 0x10
mov dword [esi + 8], eax
xor ecx, 0x10
mov dword [esi + 0xc], ecx
add dword [esi + 0x14], 0xfffffffe
add edi, 2
mov dword [esi + 0x10], edi
shr eax, cl
movzx edi, al
lea edx, [edx + edi*4]
movzx ebx, byte [edx]
cmp ebx, 9
jae 0x5a0e41
mov edi, dword [ebp - 0x20]
movzx eax, bl
add eax, ecx
mov dword [esi + 0xc], eax
mov al, byte [edx + 2]
mov ecx, dword [esi + 0x60]
mov byte [ecx + edi], al
dec dword [esi + 0xc0]
inc edi
mov dword [ebp - 0x20], edi
cmp edi, dword [esi + 0x40]
je 0x5a1a35
mov bh, byte [ebp - 0x10]
mov bl, al
inc dword [ebp - 0x14]
je 0x5a1095
cmp dword [esi + 0x14], 0x1b
jbe 0x5a168b
cmp dword [esi + 0xc0], 0
je 0x5a16b8
mov eax, dword [esi + 0x6c]
mov byte [ebp - 0x10], bl
movzx ecx, bl
movzx edx, bh
mov dl, byte [eax + edx + 0x100]
or dl, byte [eax + ecx]
movzx eax, dl
mov ecx, dword [esi + 0x78]
mov edx, dword [esi + 0x70]
movzx eax, byte [edx + eax]
mov edx, dword [ecx + eax*4]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
cmp ecx, 0x10
jb 0x5a0e7c
jmp 0x5a0e5f
mov ecx, esi
call fcn.00514e20
jmp 0x5a10be
mov edx, dword [esi + 0x10]
movzx eax, word [edx]
shrd ebx, eax, 0x10
mov dword [esi + 8], ebx
add dword [esi + 0x14], 0xfffffffe
xor ecx, 0x10
add edx, 2
mov eax, ebx
shr eax, cl
mov dword [esi + 0x10], edx
mov edx, ebx
movzx eax, ax
mov dword [ebp - 0x18], eax
sub ecx, 0xfffffff0
mov dword [esi + 0xc], ecx
jb 0x5a0f66
jmp 0x5a0f84
mov dword [ebp - 0x14], eax
cmp ecx, 0xf
ja 0x5a0f1e
mov eax, edx
shr eax, cl
movzx eax, ax
mov dword [ebp - 0x18], eax
or ecx, 0x10
mov dword [esi + 0xc], ecx
mov eax, dword [esi + 0x10]
mov ebx, edx
movzx edx, word [eax]
shrd ebx, edx, 0x10
mov edx, ebx
mov dword [esi + 8], ebx
add dword [esi + 0x14], 0xfffffffe
xor ecx, 0x10
add eax, 2
mov dword [esi + 0x10], eax
shr edx, cl
and edx, dword [edi*4 + 0x7aa1d0]
lea eax, [ecx + edi]
add eax, 0xfffffff0
mov dword [esi + 0xc], eax
shl edx, 0x10
add edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
jmp 0x5a1165
add eax, 8
mov dword [esi + 0xc], eax
shr edx, 8
and edx, dword [ecx*4 + 0x7aa1f0]
lea ecx, [edi + edx*4]
movzx edx, word [edi + 2]
lea edi, [ecx + edx*4]
mov cl, byte [edi]
jmp 0x5a10f5
lea edi, [eax - 0xa]
mov ecx, eax
add ecx, 0xfffffffc
xor edx, edx
cmp ax, 0xa
setb dl
cmovae ecx, edi
shl ecx, 2
mov eax, 0x605142
shr eax, cl
and eax, 7
mov ecx, dword [esi + 0x48]
add ecx, edx
add ecx, 2
and ecx, 3
mov ecx, dword [esi + ecx*4 + 0x4c]
add eax, ecx
add eax, 0xfffffffd
test eax, eax
mov edx, SysReAllocString
cmovg edx, eax
mov dword [esi + 0x10c], edx
xor edi, edi
jmp 0x5a1045
mov dword [esi + 0x10c], eax
cmp ax, 3
ja 0x5a0fc8
mov edx, eax
not edx
xor edi, edi
inc edi
mov ecx, eax
shr edi, cl
mov dword [esi + 0xb4], edi
mov eax, dword [esi + 0x48]
add edx, eax
and edx, 3
mov edx, dword [esi + edx*4 + 0x4c]
mov dword [esi + 0x10c], edx
sub eax, edi
mov dword [esi + 0x48], eax
mov ebx, dword [ebp - 0x10]
jmp 0x5a117c
mov ecx, dword [esi + 0x10]
mov ebx, edx
movzx edx, word [ecx]
shrd ebx, edx, 0x10
mov edx, ebx
mov dword [esi + 8], ebx
xor eax, 0x10
mov dword [esi + 0xc], eax
add dword [esi + 0x14], 0xfffffffe
add ecx, 2
mov dword [esi + 0x10], ecx
jmp 0x5a10dd
sete al
movzx edi, al
mov dword [esi + 0xb4], edi
mov eax, dword [esi + 0x48]
dec eax
mov dword [esi + 0x48], eax
and eax, 3
mov edx, dword [esi + eax*4 + 0x4c]
mov dword [esi + 0x10c], edx
jmp 0x5a117c
cmp dword [esi + 0xb8], 0
jle 0x5a1a77
mov ebx, dword [ebp - 0x20]
cmp dword [esi + 0x10c], 0
mov dword [ebp - 0x10], ebx
jns 0x5a1070
cmp dword [esi + 0xc8], 0
je 0x5a0f12
mov eax, dword [esi + 0x98]
movzx ecx, byte [esi + 0x104]
mov edi, dword [eax + ecx*4]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0xc]
cmp eax, 0x10
jae 0x5a104d
mov ebx, edx
mov ecx, eax
shr edx, cl
movzx ecx, dl
lea edi, [edi + ecx*4]
movzx ecx, byte [edi]
cmp ecx, 9
jae 0x5a0fa7
movzx ecx, cl
add ecx, eax
mov dword [esi + 0xc], ecx
movzx eax, word [edi + 2]
dec dword [esi + 0xc8]
mov dword [esi + 0xb4], 0
cmp eax, 0xf
jbe 0x5a1011
mov edx, ebx
movzx edi, byte [esi + eax + 0x270]
cmp edi, 0x10
ja 0x5a0f4e
cmp ecx, 0x10
jb 0x5a1154
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x14], eax
movzx eax, word [edx]
shrd ebx, eax, 0x10
mov eax, dword [ebp - 0x14]
mov dword [esi + 8], ebx
add dword [esi + 0x14], 0xfffffffe
xor ecx, 0x10
add edx, 2
mov dword [esi + 0x10], edx
mov edx, ebx
mov ebx, dword [ebp - 0x10]
shr edx, cl
and edx, dword [edi*4 + 0x7aa210]
add ecx, edi
mov dword [esi + 0xc], ecx
mov cl, byte [esi + 0xf0]
shl edx, cl
add edx, dword [esi + eax*4 + 0x490]
mov dword [esi + 0x10c], edx
xor edi, edi
mov ecx, dword [esi + 0x38]
mov eax, dword [esi + 0x3c]
cmp eax, ecx
je 0x5a1190
cmp ebx, ecx
cmovl ecx, ebx
mov dword [esi + 0x3c], ecx
mov eax, ecx
mov ebx, dword [esi + 0x108]
mov ecx, edx
sub ecx, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], edx
jg 0x5a1496
mov ecx, dword [ebp - 0x10]
sub ecx, edx
and ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
mov edi, dword [esi + 0x60]
mov dword [ebp - 0x1c], edi
mov edi, edx
and edi, 3
mov eax, dword [ebp - 0x18]
mov dword [esi + edi*4 + 0x4c], eax
mov eax, ecx
mov ecx, dword [ebp - 0x10]
lea edi, [ebx + ecx]
inc edx
mov dword [esi + 0x48], edx
sub dword [esi + 0xb8], ebx
lea edx, [eax + ebx]
mov ebx, dword [ebp - 0x1c]
movups xmm0, xmmword [ebx + eax]
movups xmmword [ebx + ecx], xmm0
cmp edx, ecx
setg bl
cmp edi, eax
setg bh
test bl, bh
jne 0x5a1452
mov ebx, edi
mov edi, dword [esi + 0x40]
cmp ebx, edi
jge 0x5a1452
cmp edx, edi
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
jge 0x5a1832
cmp edi, 0x11
jge 0x5a1420
cmp dword [esi + 0xb8], 0
jle 0x5a1842
mov ecx, dword [esi + 0x14]
cmp ecx, 0x1c
jb 0x5a169b
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x5a148a
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], ebx
mov edi, dword [esi + 0x68]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0xc]
cmp eax, 0x10
jb 0x5a127c
mov ecx, dword [esi + 0x10]
movzx ebx, word [ecx]
shrd edx, ebx, 0x10
mov dword [esi + 8], edx
xor eax, 0x10
mov dword [esi + 0xc], eax
mov ebx, dword [ebp - 0x10]
add ebx, 0xfffffffe
mov dword [ebp - 0x10], ebx
mov dword [esi + 0x14], ebx
add ecx, 2
mov dword [esi + 0x10], ecx
mov ebx, edx
mov ecx, eax
shr ebx, cl
movzx ecx, bl
lea edi, [edi + ecx*4]
movzx ecx, byte [edi]
cmp ecx, 9
mov dword [ebp - 0x30], edx
jae 0x5a13ab
movzx ecx, cl
add ecx, eax
mov dword [ebp - 0x28], ecx
mov dword [esi + 0xc], ecx
movzx edi, word [edi + 2]
movzx ecx, byte [edi*8 + 0x7a5742]
movzx eax, byte [edi*8 + 0x7a5743]
mov dword [ebp - 0x14], eax
movsx ebx, byte [edi*8 + 0x7a5744]
movzx eax, byte [edi*8 + 0x7a5745]
mov edx, esi
movzx esi, word [edi*8 + 0x7a5746]
mov dword [ebp - 0x1c], esi
mov esi, edx
movzx edx, word [edi*8 + 0x7a5748]
mov dword [ebp - 0x34], edx
mov dword [esi + 0x10c], ebx
mov dword [esi + 0xb4], eax
mov edi, dword [esi + 0x74]
mov al, byte [edi + eax]
mov byte [esi + 0x104], al
xor ebx, ebx
test ecx, ecx
jne 0x5a13cc
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp al, 0x10
ja 0x5a16d7
cmp ecx, 0x10
jae 0x5a1384
shr edx, cl
and edx, dword [eax*4 + 0x7aa210]
add ecx, eax
mov dword [esi + 0xc], ecx
add edx, dword [ebp - 0x34]
mov dword [esi + 0x108], edx
mov eax, dword [ebp - 0x18]
dec eax
mov dword [esi + 0xc4], eax
add ebx, dword [ebp - 0x1c]
je 0x5a10a2
sub dword [esi + 0xb8], ebx
mov eax, dword [esi + 0xb0]
test eax, eax
jne 0x5a15ce
mov eax, dword [esi + 0x44]
mov edx, dword [ebp - 0x20]
lea ecx, [edx - 1]
and ecx, eax
add edx, 0xfffffffe
and edx, eax
mov eax, dword [esi + 0x60]
mov cl, byte [eax + ecx]
mov byte [ebp - 0x10], cl
mov ecx, ebx
mov bl, byte [ebp - 0x10]
mov bh, byte [eax + edx]
neg ecx
mov dword [ebp - 0x14], ecx
jmp 0x5a0ec1
mov eax, dword [esi + 0x10]
movzx edi, word [eax]
shrd edx, edi, 0x10
mov dword [esi + 8], edx
mov edi, dword [ebp - 0x10]
add edi, 0xfffffffe
mov dword [esi + 0x14], edi
add eax, 2
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x14]
xor ecx, 0x10
jmp 0x5a131b
add eax, 8
mov dword [esi + 0xc], eax
shr ebx, 8
and ebx, dword [ecx*4 + 0x7aa1f0]
lea ecx, [edi + ebx*4]
movzx edi, word [edi + 2]
lea edi, [ecx + edi*4]
mov cl, byte [edi]
jmp 0x5a1297
mov dword [ebp - 0x38], ecx
cmp cl, 0x10
mov edx, dword [ebp - 0x30]
ja 0x5a175b
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x5a1405
mov eax, dword [esi + 0x10]
movzx edi, word [eax]
shrd edx, edi, 0x10
mov dword [esi + 8], edx
mov edi, dword [ebp - 0x10]
add edi, 0xfffffffe
mov dword [ebp - 0x10], edi
mov dword [esi + 0x14], edi
add eax, 2
mov dword [esi + 0x10], eax
xor ecx, 0x10
mov ebx, edx
shr ebx, cl
mov eax, dword [ebp - 0x38]
and ebx, dword [eax*4 + 0x7aa210]
add ecx, eax
mov dword [esi + 0xc], ecx
mov eax, dword [ebp - 0x14]
jmp 0x5a130e
mov ecx, dword [ebp - 0x1c]
add edx, ecx
add eax, ecx
cmp edi, 0x21
jae 0x5a1439
movups xmm0, xmmword [eax + 0x10]
movups xmmword [edx + 0x10], xmm0
jmp 0x5a1219
add edx, 0x10
add eax, 0x10
lea ecx, [edi - 0x10]
push ecx
push eax
push edx
call fcn.005cc950
add esp, 0xc
jmp 0x5a1219
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov eax, dword [esi + 0x40]
mov ecx, edi
mov edi, ecx
test ecx, ecx
jle 0x5a1484
mov ecx, ebx
sub ecx, dword [esi + 0x10c]
mov edx, dword [esi + 0x60]
and ecx, dword [esi + 0x44]
mov cl, byte [edx + ecx]
mov byte [edx + ebx], cl
inc ebx
lea ecx, [edi - 1]
cmp eax, ebx
jne 0x5a145d
jmp 0x5a1839
dec edi
jmp 0x5a1219
mov ecx, esi
call fcn.00514940
jmp 0x5a1226
cmp edx, 0x7ffffffc
jg 0x5a1a4b
mov ebx, dword [ebp - 0x3c]
sub ebx, ecx
mov esi, dword [ebp - 0x24]
jge 0x5a18b6
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffffc
mov dword [ebp - 0x28], 0xfffffff4
cmp ecx, 0x1b
ja 0x5a16ad
mov edx, dword [esi + 0x248]
xor ecx, ecx
cmp dword [edx + 0x7c], 0
mov dword [ebp - 0x30], edx
jne 0x5a1a8a
movzx ecx, cl
mov dword [ebp - 0x20], ecx
mov ecx, dword [edx + ecx*4 + 0xc4]
mov edx, dword [ebp - 0x14]
movzx ebx, byte [ecx + edx]
mov dword [ebp - 0x34], ebx
not eax
mov ebx, dword [ebp - 0x18]
sub ebx, dword [ebp - 0x3c]
add ebx, eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax*4 + 0x7aa210]
and eax, ebx
imul eax, edx
mov dword [ebp - 0x1c], ecx
add eax, dword [ecx + edx*4 + 0x20]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + eax*4 + 0x1c4]
add dword [esi + 0x48], edi
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp - 0x34]
sar ebx, cl
mov ecx, eax
mov eax, dword [eax + 0xc]
mov edi, eax
cmp ebx, eax
jge 0x5a1983
mov eax, dword [ebp - 0x1c]
cmp byte [eax + edx], 0
je 0x5a1983
mov eax, ecx
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x14]
cmp byte [ecx + edi], 0
je 0x5a16ad
mov ecx, dword [ecx + 0xa4]
test ecx, ecx
je 0x5a1a57
mov dword [ebp - 0x28], 0xfffffff5
cmp ebx, dword [eax + 0xc]
jge 0x5a16ad
add ecx, dword [ebp - 0x38]
movsx edx, word [eax + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x60]
add eax, dword [ebp - 0x10]
cmp ebx, edx
je 0x5a15bf
push ebx
push dword [ebp - 0x18]
push edi
push ecx
push eax
call fcn.005c0e40
add esp, 0x14
test eax, eax
je 0x5a1a63
sub dword [esi + 0xb8], eax
mov ecx, dword [ebp - 0x10]
add ecx, eax
cmp ecx, dword [esi + 0x40]
jge 0x5a1970
mov ebx, ecx
jmp 0x5a1219
push edi
push ecx
push eax
call fcn.005cc950
add esp, 0xc
mov eax, edi
jmp 0x5a15a4
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
cmp ecx, 0x18
mov dword [ebp - 0x14], ebx
jae 0x5a1b37
mov edx, dword [esi + 0x100]
shr eax, cl
movzx eax, al
mov bl, byte [edx + eax*4]
movzx edx, word [edx + eax*4 + 2]
neg dword [ebp - 0x14]
jmp 0x5a1649
mov edx, dword [esi + 0x10]
mov edi, dword [edx]
shrd ebx, edi, 0x18
mov edi, dword [ebp - 0x20]
mov dword [esi + 8], ebx
xor ecx, 0x18
mov dword [esi + 0xc], ecx
add dword [esi + 0x14], 0xfffffffd
add edx, 3
mov dword [esi + 0x10], edx
shr ebx, cl
movzx ecx, bl
mov edx, dword [ebp - 0x10]
mov bl, byte [edx + ecx*4]
movzx edx, word [edx + ecx*4 + 2]
mov ecx, dword [esi + 0x60]
mov byte [ecx + edi], al
dec dword [esi + 0xc0]
inc edi
mov dword [ebp - 0x20], edi
cmp edi, dword [esi + 0x40]
je 0x5a1a35
inc dword [ebp - 0x14]
je 0x5a1095
cmp dword [esi + 0x14], 0x1b
jbe 0x5a168b
cmp dword [esi + 0xc0], 0
je 0x5a1acd
mov eax, dword [esi + 0x100]
mov dword [ebp - 0x10], eax
movzx edi, bl
mov ecx, dword [esi + 0xc]
cmp bl, 9
jae 0x5a17dd
add ecx, edi
mov dword [esi + 0xc], ecx
mov ebx, dword [esi + 8]
mov eax, edx
cmp ecx, 0x18
mov edi, dword [ebp - 0x20]
jb 0x5a1617
jmp 0x5a15f8
mov dword [esi], 8
mov edi, dword [ebp - 0x14]
neg edi
mov ebx, dword [ebp - 0x20]
jmp 0x5a16a1
mov dword [esi], 7
mov dword [esi + 0x34], ebx
mov dword [esi + 4], edi
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
call fcn.00514b70
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x5a0ed8
mov ebx, dword [ebp - 0x14]
neg ebx
jmp 0x5a1351
cmp ecx, 0x10
jb 0x5a16fe
mov eax, dword [esi + 0x10]
movzx edi, word [eax]
shrd edx, edi, 0x10
mov dword [esi + 8], edx
mov edi, dword [ebp - 0x10]
add edi, 0xfffffffe
mov dword [ebp - 0x10], edi
mov dword [esi + 0x14], edi
add eax, 2
mov dword [esi + 0x10], eax
xor ecx, 0x10
mov eax, edx
shr eax, cl
movzx eax, ax
add ecx, 0x10
mov dword [esi + 0xc], ecx
cmp ecx, 0x18
jae 0x5a172e
shr edx, cl
mov edi, dword [ebp - 0x14]
and edx, dword [edi*4 + 0x7aa1d0]
add ecx, edi
add ecx, 0xfffffff0
mov dword [esi + 0xc], ecx
shl edx, 0x10
or edx, eax
jmp 0x5a1329
mov edi, dword [esi + 0x10]
mov dword [ebp - 0x28], edi
mov esi, ebx
mov ebx, dword [edi]
shrd edx, ebx, 0x18
mov ebx, esi
mov esi, dword [ebp - 0x24]
mov dword [esi + 8], edx
mov edi, dword [ebp - 0x10]
add edi, 0xfffffffd
mov dword [esi + 0x14], edi
mov edi, dword [ebp - 0x28]
add edi, 3
mov dword [esi + 0x10], edi
xor ecx, 0x18
jmp 0x5a1710
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x5a1785
mov eax, dword [esi + 0x10]
movzx edi, word [eax]
shrd edx, edi, 0x10
mov dword [esi + 8], edx
mov edi, dword [ebp - 0x10]
add edi, 0xfffffffe
mov dword [ebp - 0x10], edi
mov dword [esi + 0x14], edi
add eax, 2
mov dword [esi + 0x10], eax
xor ecx, 0x10
mov eax, edx
shr eax, cl
movzx edi, ax
add ecx, 0x10
mov dword [esi + 0xc], ecx
cmp ecx, 0x18
jae 0x5a1b58
mov ebx, edx
shr ebx, cl
mov eax, dword [ebp - 0x38]
and ebx, dword [eax*4 + 0x7aa1d0]
add ecx, eax
add ecx, 0xfffffff0
shl ebx, 0x10
or ebx, edi
jmp 0x5a1415
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
shrd ebx, eax, 0x10
mov dword [esi + 8], ebx
add dword [esi + 0x14], 0xfffffffe
xor ecx, 0x10
mov eax, dword [ebp - 0x18]
add eax, 2
mov dword [esi + 0x10], eax
jmp 0x5a17e7
mov eax, dword [ebp - 0x48]
mov ebx, dword [eax]
cmp ecx, 0x10
jae 0x5a17b8
movzx eax, dx
mov dword [ebp - 0x18], eax
mov eax, ebx
shr eax, cl
mov dword [ebp - 0x1c], eax
movzx edx, al
mov eax, dword [ebp - 0x10]
lea edx, [eax + edx*4]
mov eax, dword [ebp - 0x18]
lea eax, [edx + eax*4]
mov dword [ebp - 0x18], eax
lea edx, [ecx + 8]
mov dword [esi + 0xc], edx
mov eax, dword [ebp - 0x1c]
shr eax, 8
and eax, dword [edi*4 + 0x7aa1f0]
mov edi, dword [ebp - 0x18]
movzx edx, byte [edi + eax*4]
add ecx, edx
add ecx, 8
mov dword [esi + 0xc], ecx
movzx eax, word [edi + eax*4 + 2]
jmp 0x5a167e
mov ebx, edx
jmp 0x5a1458
mov dword [esi], 0x10
dec edi
jmp 0x5a1848
mov dword [esi], 0xe
xor eax, eax
inc eax
mov dword [ebp - 0x2c], eax
jmp 0x5a16a1
mov esi, dword [edi + 4]
lea edx, [esi - 1]
xor ecx, ecx
dec ecx
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, eax
add cl, 9
mov ebx, edx
sar ebx, cl
inc eax
mov dword [ebp - 0x1c], eax
test ebx, ebx
jne 0x5a185f
mov ecx, dword [ebp - 0x1c]
mov dword [edi + 0x98], ecx
test esi, esi
jle 0x5a18cd
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x1c]
shl esi, cl
xor eax, eax
xor edx, edx
dec eax
mov ecx, eax
inc eax
cmp dword [edi + ecx*4 + 0x60], edx
jl 0x5a188d
mov ebx, edx
mov ecx, dword [ebp - 0x1c]
sar ebx, cl
mov byte [edi + ebx + 0x9c], al
add edx, esi
cmp edx, dword [edi + 4]
jl 0x5a188c
mov eax, dword [edi + 0x98]
mov dword [ebp - 0x1c], eax
jmp 0x5a18cd
mov dword [ebp - 0x18], ebx
mov edi, dword [esi + 0x24c]
mov ecx, dword [edi + 0x98]
mov dword [ebp - 0x1c], ecx
cmp ecx, 0xffffffff
je 0x5a1853
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
sar eax, cl
movzx eax, byte [edi + eax + 0x9c]
dec eax
mov edx, dword [ebp - 0x18]
mov ecx, eax
inc eax
cmp dword [edi + ecx*4 + 0x60], edx
jle 0x5a18e1
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
add ecx, edx
cmp dword [edi + 4], ecx
jl 0x5a1950
mov esi, dword [ebp - 0x24]
mov ecx, dword [esi + 0x48]
mov edx, ecx
and edx, 3
mov ebx, dword [esi + 0x10c]
mov dword [esi + edx*4 + 0x4c], ebx
inc ecx
mov dword [esi + 0x48], ecx
mov ecx, dword [ebp - 0x14]
sub dword [esi + 0xb8], ecx
mov dword [edi + 8], eax
mov edx, dword [ebp - 0x18]
sub edx, dword [edi + eax*4 + 0x58]
mov dword [edi + 0xc], edx
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], 0
mov ecx, esi
mov edi, dword [ebp - 0x10]
mov edx, edi
call fcn.00708180
add eax, edi
mov ecx, eax
cmp eax, dword [esi + 0x40]
jge 0x5a195c
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x24]
jmp 0x5a15b8
mov dword [ebp - 0x28], 0xffffffee
jmp 0x5a16ad
mov esi, dword [ebp - 0x24]
mov dword [esi], 0xf
xor eax, eax
inc eax
mov dword [ebp - 0x2c], eax
mov edi, dword [ebp - 0x14]
jmp 0x5a197c
mov dword [esi], 0xf
xor eax, eax
inc eax
mov dword [ebp - 0x2c], eax
mov ebx, ecx
jmp 0x5a16a1
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x30]
movzx eax, byte [edx + 0xc0]
cmp eax, 2
jae 0x5a19a9
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x44]
jmp 0x5a154e
mov esi, eax
xor edx, edx
inc edx
mov ecx, dword [ebp - 0x34]
shl edx, cl
and edx, 0xfffffffe
imul edi, edx
sub dword [ebp - 0x18], edi
xor ebx, ebx
jmp 0x5a19cf
mov edx, dword [ebp - 0x18]
mov eax, ebx
inc eax
mov dword [ebp - 0x18], edx
mov ebx, eax
cmp esi, eax
je 0x5a1998
cmp dword [ebp - 0x20], ebx
je 0x5a19c0
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + ebx*4 + 0xc4]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
movzx ecx, byte [eax + ecx]
test ecx, ecx
je 0x5a19c0
mov edx, dword [ebp - 0x30]
mov edx, dword [edx + ebx*4 + 0x1c4]
xor edi, edi
inc edi
shl edi, cl
and edi, 0xfffffffe
mov eax, edx
imul edi, dword [edx + 0xc]
mov edx, dword [ebp - 0x18]
sub edx, edi
jge 0x5a19c3
mov edx, dword [ecx*4 + 0x7aa210]
mov edi, dword [ebp - 0x18]
and edx, edi
sar edi, cl
mov ecx, dword [ebp - 0x14]
imul edx, ecx
mov ebx, dword [ebp - 0x34]
add edx, dword [ebx + ecx*4 + 0x20]
mov ecx, ebx
mov dword [ebp - 0x38], edx
mov ebx, edi
mov esi, dword [ebp - 0x24]
jmp 0x5a154e
mov dword [esi], 0xd
mov edi, dword [ebp - 0x14]
not edi
xor eax, eax
inc eax
mov dword [ebp - 0x2c], eax
jmp 0x5a1696
mov dword [ebp - 0x28], 0xfffffff0
jmp 0x5a16ad
mov dword [ebp - 0x28], 0xffffffed
jmp 0x5a16ad
xor eax, eax
cmp dword [esi + 0x10c], 0x79
jge 0x5a15a4
jmp 0x5a16ad
mov dword [esi], 0xe
xor eax, eax
inc eax
mov dword [ebp - 0x2c], eax
xor edi, edi
jmp 0x5a1696
mov ebx, dword [esi + 0x44]
mov ecx, dword [ebp - 0x10]
lea edx, [ecx - 2]
and edx, ebx
dec ecx
and ecx, ebx
mov ebx, dword [esi + 0x60]
movzx edx, byte [ebx + edx]
movzx ebx, byte [ebx + ecx]
mov ecx, dword [esi + 0x6c]
mov dl, byte [ecx + edx + 0x100]
or dl, byte [ecx + ebx]
movzx ecx, dl
mov edx, dword [ebp - 0x30]
mov cl, byte [edx + ecx + 0x80]
jmp 0x5a14db
mov eax, dword [eax + 4]
mov dword [ebp - 0x3c], eax
jmp 0x5a0dd0
mov ecx, esi
call fcn.00514b70
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
cmp ecx, 0x18
jb 0x5a1afe
mov esi, dword [ebp - 0x24]
mov edx, dword [esi + 0x10]
mov edi, dword [edx]
shrd eax, edi, 0x18
mov dword [esi + 8], eax
xor ecx, 0x18
mov dword [esi + 0xc], ecx
add dword [esi + 0x14], 0xfffffffd
add edx, 3
mov dword [esi + 0x10], edx
shr eax, cl
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0xb0], 0
je 0x5a1b28
mov esi, dword [ebp - 0x24]
mov ecx, dword [esi + 0x100]
movzx eax, al
mov bl, byte [ecx + eax*4]
mov dword [ebp - 0x10], ecx
movzx edx, word [ecx + eax*4 + 2]
jmp 0x5a1665
mov ebx, dword [ebp - 0x14]
neg ebx
xor eax, eax
mov esi, dword [ebp - 0x24]
jmp 0x5a1351
mov edx, dword [esi + 0x10]
mov edi, dword [edx]
shrd eax, edi, 0x18
mov dword [esi + 8], eax
xor ecx, 0x18
mov dword [esi + 0xc], ecx
add dword [esi + 0x14], 0xfffffffd
add edx, 3
mov dword [esi + 0x10], edx
jmp 0x5a15e0
mov eax, dword [esi + 0x10]
mov ebx, edi
mov edi, dword [eax]
shrd edx, edi, 0x18
mov dword [esi + 8], edx
mov edi, dword [ebp - 0x10]
add edi, 0xfffffffd
mov dword [ebp - 0x10], edi
mov dword [esi + 0x14], edi
mov edi, ebx
add eax, 3
mov dword [esi + 0x10], eax
xor ecx, 0x18
jmp 0x5a179b