Function at 0xa17ad0
Capabilities:
Compress data via zlib inflate or deflate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
test edi, edi
jne 0xa17af8
mov eax, 0xfffffffe
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov esi, dword [edi + 0x1c]
test esi, esi
je 0xa17ae6
cmp dword [ebp + 0xc], 4
jg 0xa17ae6
mov eax, dword [ebp + 0xc]
test eax, eax
js 0xa17ae6
mov eax, dword [edi + 0xc]
test eax, eax
je 0xa17cbd
mov eax, dword [edi]
test eax, eax
je 0xa17cb2
cmp dword [ebp + 0xc], 4
setne byte [ebp - 0x4d]
cmp dword [esi + 4], 0x29a
je 0xa17ccf
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0xa17cfc
mov eax, dword [esi + 0x28]
mov edx, dword [ebp + 0xc]
mov dword [esi], edi
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x28], edx
cmp eax, 0x2a
je 0xa17d0e
cmp eax, 0x45
je 0xa17e9a
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x54], ecx
cmp eax, 0x49
je 0xa17f78
cmp eax, 0x5b
je 0xa18175
cmp eax, 0x67
je 0xa18097
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0xa17cdb
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x10]
mov edx, dword [ecx + 0x14]
mov ebx, eax
cmp eax, edx
jbe 0xa17ba1
mov ebx, edx
test ebx, ebx
jne 0xa18306
test eax, eax
je 0xa17e8e
mov eax, dword [edi + 4]
mov edx, dword [esi + 4]
cmp edx, 0x29a
je 0xa18164
test eax, eax
jne 0xa17be1
mov ebx, dword [esi + 0x74]
test ebx, ebx
jne 0xa17be1
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0xa17f71
cmp edx, 0x29a
je 0xa17c26
mov eax, dword [esi + 0x84]
mov edx, dword [ebp + 0xc]
mov dword [esp], esi
lea eax, [eax + eax*2]
mov dword [esp + 4], edx
call dword [eax*4 + 0xc05a68]
mov edx, eax
lea eax, [eax - 2]
cmp eax, 1
jbe 0xa18343
test edx, edx
je 0xa17e20
cmp edx, 2
je 0xa17e20
sub edx, 1
lea esi, [esi]
je 0xa17e39
cmp byte [ebp - 0x4d], 0
jne 0xa17f71
mov edx, dword [esi + 0x18]
mov eax, 1
test edx, edx
jle 0xa17aeb
cmp edx, 2
je 0xa183fe
mov eax, dword [edi + 0x30]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov ebx, eax
shr eax, 0x18
mov byte [ecx + edx], al
mov eax, dword [esi + 8]
shr ebx, 0x10
mov byte [edx + eax + 1], bl
movzx ebx, word [edi + 0x30]
mov ecx, dword [esi + 8]
mov eax, ebx
shr eax, 8
mov byte [edx + ecx + 2], al
mov eax, dword [esi + 8]
mov byte [edx + eax + 3], bl
add edx, 4
mov dword [esi + 0x14], edx
mov ecx, dword [edi + 0x1c]
mov ebx, dword [edi + 0x10]
mov eax, dword [ecx + 0x14]
cmp ebx, eax
jbe 0xa17c90
mov ebx, eax
test ebx, ebx
jne 0xa18396
mov eax, dword [esi + 0x18]
test eax, eax
jle 0xa17ca4
neg eax
mov dword [esi + 0x18], eax
xor eax, eax
cmp dword [esi + 0x14], 0
sete al
jmp 0xa17aeb
mov ebx, dword [edi + 4]
test ebx, ebx
je 0xa17b21
mov eax, dword [0xc07b70]
mov dword [edi + 0x18], eax
mov eax, 0xfffffffe
jmp 0xa17aeb
cmp byte [ebp - 0x4d], 0
je 0xa17b36
jmp 0xa17cbd
mov eax, dword [edi + 4]
test eax, eax
jne 0xa17bb4
mov ebx, dword [ebp - 0x38]
cmp dword [ebp + 0xc], ebx
jg 0xa17bb4
cmp byte [ebp - 0x4d], 0
je 0xa17bb4
mov eax, dword [0xc07b7c]
mov dword [edi + 0x18], eax
mov eax, 0xfffffffb
jmp 0xa17aeb
cmp dword [esi + 0x18], 2
je 0xa184b5
cmp dword [esi + 0x88], 1
mov ecx, dword [esi + 0x30]
jle 0xa17dea
xor eax, eax
shl ecx, 0xc
sub ecx, 0x7800
or ecx, eax
mov eax, dword [esi + 0x6c]
test eax, eax
je 0xa17d3f
or ecx, 0x20
mov eax, ecx
mov edx, 0x8421085
mov ebx, dword [esi + 0x14]
mul edx
mov dword [esi + 4], 0x71
sub ecx, edx
shr ecx, 1
add edx, ecx
shr edx, 4
mov ecx, edx
shl ecx, 5
sub ecx, edx
mov edx, dword [esi + 8]
add ecx, 0x1f
mov eax, ecx
shr eax, 8
mov byte [edx + ebx], al
mov eax, dword [esi + 8]
lea edx, [ebx + 2]
mov byte [ebx + eax + 1], cl
mov eax, dword [esi + 0x6c]
mov dword [ebp - 0x28], edx
mov dword [esi + 0x14], edx
test eax, eax
je 0xa17dc3
mov eax, dword [edi + 0x30]
mov ecx, eax
shr ecx, 0x10
mov dword [ebp - 0x5c], ecx
mov ecx, dword [esi + 8]
shr eax, 0x18
mov byte [ecx + edx], al
mov eax, dword [esi + 8]
movzx edx, byte [ebp - 0x5c]
mov byte [ebx + eax + 3], dl
movzx ecx, word [edi + 0x30]
mov edx, dword [esi + 8]
mov eax, ecx
shr eax, 8
mov byte [ebx + edx + 4], al
mov eax, dword [esi + 8]
mov byte [ebx + eax + 5], cl
lea eax, [ebx + 6]
mov dword [esi + 0x14], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00a19f80
mov dword [edi + 0x30], eax
mov eax, dword [esi + 4]
jmp 0xa17b5b
mov edx, dword [esi + 0x84]
cmp edx, 1
jle 0xa17d28
cmp edx, 5
mov eax, 0x40
jle 0xa17d2a
xor eax, eax
cmp edx, 6
setne al
sub eax, 1
and eax, 0xffffffc0
add eax, 0xc0
jmp 0xa17d2a
mov edx, dword [edi + 0x10]
test edx, edx
jne 0xa17f71
xor eax, eax
mov dword [esi + 0x28], 0xffffffff
jmp 0xa17aeb
cmp dword [ebp + 0xc], 1
je 0xa1837a
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.00a1afb0
cmp dword [ebp + 0xc], 3
je 0xa186e2
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x10]
mov edx, dword [ecx + 0x14]
mov ebx, eax
cmp eax, edx
jbe 0xa17e7e
mov ebx, edx
test ebx, ebx
jne 0xa1862e
test eax, eax
jne 0xa17c26
mov dword [esi + 0x28], 0xffffffff
jmp 0xa17aeb
mov ebx, dword [esi + 0x1c]
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0xa1846d
mov ecx, dword [esi + 0x14]
movzx eax, word [ebx + 0x14]
cmp dword [esi + 0x20], eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x34], ecx
jb 0xa17ef9
jmp 0xa1804b
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebx + 0x10]
mov eax, dword [esi + 0x20]
mov ebx, dword [ebp - 0x54]
mov ecx, dword [esi + 8]
movzx eax, byte [edx + eax]
mov byte [ecx + ebx], al
mov edx, dword [esi + 0x20]
mov ecx, ebx
mov ebx, dword [esi + 0x1c]
add ecx, 1
mov dword [esi + 0x14], ecx
add edx, 1
mov dword [esi + 0x20], edx
movzx eax, word [ebx + 0x14]
cmp eax, edx
jbe 0xa18048
cmp dword [esi + 0xc], ecx
mov eax, ecx
jne 0xa17ec0
mov edx, dword [ebx + 0x2c]
test edx, edx
je 0xa17f10
cmp ecx, dword [ebp - 0x34]
ja 0xa182a9
mov ecx, dword [edi + 0x1c]
mov ebx, dword [edi + 0x10]
mov eax, dword [ecx + 0x14]
cmp ebx, eax
jbe 0xa17f1f
mov ebx, eax
test ebx, ebx
jne 0xa17f3a
mov edx, dword [esi + 0x14]
cmp edx, dword [esi + 0xc]
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x34], edx
je 0xa18465
mov ebx, dword [esi + 0x1c]
jmp 0xa17ec6
mov edx, dword [edi + 0xc]
mov eax, dword [ecx + 0x10]
mov dword [esp + 8], ebx
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [edi + 0x1c]
sub dword [edi + 0x10], ebx
add dword [edi + 0xc], ebx
add dword [edi + 0x14], ebx
sub dword [edx + 0x14], ebx
add dword [edx + 0x10], ebx
mov ebx, dword [edx + 0x14]
test ebx, ebx
jne 0xa17f23
mov eax, dword [edx + 8]
mov dword [edx + 0x10], eax
jmp 0xa17f23
xor eax, eax
jmp 0xa17aeb
mov ebx, dword [esi + 0x1c]
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebp - 0x54]
test edx, edx
mov eax, ecx
jne 0xa17fc4
jmp 0xa18362
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x54], eax
mov eax, dword [esi + 0x20]
mov edx, dword [ebx + 0x1c]
movzx edx, byte [edx + eax]
add eax, 1
mov dword [esi + 0x20], eax
mov eax, dword [esi + 8]
movzx ebx, dl
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x54]
mov byte [eax + ebx], dl
mov eax, ebx
add eax, 1
test dl, dl
mov dword [esi + 0x14], eax
je 0xa1801f
mov ebx, dword [esi + 0x1c]
cmp dword [esi + 0xc], eax
jne 0xa17f90
mov edx, dword [ebx + 0x2c]
test edx, edx
je 0xa17fef
cmp ecx, eax
jae 0xa17fef
sub eax, ecx
mov dword [esp + 8], eax
add ecx, dword [esi + 8]
mov dword [esp + 4], ecx
mov eax, dword [edi + 0x30]
mov dword [esp], eax
call fcn.00a18870
mov dword [edi + 0x30], eax
mov ecx, dword [edi + 0x1c]
mov ebx, dword [edi + 0x10]
mov eax, dword [ecx + 0x14]
cmp ebx, eax
jbe 0xa17ffe
mov ebx, eax
test ebx, ebx
jne 0xa1825c
mov ebx, dword [esi + 0x14]
cmp ebx, dword [esi + 0xc]
mov dword [ebp - 0x54], ebx
mov ecx, ebx
je 0xa184a9
mov ebx, dword [esi + 0x1c]
jmp 0xa17f96
mov dword [ebp - 0x54], eax
mov ebx, dword [esi + 0x1c]
mov ebx, dword [ebx + 0x2c]
test ebx, ebx
je 0xa18035
cmp ecx, dword [ebp - 0x54]
jb 0xa183d4
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0xa182d0
mov eax, dword [esi + 4]
jmp 0xa17b73
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
je 0xa18083
mov eax, dword [ebp - 0x54]
cmp dword [ebp - 0x34], eax
jae 0xa18083
mov edx, dword [ebp - 0x34]
sub eax, edx
mov dword [esp + 8], eax
mov ecx, dword [esi + 8]
add edx, ecx
mov dword [esp + 4], edx
mov eax, dword [edi + 0x30]
mov dword [esp], eax
call fcn.00a18870
mov ebx, dword [esi + 0x1c]
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x54], eax
mov eax, dword [esi + 0x20]
cmp eax, dword [ebx + 0x14]
je 0xa1834f
mov eax, dword [esi + 4]
jmp 0xa17b6a
mov ebx, dword [esi + 0x1c]
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0xa18158
mov ecx, dword [ebp - 0x54]
lea ebx, [ecx + 2]
cmp ebx, dword [esi + 0xc]
jbe 0xa18111
mov ebx, dword [edi + 0x1c]
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x24], ebx
mov ebx, dword [edi + 0x10]
cmp ebx, eax
jbe 0xa180c2
mov ebx, eax
test ebx, ebx
je 0xa17b88
mov ecx, dword [ebp - 0x24]
mov edx, dword [edi + 0xc]
mov eax, dword [ecx + 0x10]
mov dword [esp], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [edi + 0x1c]
sub dword [edi + 0x10], ebx
add dword [edi + 0xc], ebx
add dword [edi + 0x14], ebx
sub dword [edx + 0x14], ebx
mov eax, dword [edx + 0x14]
add dword [edx + 0x10], ebx
test eax, eax
jne 0xa18102
mov eax, dword [edx + 8]
mov dword [edx + 0x10], eax
mov ecx, dword [esi + 0x14]
lea ebx, [ecx + 2]
cmp ebx, dword [esi + 0xc]
ja 0xa17b88
mov edx, dword [esi + 8]
mov eax, dword [edi + 0x30]
mov byte [edx + ecx], al
mov eax, dword [edi + 0x30]
mov edx, dword [esi + 8]
shr eax, 8
mov byte [ecx + edx + 1], al
mov dword [esi + 0x14], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00a18870
mov ecx, dword [esi + 0x14]
mov dword [esi + 4], 0x71
mov dword [edi + 0x30], eax
jmp 0xa17b88
mov dword [esi + 4], 0x71
jmp 0xa17b85
test eax, eax
je 0xa17bc7
lea esi, [esi]
jmp 0xa17cfc
mov ebx, dword [esi + 0x1c]
mov edx, dword [ebx + 0x24]
mov ecx, dword [ebp - 0x54]
test edx, edx
mov eax, ecx
jne 0xa181c4
jmp 0xa1836e
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x54], eax
mov eax, dword [esi + 0x20]
mov edx, dword [ebx + 0x24]
movzx edx, byte [edx + eax]
add eax, 1
mov dword [esi + 0x20], eax
mov eax, dword [esi + 8]
movzx ebx, dl
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 0x54]
mov byte [eax + ebx], dl
mov eax, ebx
add eax, 1
test dl, dl
mov dword [esi + 0x14], eax
je 0xa181ff
mov ebx, dword [esi + 0x1c]
cmp dword [esi + 0xc], eax
jne 0xa18190
mov edx, dword [ebx + 0x2c]
test edx, edx
je 0xa181d8
cmp ecx, eax
jb 0xa182e6
mov ecx, dword [edi + 0x1c]
mov ebx, dword [edi + 0x10]
mov eax, dword [ecx + 0x14]
cmp ebx, eax
jbe 0xa181e7
mov ebx, eax
test ebx, ebx
jne 0xa18225
mov ecx, dword [esi + 0x14]
cmp ecx, dword [esi + 0xc]
mov dword [ebp - 0x54], ecx
je 0xa1838a
mov ebx, dword [esi + 0x1c]
jmp 0xa18196
mov dword [ebp - 0x54], eax
mov ebx, dword [esi + 0x1c]
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0xa18215
cmp ecx, dword [ebp - 0x54]
jb 0xa1847f
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0xa1829a
mov eax, dword [esi + 4]
nop
jmp 0xa17b7c
mov edx, dword [edi + 0xc]
mov eax, dword [ecx + 0x10]
mov dword [esp + 8], ebx
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [edi + 0x1c]
sub dword [edi + 0x10], ebx
add dword [edi + 0xc], ebx
add dword [edi + 0x14], ebx
sub dword [edx + 0x14], ebx
mov eax, dword [edx + 0x14]
add dword [edx + 0x10], ebx
test eax, eax
jne 0xa181eb
mov eax, dword [edx + 8]
mov dword [edx + 0x10], eax
jmp 0xa181eb
mov edx, dword [edi + 0xc]
mov eax, dword [ecx + 0x10]
mov dword [esp + 8], ebx
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [edi + 0x1c]
sub dword [edi + 0x10], ebx
add dword [edi + 0xc], ebx
add dword [edi + 0x14], ebx
sub dword [edx + 0x14], ebx
mov eax, dword [edx + 0x14]
add dword [edx + 0x10], ebx
test eax, eax
jne 0xa18006
mov eax, dword [edx + 8]
mov dword [edx + 0x10], eax
jmp 0xa18006
mov ebx, dword [esi + 0x1c]
mov dword [esi + 4], 0x67
jmp 0xa1809a
sub eax, dword [ebp - 0x34]
mov dword [esp + 8], eax
mov ebx, dword [esi + 8]
add dword [ebp - 0x34], ebx
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [edi + 0x30]
mov dword [esp], eax
call fcn.00a18870
mov dword [edi + 0x30], eax
jmp 0xa17f10
mov ebx, dword [esi + 0x1c]
mov dword [esi + 0x20], 0
mov dword [esi + 4], 0x5b
jmp 0xa18178
sub eax, ecx
mov dword [esp + 8], eax
add ecx, dword [esi + 8]
mov dword [esp + 4], ecx
mov eax, dword [edi + 0x30]
mov dword [esp], eax
call fcn.00a18870
mov dword [edi + 0x30], eax
jmp 0xa181d8
mov edx, dword [edi + 0xc]
mov eax, dword [ecx + 0x10]
mov dword [esp + 8], ebx
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [edi + 0x1c]
sub dword [edi + 0x10], ebx
add dword [edi + 0xc], ebx
add dword [edi + 0x14], ebx
sub dword [edx + 0x14], ebx
mov eax, dword [edx + 0x14]
add dword [edx + 0x10], ebx
test eax, eax
jne 0xa1833b
mov eax, dword [edx + 8]
mov dword [edx + 0x10], eax
mov eax, dword [edi + 0x10]
jmp 0xa17ba9
mov dword [esi + 4], 0x29a
jmp 0xa17c09
mov dword [esi + 0x20], 0
mov dword [esi + 4], 0x49
jmp 0xa17f7b
mov dword [esi + 4], 0x5b
jmp 0xa18178
mov dword [esi + 4], 0x67
jmp 0xa1809a
mov dword [esp], esi
lea esi, [esi]
call fcn.00a1b110
jmp 0xa17e6d
mov dword [ebp - 0x2c], 1
jmp 0xa18202
mov edx, dword [edi + 0xc]
mov eax, dword [ecx + 0x10]
mov dword [esp + 8], ebx
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [edi + 0x1c]
sub dword [edi + 0x10], ebx
add dword [edi + 0xc], ebx
add dword [edi + 0x14], ebx
sub dword [edx + 0x14], ebx
mov eax, dword [edx + 0x14]
add dword [edx + 0x10], ebx
test eax, eax
jne 0xa17c98
mov eax, dword [edx + 8]
mov dword [edx + 0x10], eax
jmp 0xa17c98
sub dword [ebp - 0x54], ecx
mov eax, dword [ebp - 0x54]
mov dword [esp + 8], eax
add ecx, dword [esi + 8]
mov dword [esp + 4], ecx
mov eax, dword [edi + 0x30]
mov dword [esp], eax
call fcn.00a18870
mov edx, dword [esi + 0x14]
mov dword [ebp - 0x54], edx
mov dword [edi + 0x30], eax
jmp 0xa18035
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov eax, dword [edi + 0x30]
mov byte [ecx + edx], al
mov eax, dword [edi + 0x30]
mov ecx, dword [esi + 8]
shr eax, 8
mov byte [edx + ecx + 1], al
mov ecx, dword [esi + 8]
movzx eax, word [edi + 0x32]
mov byte [edx + ecx + 2], al
mov ecx, dword [esi + 8]
movzx eax, byte [edi + 0x33]
mov byte [edx + ecx + 3], al
mov ecx, dword [esi + 8]
mov eax, dword [edi + 8]
mov byte [edx + ecx + 4], al
mov eax, dword [edi + 8]
mov ecx, dword [esi + 8]
shr eax, 8
mov byte [edx + ecx + 5], al
mov ecx, dword [esi + 8]
movzx eax, word [edi + 0xa]
mov byte [edx + ecx + 6], al
mov ecx, dword [esi + 8]
movzx eax, byte [edi + 0xb]
mov byte [edx + ecx + 7], al
add edx, 8
mov dword [esi + 0x14], edx
jmp 0xa17c81
mov ebx, dword [esi + 0x1c]
jmp 0xa1804b
mov edx, dword [esi + 0x14]
mov dword [esi + 4], 0x49
mov dword [ebp - 0x54], edx
jmp 0xa17f7b
sub dword [ebp - 0x54], ecx
mov eax, dword [ebp - 0x54]
mov dword [esp + 8], eax
add ecx, dword [esi + 8]
mov dword [esp + 4], ecx
mov eax, dword [edi + 0x30]
mov dword [esp], eax
call fcn.00a18870
mov edx, dword [esi + 0x14]
mov dword [ebp - 0x54], edx
mov dword [edi + 0x30], eax
jmp 0xa18215
mov dword [ebp - 0x30], 1
jmp 0xa18022
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00a18870
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x4c], ecx
mov dword [edi + 0x30], eax
mov eax, dword [esi + 8]
mov byte [eax + ecx], 0x1f
mov eax, dword [esi + 8]
mov byte [ecx + eax + 1], 0x8b
mov eax, dword [esi + 8]
mov byte [ecx + eax + 2], 8
mov edx, dword [esi + 0x1c]
add ecx, 3
mov dword [ebp - 0x20], ecx
mov dword [esi + 0x14], ecx
test edx, edx
je 0xa1866b
cmp dword [edx + 0x2c], 1
sbb eax, eax
not eax
and eax, 2
cmp dword [edx + 0x10], 1
sbb ecx, ecx
not ecx
and ecx, 4
cmp dword [edx + 0x1c], 1
mov byte [ebp - 0x48], cl
sbb ebx, ebx
not ebx
and ebx, 8
cmp dword [edx + 0x24], 1
mov edx, dword [edx]
sbb ecx, ecx
not ecx
and ecx, 0x10
test edx, edx
setne dl
add eax, edx
mov edx, dword [ebp - 0x20]
add al, byte [ebp - 0x48]
add eax, ebx
mov ebx, dword [esi + 8]
add eax, ecx
mov byte [ebx + edx], al
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 8]
mov ecx, dword [ebp - 0x4c]
mov eax, dword [eax + 4]
mov byte [ecx + edx + 4], al
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 8]
mov eax, dword [eax + 4]
shr eax, 8
mov byte [ecx + edx + 5], al
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 8]
movzx eax, word [eax + 6]
mov byte [ecx + edx + 6], al
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 8]
movzx eax, byte [eax + 7]
mov byte [ecx + edx + 7], al
mov edx, dword [esi + 0x84]
add ecx, 8
mov dword [ebp - 0x1c], ecx
mov eax, 2
mov dword [esi + 0x14], ecx
mov ecx, dword [esi + 8]
cmp edx, 9
je 0xa185b7
cmp dword [esi + 0x88], 1
jle 0xa18730
mov eax, 4
mov ebx, dword [ebp - 0x1c]
mov byte [ecx + ebx], al
mov eax, dword [esi + 0x1c]
mov edx, ebx
add edx, 1
mov ecx, dword [esi + 8]
mov dword [esi + 0x14], edx
mov eax, dword [eax + 0xc]
mov byte [ecx + edx], al
mov ecx, ebx
mov ebx, dword [esi + 0x1c]
add ecx, 2
mov dword [esi + 0x14], ecx
mov eax, dword [ebx + 0x10]
test eax, eax
je 0xa18610
mov eax, dword [ebx + 0x14]
mov edx, dword [esi + 8]
mov byte [edx + ecx], al
mov edx, dword [ebp - 0x1c]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 8]
add edx, 3
mov dword [esi + 0x14], edx
mov eax, dword [eax + 0x14]
shr eax, 8
mov byte [ecx + edx], al
mov eax, dword [ebp - 0x1c]
mov ebx, dword [esi + 0x1c]
add eax, 4
mov dword [esi + 0x14], eax
mov eax, dword [ebx + 0x2c]
test eax, eax
jne 0xa1870c
mov dword [esi + 0x20], 0
mov dword [esi + 4], 0x45
jmp 0xa17e9d
mov edx, dword [edi + 0xc]
mov eax, dword [ecx + 0x10]
mov dword [esp + 8], ebx
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [edi + 0x1c]
sub dword [edi + 0x10], ebx
add dword [edi + 0xc], ebx
add dword [edi + 0x14], ebx
sub dword [edx + 0x14], ebx
mov eax, dword [edx + 0x14]
add dword [edx + 0x10], ebx
test eax, eax
jne 0xa18663
mov eax, dword [edx + 8]
mov dword [edx + 0x10], eax
mov eax, dword [edi + 0x10]
jmp 0xa17e86
mov eax, dword [esi + 8]
mov byte [eax + ecx], 0
mov ebx, dword [ebp - 0x4c]
mov eax, dword [esi + 8]
mov edx, ebx
mov byte [ebx + eax + 4], 0
mov eax, dword [esi + 8]
add edx, 8
mov byte [ebx + eax + 5], 0
mov eax, dword [esi + 8]
mov byte [ebx + eax + 6], 0
mov eax, dword [esi + 8]
mov byte [ebx + eax + 7], 0
mov ecx, dword [esi + 0x84]
mov eax, 2
mov dword [esi + 0x14], edx
mov ebx, dword [esi + 8]
cmp ecx, 9
je 0xa186c2
cmp dword [esi + 0x88], 1
jle 0xa18740
mov eax, 4
mov byte [ebx + edx], al
mov eax, dword [esi + 8]
mov byte [edx + eax + 1], 0xb
lea eax, [edx + 2]
mov dword [esi + 0x14], eax
mov dword [esi + 4], 0x71
mov dword [ebp - 0x54], eax
jmp 0xa17b85
mov eax, dword [esi + 0x4c]
mov edx, dword [esi + 0x44]
mov word [edx + eax*2 - 2], 0
lea eax, [eax + eax - 2]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], edx
call sub.msvcrt.dll_memset
jmp 0xa17e6d
mov eax, dword [esi + 0x14]
mov dword [esp + 8], eax
mov eax, dword [esi + 8]
mov dword [esp + 4], eax
mov eax, dword [edi + 0x30]
mov dword [esp], eax
call fcn.00a18870
mov ebx, dword [esi + 0x1c]
mov dword [edi + 0x30], eax
jmp 0xa1861b
xor eax, eax
sub edx, 1
jg 0xa185b7
jmp 0xa185b2
xor eax, eax
sub ecx, 1
jg 0xa186c2
nop
lea esi, [esi]
jmp 0xa186bd