Function at 0x10017230
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 [0x100a9080]
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 0x10017f3b
cmp dword [edi + 0x14], 2
jne 0x10017f3b
test edx, edx
je 0x10017f3b
mov eax, dword [ecx + 0x34]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x100172fc
mov dword [esp + 0x10], eax
cmp dword [ebp + 0x14], esi
ja 0x100172ec
cmp dword [ebp + 0x10], 0xffffffff
jbe 0x100172fc
mov eax, 1
mov dword [ecx + 0x34], 1
mov dword [esp + 0x10], eax
cmp byte [edx], 0x2f
je 0x10017f1e
mov edx, dword [edi + 0x10]
test eax, eax
je 0x1001732e
cmp edx, 0xffffffff
jne 0x10017349
mov dword [edi + 0x1c], 2
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.10055fba
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x10], esi
cmp edx, 0xffff
jne 0x10017349
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 0x10017350
sub edx, ecx
mov dword [esp + 0x24], edx
cmp edx, 0xffff
ja 0x10017f1e
mov edx, dword [edi + 0x20]
mov eax, edx
or eax, dword [edi + 0x24]
jne 0x1001737b
xor ecx, ecx
mov dword [esp + 0x1c], ecx
jmp 0x1001738c
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 0x10017f01
cmp edx, 0xffffffff
jae 0x10017f01
cmp dword [esp + 0x10], esi
jne 0x100173fa
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 0x100173ef
cmp eax, 0xffffffff
jbe 0x100173fa
mov eax, dword [esp + 0x14]
mov dword [eax + 0x34], 1
mov ecx, dword [esp + 0x88]
test ecx, ecx
je 0x10017478
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.1005d71b
add esp, 8
test eax, eax
je 0x1001743b
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
jmp 0x10017478
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 0x10017489
jb 0x10017485
cmp dword [ebp + 0x10], 3
ja 0x10017489
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.10017160
add esp, 8
test eax, eax
je 0x10017926
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 0x100174f2
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 0x100176b4
cmp dword [ebp + 0x14], esi
ja 0x1001753c
jb 0x1001752f
cmp dword [ebp + 0x10], 0xffffffff
jae 0x1001753c
test edx, edx
jne 0x1001753c
cmp ecx, 0xffffffff
jb 0x100175ef
lea eax, [esp + 0xa4]
mov dword [esp + 0x40], eax
test edx, edx
jne 0x1001755b
cmp ecx, 0xffffffff
jae 0x1001755b
xor eax, eax
lea ecx, [esp + 0xa8]
jmp 0x100175c5
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 0x100175f1
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.10016bd0
add esp, 0x2c
test eax, eax
je 0x10017a50
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 0x10017926
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 0x10017926
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 0x1001774d
test edx, edx
ja 0x10017ee4
jb 0x100176c7
cmp ecx, 0xffffffff
ja 0x10017ee4
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.10016bd0
add esp, 0x2c
test eax, eax
je 0x10017a50
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 0x10017926
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 0x10017926
add dword [esp + 0xc], ecx
mov eax, dword [ebp + 0x10]
adc dword [esp + 8], esi
or eax, dword [ebp + 0x14]
je 0x10017c46
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 0x100179c7
cmp dword [esp + 0x18], esi
jne 0x1001799c
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.10063648
mov ecx, eax
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x10017973
jg 0x100177c8
test esi, esi
jb 0x10017973
cmp ecx, esi
jne 0x100177d0
cmp edx, eax
je 0x100177e8
push 0
push eax
push esi
push dword [esp + 0x2c]
call fcn.1005f0fb
add esp, 0x10
test eax, eax
jne 0x1001796f
push dword [esp + 0x20]
push 0x10000
push 1
push dword [esp + 0x1c]
call fcn.1005ecd7
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x1001796f
cmp ecx, 0x10000
ja 0x10017943
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 0x10017943
jb 0x10017840
cmp esi, dword [ebp + 0x10]
ja 0x10017943
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 0x1001791a
mov eax, dword [esp + 0x28]
mov esi, ecx
mov edx, dword [esp + 0x10]
not eax
cmp ecx, 4
jb 0x100178e0
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 + 0x10090c58]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10090c58]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10090c58]
movzx ecx, byte [edx + 3]
add edx, 4
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10090c58]
mov ecx, esi
sub edi, 1
jne 0x10017880
mov edi, dword [esp + 0x54]
test ecx, ecx
je 0x100178fa
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10090c58]
sub esi, 1
jne 0x100178e0
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 0x100177a4
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.10055fba
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.10055fba
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 0x10017c31
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 0x100179e4
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.10055fba
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 + 0x10090448]
lea eax, [esp + 0x58]
push ecx
push eax
mov ecx, edx
call fcn.10016410
add esp, 8
test eax, eax
je 0x10017a6d
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.10055fba
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.10063648
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x54], eax
test ecx, ecx
jl 0x10017b2d
mov eax, dword [esp + 0x18]
jg 0x10017ab2
test eax, eax
jb 0x10017b2d
cmp dword [esp + 0x54], eax
jne 0x10017abc
cmp edx, ecx
je 0x10017ad0
push 0
push ecx
push eax
push dword [esp + 0x2c]
call fcn.1005f0fb
add esp, 0x10
test eax, eax
jne 0x10017b2d
push dword [esp + 0x20]
push 0x10000
push 1
push dword [esp + 0x1c]
call fcn.1005ecd7
add esp, 0x10
mov dword [esp + 0xc], eax
cmp eax, 0x10000
jbe 0x10017b33
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.10055fba
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 0x10017af2
jb 0x10017b56
cmp ecx, dword [ebp + 0x10]
ja 0x10017af2
push dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov ecx, esi
call fcn.10014220
mov dword [esp + 0x2c], eax
add esp, 4
mov eax, dword [edi + 0x40]
test eax, eax
je 0x10017b8b
push dword [edi + 0x44]
call eax
mov ecx, dword [esp + 0xc]
add esp, 4
test eax, eax
mov eax, 3
cmovne ecx, eax
jmp 0x10017b8f
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.100161c0
add esp, 0x10
cmp eax, 1
je 0x10017bd9
mov esi, dword [esp + 0x28]
test eax, eax
je 0x10017a80
mov dword [edi + 0x1c], 0xc
jmp 0x10017af9
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 0x10017c72
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 0x10017d08
cmp dword [esp + 0x1c], 0
ja 0x10017ee4
mov ecx, dword [esp + 0x20]
jb 0x10017cc5
cmp ecx, 0xffffffff
ja 0x10017ee4
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 0x10017d99
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 0x10017f42
add esi, ecx
mov dword [esp + 0xc], esi
adc dword [esp + 8], 0
cmp dword [esp + 0x40], 0
je 0x10017e59
cmp dword [esp + 0x84], 0
ja 0x10017df4
cmp dword [esp + 0x80], 0xffffffff
jae 0x10017df4
mov dword [esp + 0x30], 0
jmp 0x10017dff
lea eax, [esp + 0x80]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
test ecx, ecx
jne 0x10017e14
cmp eax, 0xffffffff
jae 0x10017e14
xor esi, esi
jmp 0x10017e1b
lea esi, [esp + 0x90]
test ecx, ecx
jne 0x10017e3c
cmp eax, 0xffffffff
jae 0x10017e3c
push dword [esp + 0x30]
xor edx, edx
lea ecx, [esp + 0xa8]
push esi
call fcn.10016ae0
add esp, 8
jmp 0x10017e5d
push dword [esp + 0x30]
lea edx, [esp + 0x9c]
push esi
lea ecx, [esp + 0xac]
call fcn.10016ae0
add esp, 8
jmp 0x10017e5d
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.10016e00
add esp, 0x4c
test eax, eax
je 0x10017f42
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.10055fba
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.10055fba
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.10055fba
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.10055fba
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.10055fba
mov esp, ebp
pop ebp
ret