Function at 0x10017260
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xe8
mov eax, dword [0x10136080]
xor eax, esp
mov dword [esp + 0xe4], eax
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x18]
xor esi, esi
mov dword [esp + 0x88], eax
mov dword [esp + 0x44], edx
mov eax, dword [edi]
mov ecx, dword [edi + 0x48]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x54], edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], esi
mov dword [esp + 8], eax
movlpd qword [esp + 0x98], xmm0
movlpd qword [esp + 0x90], xmm0
mov dword [esp + 0x40], esi
mov dword [esp + 0x30], esi
movlpd qword [esp + 0x48], xmm0
mov dword [esp + 0x18], 9
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x10017f6b
cmp dword [edi + 0x14], 2
jne 0x10017f6b
test edx, edx
je 0x10017f6b
mov eax, dword [ecx + 0x34]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1001732c
mov dword [esp + 0x10], eax
cmp dword [ebp + 0x14], esi
ja 0x1001731c
cmp dword [ebp + 0x10], 0xffffffff
jbe 0x1001732c
mov eax, 1
mov dword [ecx + 0x34], 1
mov dword [esp + 0x10], eax
cmp byte [edx], 0x2f
je 0x10017f4e
mov edx, dword [edi + 0x10]
test eax, eax
je 0x1001735e
cmp edx, 0xffffffff
jne 0x10017379
mov dword [edi + 0x1c], 2
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.100b603d
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x10], esi
cmp edx, 0xffff
jne 0x10017379
mov dword [ecx + 0x34], 1
mov dword [esp + 0x10], 1
mov edx, dword [esp + 0x44]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x10017380
sub edx, ecx
mov dword [esp + 0x24], edx
cmp edx, 0xffff
ja 0x10017f4e
mov edx, dword [edi + 0x20]
mov eax, edx
or eax, dword [edi + 0x24]
jne 0x100173ab
xor ecx, ecx
mov dword [esp + 0x1c], ecx
jmp 0x100173bc
mov eax, dword [edi]
lea ecx, [edx - 1]
and eax, ecx
sub edx, eax
and edx, ecx
mov dword [esp + 0x1c], edx
mov ecx, edx
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
mov eax, dword [eax + 4]
add edx, eax
mov dword [esp + 0x80], eax
mov eax, esi
adc eax, 0
add edx, 0x4a
adc eax, 0
test eax, eax
jne 0x10017f31
cmp edx, 0xffffffff
jae 0x10017f31
cmp dword [esp + 0x10], esi
jne 0x1001742a
mov eax, dword [esp + 0x24]
mov edx, 2
mul edx
add eax, ecx
adc edx, esi
add eax, dword [edi]
adc edx, dword [edi + 4]
add eax, dword [esp + 0x80]
adc edx, esi
add eax, 0x472
adc edx, esi
test edx, edx
jne 0x1001741f
cmp eax, 0xffffffff
jbe 0x1001742a
mov eax, dword [esp + 0x14]
mov dword [eax + 0x34], 1
mov ecx, dword [esp + 0x88]
test ecx, ecx
je 0x100174a8
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x88], eax
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x90], ecx
push eax
call fcn.100bd79b
add esp, 8
test eax, eax
je 0x1001746b
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
jmp 0x100174a8
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x58]
shl ecx, 6
add ecx, dword [esp + 0x5c]
sar eax, 1
shl ecx, 5
add ecx, eax
movzx eax, cx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x68]
add eax, 0x301
shl ecx, 4
add eax, ecx
shl eax, 5
add eax, dword [esp + 0x64]
movzx eax, ax
mov dword [esp + 0x34], eax
cmp dword [ebp + 0x14], esi
ja 0x100174b9
jb 0x100174b5
cmp dword [ebp + 0x10], 3
ja 0x100174b9
mov dword [esp + 0x18], esi
mov eax, dword [esp + 8]
mov ecx, edi
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x10]
push eax
call fcn.10017190
add esp, 8
test eax, eax
je 0x10017956
mov ecx, dword [esp + 0xc]
add ecx, dword [esp + 0x1c]
mov edx, dword [esp + 8]
mov eax, dword [ebp + 0x10]
adc edx, esi
or eax, dword [ebp + 0x14]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], edx
je 0x10017522
xor eax, eax
mov dword [esp + 0x88], 8
cmp dword [esp + 0x18], eax
cmovne eax, dword [esp + 0x88]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x14]
xorps xmm0, xmm0
movaps xmmword [esp + 0xc0], xmm0
movq qword [esp + 0xd0], xmm0
mov dword [esp + 0xd8], esi
mov word [esp + 0xdc], si
cmp dword [eax + 0x34], esi
je 0x100176e4
cmp dword [ebp + 0x14], esi
ja 0x1001756c
jb 0x1001755f
cmp dword [ebp + 0x10], 0xffffffff
jae 0x1001756c
test edx, edx
jne 0x1001756c
cmp ecx, 0xffffffff
jb 0x1001761f
lea eax, [esp + 0xa4]
mov dword [esp + 0x40], eax
test edx, edx
jne 0x1001758b
cmp ecx, 0xffffffff
jae 0x1001758b
xor eax, eax
lea ecx, [esp + 0xa8]
jmp 0x100175f5
lea edx, [esp + 0x80]
mov ecx, dword [edx]
mov eax, ecx
mov edx, dword [edx + 4]
shr eax, 8
mov byte [esp + 0xa9], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0xaa], al
mov eax, edx
shr eax, 8
mov byte [esp + 0xad], al
mov eax, edx
mov byte [esp + 0xa8], cl
shr ecx, 0x18
shr eax, 0x10
mov byte [esp + 0xac], dl
shr edx, 0x18
mov byte [esp + 0xab], cl
lea ecx, [esp + 0xb0]
mov byte [esp + 0xae], al
mov eax, 8
mov byte [esp + 0xaf], dl
mov byte [esp + 0xa6], al
shr eax, 8
mov byte [esp + 0xa7], al
lea eax, [esp + 0xa4]
sub ecx, eax
mov word [esp + 0xa4], 1
mov dword [esp + 0x30], ecx
jmp 0x10017621
xor ecx, ecx
push dword [esp + 0x34]
lea edx, [esp + 0xc4]
push dword [esp + 0x3c]
push 0x808
push dword [esp + 0x48]
push 0
push 0
push 0
push 0
push 0
push ecx
push dword [esp + 0x4c]
call fcn.10016c00
add esp, 0x2c
test eax, eax
je 0x10017a80
push 0x1e
mov eax, edx
push eax
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
push eax
push dword [edi + 0x44]
mov eax, dword [edi + 0x3c]
call eax
add esp, 0x14
cmp eax, 0x1e
jne 0x10017956
push dword [esp + 0x24]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
add eax, 0x1e
push dword [esp + 0x48]
adc ecx, esi
mov dword [esp + 0x14], eax
push ecx
push eax
push dword [edi + 0x44]
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x1c], ecx
call eax
mov ecx, dword [esp + 0x38]
add esp, 0x14
cmp eax, ecx
jne 0x10017956
mov eax, dword [esp + 0xc]
lea edx, [esp + 0xa4]
push dword [esp + 0x30]
add eax, ecx
mov ecx, dword [esp + 0xc]
push edx
adc ecx, esi
mov dword [esp + 0x14], eax
push ecx
push eax
push dword [edi + 0x44]
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x1c], ecx
call eax
mov ecx, dword [esp + 0x44]
jmp 0x1001777d
test edx, edx
ja 0x10017f14
jb 0x100176f7
cmp ecx, 0xffffffff
ja 0x10017f14
push dword [esp + 0x34]
lea edx, [esp + 0xc4]
push dword [esp + 0x3c]
push 0x808
push dword [esp + 0x48]
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x4c]
call fcn.10016c00
add esp, 0x2c
test eax, eax
je 0x10017a80
push 0x1e
mov eax, edx
push eax
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
push eax
push dword [edi + 0x44]
mov eax, dword [edi + 0x3c]
call eax
add esp, 0x14
cmp eax, 0x1e
jne 0x10017956
push dword [esp + 0x24]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
add eax, 0x1e
push dword [esp + 0x48]
adc ecx, esi
mov dword [esp + 0x14], eax
push ecx
push eax
push dword [edi + 0x44]
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x1c], ecx
call eax
mov ecx, dword [esp + 0x38]
add esp, 0x14
cmp eax, ecx
jne 0x10017956
add dword [esp + 0xc], ecx
mov eax, dword [ebp + 0x10]
adc dword [esp + 8], esi
or eax, dword [ebp + 0x14]
je 0x10017c76
mov eax, dword [edi + 0x28]
push 0x10000
push 1
push dword [edi + 0x34]
call eax
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
je 0x100179f7
cmp dword [esp + 0x18], esi
jne 0x100179cc
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
push dword [esp + 0x20]
call fcn.100c36c8
mov ecx, eax
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x100179a3
jg 0x100177f8
test esi, esi
jb 0x100179a3
cmp ecx, esi
jne 0x10017800
cmp edx, eax
je 0x10017818
push 0
push eax
push esi
push dword [esp + 0x2c]
call fcn.100bf17d
add esp, 0x10
test eax, eax
jne 0x1001799f
push dword [esp + 0x20]
push 0x10000
push 1
push dword [esp + 0x1c]
call fcn.100bed57
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x1001799f
cmp ecx, 0x10000
ja 0x10017973
add esi, ecx
mov eax, 0
mov dword [esp + 0x18], esi
adc eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
cmp eax, dword [ebp + 0x14]
ja 0x10017973
jb 0x10017870
cmp esi, dword [ebp + 0x10]
ja 0x10017973
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 8]
push ecx
push esi
push eax
mov eax, dword [esp + 0x18]
push eax
push dword [edi + 0x44]
mov eax, dword [edi + 0x3c]
call eax
mov ecx, dword [esp + 0x30]
add esp, 0x14
cmp eax, ecx
jne 0x1001794a
mov eax, dword [esp + 0x28]
mov esi, ecx
mov edx, dword [esp + 0x10]
not eax
cmp ecx, 4
jb 0x10017910
mov edi, ecx
shr edi, 2
nop dword [eax]
movzx ecx, byte [edx]
sub esi, 4
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10105c58]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10105c58]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10105c58]
movzx ecx, byte [edx + 3]
add edx, 4
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10105c58]
mov ecx, esi
sub edi, 1
jne 0x100178b0
mov edi, dword [esp + 0x54]
test ecx, ecx
je 0x1001792a
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10105c58]
sub esi, 1
jne 0x10017910
mov esi, dword [esp + 0x18]
not eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xc]
add eax, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
adc dword [esp + 8], 0
jmp 0x100177d4
mov eax, dword [edi + 0x2c]
push esi
push dword [edi + 0x34]
call eax
add esp, 8
mov dword [edi + 0x1c], 0x13
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.100b603d
mov esp, ebp
pop ebp
ret
push dword [esp + 0x10]
mov eax, dword [edi + 0x2c]
push dword [edi + 0x34]
call eax
add esp, 8
mov dword [edi + 0x1c], 0x14
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.100b603d
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
mov dword [esp + 0x98], esi
mov dword [esp + 0x9c], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x90], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x94], eax
jmp 0x10017c61
mov eax, dword [edi + 0x28]
push 0x4df40
push 1
push dword [edi + 0x34]
call eax
mov edx, eax
add esp, 0xc
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x10017a14
push dword [esp + 0x10]
mov eax, dword [edi + 0x2c]
push dword [edi + 0x34]
call eax
add esp, 8
mov dword [edi + 0x1c], 0x10
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.100b603d
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
mov ecx, 3
mov dword [esp + 0x60], eax
xorps xmm0, xmm0
mov eax, dword [esp + 8]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x18]
cmp ecx, eax
mov dword [esp + 0x58], edi
sbb ecx, ecx
movlpd qword [esp + 0x68], xmm0
and ecx, 0xffffc000
add ecx, 0x4000
or ecx, dword [eax*4 + 0x10105448]
lea eax, [esp + 0x58]
push ecx
push eax
mov ecx, edx
call fcn.10016440
add esp, 8
test eax, eax
je 0x10017a9d
push dword [esp + 0x1c]
mov eax, dword [edi + 0x2c]
push dword [edi + 0x34]
call eax
push dword [esp + 0x18]
mov eax, dword [edi + 0x2c]
push dword [edi + 0x34]
call eax
add esp, 0x10
mov dword [edi + 0x1c], 0x1b
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.100b603d
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x18], eax
nop dword [eax]
push dword [esp + 0x20]
mov dword [esp + 0xc], 0
call fcn.100c36c8
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x54], eax
test ecx, ecx
jl 0x10017b5d
mov eax, dword [esp + 0x18]
jg 0x10017ae2
test eax, eax
jb 0x10017b5d
cmp dword [esp + 0x54], eax
jne 0x10017aec
cmp edx, ecx
je 0x10017b00
push 0
push ecx
push eax
push dword [esp + 0x2c]
call fcn.100bf17d
add esp, 0x10
test eax, eax
jne 0x10017b5d
push dword [esp + 0x20]
push 0x10000
push 1
push dword [esp + 0x1c]
call fcn.100bed57
add esp, 0x10
mov dword [esp + 0xc], eax
cmp eax, 0x10000
jbe 0x10017b63
mov dword [edi + 0x1c], 0x14
push dword [esp + 0x1c]
mov eax, dword [edi + 0x2c]
push dword [edi + 0x34]
call eax
mov eax, dword [edi + 0x2c]
add esp, 8
push dword [esp + 0x10]
push dword [edi + 0x34]
call eax
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.100b603d
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x18]
add ecx, eax
mov eax, 0
mov dword [esp + 0x18], ecx
adc eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
cmp eax, dword [ebp + 0x14]
ja 0x10017b22
jb 0x10017b86
cmp ecx, dword [ebp + 0x10]
ja 0x10017b22
push dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov ecx, esi
call fcn.10014250
mov dword [esp + 0x2c], eax
add esp, 4
mov eax, dword [edi + 0x40]
test eax, eax
je 0x10017bbb
push dword [edi + 0x44]
call eax
mov ecx, dword [esp + 0xc]
add esp, 4
test eax, eax
mov eax, 3
cmovne ecx, eax
jmp 0x10017bbf
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov edx, 4
mov esi, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x54], eax
lea eax, [esp + 0x54]
cmove ecx, edx
mov edx, dword [esp + 0x10]
push ecx
sub esp, 8
mov ecx, esi
push eax
call fcn.100161f0
add esp, 0x10
cmp eax, 1
je 0x10017c09
mov esi, dword [esp + 0x28]
test eax, eax
je 0x10017ab0
mov dword [edi + 0x1c], 0xc
jmp 0x10017b29
mov eax, dword [edi + 0x2c]
push esi
push dword [edi + 0x34]
call eax
mov eax, dword [esp + 0x74]
add esp, 8
mov esi, dword [esp + 0x68]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x20], esi
mov dword [esp + 0x90], esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], edx
mov dword [esp + 8], eax
mov dword [esp + 0x28], esi
push dword [esp + 0x10]
mov eax, dword [edi + 0x2c]
push dword [edi + 0x34]
call eax
mov edx, dword [esp + 0x20]
add esp, 8
jmp 0x10017ca2
mov eax, dword [esp + 0x9c]
mov edx, dword [esp + 0x98]
mov esi, dword [esp + 0x90]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x28]
mov esi, 0x10
mov ecx, eax
mov byte [esp + 0x5c], al
shr ecx, 8
mov byte [esp + 0x5d], cl
mov ecx, eax
shr ecx, 0x10
shr eax, 0x18
cmp dword [esp + 0x40], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0x58], 0x8074b50
mov byte [esp + 0x5e], cl
mov byte [esp + 0x5f], al
jne 0x10017d38
cmp dword [esp + 0x1c], 0
ja 0x10017f14
mov ecx, dword [esp + 0x20]
jb 0x10017cf5
cmp ecx, 0xffffffff
ja 0x10017f14
mov eax, ecx
mov byte [esp + 0x60], cl
shr eax, 8
mov byte [esp + 0x61], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x62], al
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x63], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x65], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x66], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x64], dl
mov byte [esp + 0x67], al
jmp 0x10017dc9
mov ecx, dword [esp + 0x20]
mov esi, 0x18
mov eax, ecx
mov byte [esp + 0x60], cl
shr eax, 8
mov byte [esp + 0x61], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x62], al
mov eax, ecx
mov ecx, dword [esp + 0x1c]
shr eax, 0x18
mov byte [esp + 0x63], al
mov eax, ecx
shr eax, 8
mov byte [esp + 0x65], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x66], al
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x67], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x69], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x6a], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x6b], al
mov byte [esp + 0x64], cl
mov ecx, dword [esp + 0x14]
mov eax, ecx
shr eax, 8
mov byte [esp + 0x6d], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x6e], al
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x68], dl
mov byte [esp + 0x6c], cl
mov byte [esp + 0x6f], al
mov dword [esp + 0x10], esi
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x5c]
push eax
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [edi + 0x3c]
push esi
push dword [edi + 0x44]
call eax
mov ecx, dword [esp + 0x24]
add esp, 0x14
cmp eax, ecx
jne 0x10017f72
add esi, ecx
mov dword [esp + 0xc], esi
adc dword [esp + 8], 0
cmp dword [esp + 0x40], 0
je 0x10017e89
cmp dword [esp + 0x84], 0
ja 0x10017e24
cmp dword [esp + 0x80], 0xffffffff
jae 0x10017e24
mov dword [esp + 0x30], 0
jmp 0x10017e2f
lea eax, [esp + 0x80]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
test ecx, ecx
jne 0x10017e44
cmp eax, 0xffffffff
jae 0x10017e44
xor esi, esi
jmp 0x10017e4b
lea esi, [esp + 0x90]
test ecx, ecx
jne 0x10017e6c
cmp eax, 0xffffffff
jae 0x10017e6c
push dword [esp + 0x30]
xor edx, edx
lea ecx, [esp + 0xa8]
push esi
call fcn.10016b10
add esp, 8
jmp 0x10017e8d
push dword [esp + 0x30]
lea edx, [esp + 0x9c]
push esi
lea ecx, [esp + 0xac]
call fcn.10016b10
add esp, 8
jmp 0x10017e8d
mov eax, dword [esp + 0x30]
sub esp, 0xc
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x50]
push dword [esp + 0x90]
push dword [esp + 0x90]
push dword [esp + 0x48]
push dword [esp + 0x50]
push 0x808
push dword [esp + 0x5c]
push esi
push dword [esp + 0x44]
mov esi, dword [esp + 0x4c]
push esi
push dword [esp + 0x44]
push ecx
sub esp, 8
mov ecx, edi
push eax
push dword [esp + 0x84]
push dword [esp + 0x6c]
call fcn.10016e30
add esp, 0x4c
test eax, eax
je 0x10017f72
mov eax, dword [esp + 0xc]
inc dword [edi + 0x10]
mov dword [edi], eax
mov eax, dword [esp + 8]
mov dword [edi + 4], eax
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.100b603d
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x1c], 0x1d
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.100b603d
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x1c], 0xf
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.100b603d
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x1c], 0x19
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.100b603d
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x1c], 0x18
mov ecx, dword [esp + 0xec]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.100b603d
mov esp, ebp
pop ebp
ret