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

Disassembly:
sub esp, 0x128
mov eax, dword [0x101f8740]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x14c]
xor cl, cl
mov edx, dword [esp + 0x154]
xor ch, ch
mov ebx, dword [esp + 0x13c]
mov dword [esp + 0x30], eax
xor eax, eax
mov byte [esp + 0x22], cl
mov byte [esp + 0x1b], ch
mov byte [esp + 0x23], cl
mov byte [esp + 0x13], cl
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x64], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x54], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x74], 0
mov ebp, dword [esp + 0x140]
mov dword [esp + 0x44], ebp
mov esi, dword [esp + 0x144]
mov dword [esp + 0x28], esi
mov edi, dword [esp + 0x148]
lea eax, [ecx + esi]
mov dword [esp + 0x78], eax
mov esi, eax
mov dword [esp + 0x40], esi
lea eax, [esi - 1]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x28]
test ebx, ebx
jne 0x1016e678
test ebp, ebp
jne 0x1016e678
test eax, eax
jne 0x1016e678
cmp edi, 0xfffffc19
jne 0x1016e678
cmp ecx, edi
jne 0x1016e678
push eax
push eax
push eax
push eax
push eax
push eax
push eax
call fcn.10160490
add esp, 0x1c
jmp 0x1016f580
test dword [esp + 0x150], 0xe20f5a6f
je 0x1016e68f
mov eax, 0xfffffffd
jmp 0x1016f580
test ebx, ebx
je 0x1016f57b
test eax, eax
je 0x1016f57b
mov eax, dword [esp + 0x158]
test edx, edx
jne 0x1016e6b2
test eax, eax
jg 0x1016f57b
test eax, eax
jns 0x1016e6c0
mov eax, 0xfffffff1
jmp 0x1016f580
test edi, edi
jns 0x1016e6ce
mov eax, 0xffffffe0
jmp 0x1016f580
test ecx, ecx
js 0x1016f574
cmp ecx, edi
jg 0x1016f574
mov ecx, dword [ebx]
cmp ecx, 0x50435245
je 0x1016e700
cmp ecx, 0x45524350
mov eax, 0xfffffffc
mov edx, 0xffffffe3
cmove eax, edx
jmp 0x1016f580
test byte [ebx + 0xc], 1
jne 0x1016e710
mov eax, 0xffffffe4
jmp 0x1016f580
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x150]
and eax, 0x800
mov dword [esp + 0x3c], eax
mov eax, 0
setne al
mov dword [esp + 0x34], eax
mov dword [esp + 0xc8], eax
test ecx, 0x8000000
je 0x1016e745
mov eax, 2
jmp 0x1016e74d
mov eax, ecx
shr eax, 0xf
and eax, 1
cmp dword [esp + 0x3c], 0
mov dword [esp + 0x104], eax
je 0x1016e7e4
test ecx, 0x2000
jne 0x1016e7e4
lea eax, [esp + 0x48]
push eax
push edi
push dword [esp + 0x30]
call fcn.1016f940
add esp, 0xc
test eax, eax
je 0x1016e7b6
cmp dword [esp + 0x158], 2
jl 0x1016e794
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x48]
mov dword [edx], ecx
mov dword [edx + 4], eax
cmp eax, 5
jg 0x1016e7ac
cmp dword [esp + 0x104], 1
mov eax, 0xffffffe7
jg 0x1016f580
mov eax, 0xfffffff6
jmp 0x1016f580
mov eax, dword [esp + 0x30]
test eax, eax
jle 0x1016e7d9
cmp eax, edi
jge 0x1016e7d9
mov ecx, dword [esp + 0x28]
mov al, byte [eax + ecx]
and al, 0xc0
cmp al, 0x80
jne 0x1016e7d9
mov eax, 0xfffffff5
jmp 0x1016f580
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x150]
test ebp, ebp
je 0x1016e823
mov eax, dword [ebp]
and al, 0x48
cmp al, 0x40
jne 0x1016e823
cmp dword [ebp + 0x1c], 0
je 0x1016e823
test ecx, 0xe7ff5a7f
jne 0x1016e823
push dword [esp + 0x158]
push edx
push ecx
push dword [esp + 0x3c]
push edi
push dword [esp + 0x3c]
push ebp
call fcn.10170340
add esp, 0x1c
cmp eax, 0xffffffe1
jne 0x1016f580
movzx eax, word [ebx + 0x22]
mov edx, 0x989680
movzx ebp, word [ebx + 0x24]
add eax, ebx
mov dword [esp + 0xac], eax
movzx eax, word [ebx + 0x26]
mov ebx, edx
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xa0], ebp
mov dword [esp + 0x50], 0
mov dword [esp + 0x80], edx
mov eax, dword [eax + 0x30]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x84], ebx
mov dword [esp + 0x124], 0
test eax, eax
je 0x1016e8d0
mov ecx, dword [eax]
test cl, 1
je 0x1016e893
mov esi, dword [eax + 4]
mov dword [esp + 0x50], esi
mov esi, dword [esp + 0x40]
test cl, 2
je 0x1016e8a2
mov edx, dword [eax + 8]
mov dword [esp + 0x80], edx
test cl, 0x10
je 0x1016e8b1
mov ebx, dword [eax + 0x14]
mov dword [esp + 0x84], ebx
test cl, 4
je 0x1016e8c4
mov eax, dword [eax + 0xc]
mov dword [esp + 0x124], eax
mov eax, dword [esp + 0x44]
test cl, 8
je 0x1016e8d0
mov eax, dword [eax + 0x10]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
test ecx, 0x2000
je 0x1016e8f1
mov eax, dword [eax + 0x10]
cmp eax, edx
jae 0x1016e8ed
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x14]
test ecx, 0x4000
je 0x1016e907
mov eax, dword [eax + 0x14]
cmp eax, ebx
jae 0x1016e907
mov dword [esp + 0x84], eax
mov ebx, dword [esp + 0x14]
mov ecx, 0x101bd4a8
mov eax, dword [esp + 0x2c]
test eax, eax
mov dword [esp + 0xa8], 0
cmovne ecx, eax
mov dword [esp + 0xe0], 0
mov edx, dword [ebx + 8]
mov eax, edx
or eax, dword [esp + 0x150]
shr eax, 4
and eax, 1
mov dword [esp + 0xb4], ecx
mov dword [esp + 0x70], eax
mov eax, dword [ebx + 0xc]
shr eax, 8
and eax, 1
mov dword [esp + 0x12c], 0
mov dword [esp + 0x60], eax
mov eax, edx
shr eax, 0x12
and eax, 1
mov dword [esp + 0x128], 0
mov dword [esp + 0x6c], eax
movzx eax, word [ebx + 0x26]
imul ebp, eax
movzx eax, word [ebx + 0x22]
mov dword [esp + 0x120], 0
add ebp, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x110], eax
add ebp, ebx
mov ebx, dword [esp + 0x28]
mov eax, edx
shr eax, 5
and eax, 1
mov dword [esp + 0xec], ebp
mov dword [esp + 0xd4], eax
mov ebp, ebx
mov eax, edx
mov dword [esp + 0xf0], ebp
shr eax, 0x1d
add ebx, edi
mov edi, dword [esp + 0x150]
and eax, 1
mov dword [esp + 0xd0], eax
mov eax, edx
shr eax, 0x19
and eax, 1
mov dword [esp + 0x1c], ebx
mov dword [esp + 0xcc], eax
mov eax, edi
shr eax, 7
and eax, 1
mov dword [esp + 0xf4], ebx
mov dword [esp + 0xc0], eax
mov eax, edi
shr eax, 8
and eax, 1
mov dword [esp + 0xc4], eax
mov eax, edi
shr eax, 0xa
and eax, 1
mov dword [esp + 0xd8], eax
mov eax, edi
shr eax, 0x1c
and eax, 1
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 0xc]
mov eax, edi
shr eax, 0xc
and eax, 1
mov dword [esp + 0xe8], eax
lea eax, [ecx + 0x100]
mov dword [esp + 0xb8], eax
lea eax, [ecx + 0x340]
mov ecx, dword [esp + 0x150]
mov dword [esp + 0xbc], eax
mov eax, ecx
and eax, 0x1800000
je 0x1016eadf
cmp eax, 0x800000
je 0x1016ead2
cmp eax, 0x1000000
jne 0x1016eb6f
mov dword [esp + 0xe4], 0
test ecx, 0x700000
mov eax, ecx
cmove eax, edx
and eax, 0x700000
cmp eax, 0x300000
ja 0x1016eb61
je 0x1016eb3e
test eax, eax
je 0x1016eb1b
cmp eax, 0x100000
je 0x1016eaf8
cmp eax, 0x200000
jne 0x1016eb6f
mov dword [esp + 0x94], 0
jmp 0x1016eb24
mov dword [esp + 0xe4], 1
jmp 0x1016ea8e
test edx, 0x1800000
je 0x1016ea83
mov eax, edx
shr eax, 0x17
and eax, 1
mov dword [esp + 0xe4], eax
jmp 0x1016ea8e
xor ecx, ecx
mov eax, 0xd
mov dword [esp + 0x94], ecx
mov ecx, 1
mov dword [esp + 0x98], ecx
mov byte [esp + 0xb0], al
jmp 0x1016eb8c
xor ecx, ecx
mov dword [esp + 0x94], ecx
mov eax, 0xa
mov ecx, 1
mov dword [esp + 0x98], ecx
mov byte [esp + 0xb0], al
jmp 0x1016eb8c
mov ecx, 2
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], ecx
mov word [esp + 0xb0], 0xa0d
jmp 0x1016eb8c
cmp eax, 0x400000
je 0x1016eb80
cmp eax, 0x500000
je 0x1016eb79
mov eax, 0xffffffe9
jmp 0x1016f580
mov ecx, 2
jmp 0x1016eb85
mov ecx, 1
mov dword [esp + 0x94], ecx
cmp dword [esp + 0x104], 0
je 0x1016eba8
test edi, 0x200
je 0x1016eba8
mov eax, 0xfffffff3
jmp 0x1016f580
mov eax, 0xaaaaaaab
mul dword [esp + 0x158]
mov eax, 0x55555556
shr edx, 1
lea edi, [edx + edx*2]
lea ecx, [edi + edi]
mov dword [esp + 0x4c], edi
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x14]
movzx eax, word [eax + 0x20]
test ax, ax
je 0x1016ec6d
mov ecx, eax
mov eax, 0x55555556
imul edi
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jl 0x1016ec6d
inc ecx
lea ebx, [ecx + ecx*2]
lea eax, [ebx*4]
mov dword [esp + 0x4c], ebx
push eax
call dword [0x101f84c8]
mov edi, eax
add esp, 4
mov dword [esp + 0x88], edi
test edi, edi
jne 0x1016ec25
lea eax, [edi - 6]
jmp 0x1016f580
mov ebp, dword [esp + 0xf0]
lea ecx, [ebx + ebx]
mov eax, 0x55555556
mov dword [esp + 0x8c], ebx
mov ebx, dword [esp + 0xf4]
imul ecx
mov dword [esp + 0x38], edi
mov ecx, edi
mov eax, edx
mov dword [esp + 0x10c], 0
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x90], eax
jmp 0x1016ecbe
mov eax, dword [esp + 0x24]
mov edi, eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], edi
mov dword [esp + 0x2c], 0
lea ecx, [eax + eax]
mov dword [esp + 0x10c], 0
mov eax, 0x55555556
imul ecx
mov ecx, edi
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x90], eax
test ecx, ecx
je 0x1016ed52
mov eax, dword [esp + 0x4c]
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x14]
mov edx, ecx
movzx eax, word [eax + 0x1e]
shl eax, 2
sub edx, eax
mov eax, dword [esp + 0x38]
add eax, 8
cmp edx, eax
cmovb edx, eax
sub ecx, 4
cmp ecx, edx
jb 0x1016ed12
nop word [eax + eax]
mov dword [ecx], 0xffffffff
sub ecx, 4
cmp ecx, edx
jae 0x1016ecf0
mov ebx, dword [esp + 0xf4]
mov ebp, dword [esp + 0xf0]
mov edi, dword [esp + 0x88]
mov eax, dword [esp + 0x158]
test eax, eax
jle 0x1016ed38
mov dword [edi], 0xffffffff
mov ebx, dword [esp + 0xf4]
mov ebp, dword [esp + 0xf0]
mov edi, dword [esp + 0x88]
cmp eax, 1
jle 0x1016ed52
mov dword [edi + 4], 0xffffffff
mov ebx, dword [esp + 0xf4]
mov ebp, dword [esp + 0xf0]
cmp dword [esp + 0x70], 0
mov edx, dword [esp + 0x14]
jne 0x1016edac
mov eax, dword [edx + 0xc]
test al, 0x10
je 0x1016ed90
mov ch, byte [edx + 0x18]
mov dword [esp + 0x54], 1
mov cl, ch
mov byte [esp + 0x1b], ch
mov byte [esp + 0x22], cl
test al, 0x20
je 0x1016edac
mov eax, dword [esp + 0xb8]
movzx ecx, ch
mov ch, byte [ecx + eax]
mov byte [esp + 0x1b], ch
jmp 0x1016edac
cmp dword [esp + 0x60], 0
jne 0x1016edac
mov eax, dword [esp + 0x50]
test eax, eax
je 0x1016edac
test byte [eax + 4], 1
je 0x1016edac
add eax, 8
mov dword [esp + 0x64], eax
mov eax, dword [edx + 0xc]
test al, 0x40
je 0x1016eddd
mov ch, byte [edx + 0x1a]
mov dword [esp + 0x68], 1
mov cl, ch
mov byte [esp + 0x13], ch
mov byte [esp + 0x23], cl
test al, al
jns 0x1016eddd
mov eax, dword [esp + 0xb8]
movzx ecx, ch
mov al, byte [ecx + eax]
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x6c], 0
mov edi, eax
je 0x1016ef2f
cmp dword [esp + 0x3c], 0
mov edi, esi
je 0x1016ee9d
cmp esi, ebx
jae 0x1016ef2f
mov eax, dword [esp + 0x94]
test eax, eax
je 0x1016ee47
cmp edi, ebx
jae 0x1016ee3b
push dword [esp + 0x34]
lea ecx, [esp + 0x9c]
push ecx
push ebx
push eax
push edi
call fcn.1016f5b0
mov ebx, dword [esp + 0x108]
add esp, 0x14
test eax, eax
je 0x1016ee3b
mov eax, 1
jmp 0x1016ee3d
xor eax, eax
test eax, eax
jne 0x1016ef24
jmp 0x1016ee7a
mov ecx, dword [esp + 0x98]
mov eax, ebx
sub eax, ecx
cmp edi, eax
ja 0x1016ee7a
mov al, byte [edi]
cmp al, byte [esp + 0xb0]
jne 0x1016ee7a
cmp ecx, 1
je 0x1016ef24
mov al, byte [edi + 1]
cmp al, byte [esp + 0xb1]
je 0x1016ef24
mov ecx, dword [esp + 0x1c]
inc edi
cmp edi, ecx
jae 0x1016ee90
mov al, byte [edi]
and al, 0xc0
cmp al, 0x80
jne 0x1016ee90
inc edi
cmp edi, ecx
jb 0x1016ee83
cmp edi, ebx
jb 0x1016ee03
jmp 0x1016ef24
cmp esi, ebx
jae 0x1016ef2f
mov esi, dword [esp + 0x98]
nop dword [eax]
mov eax, dword [esp + 0x94]
test eax, eax
je 0x1016eef7
cmp edi, ebx
jae 0x1016eeef
push dword [esp + 0x34]
lea ecx, [esp + 0x9c]
push ecx
push ebx
push eax
push edi
call fcn.1016f5b0
mov ebx, dword [esp + 0x108]
add esp, 0x14
mov esi, dword [esp + 0x98]
test eax, eax
je 0x1016eeef
mov eax, 1
jmp 0x1016eef1
xor eax, eax
test eax, eax
jne 0x1016ef20
jmp 0x1016ef1b
mov eax, ebx
sub eax, esi
cmp edi, eax
ja 0x1016ef1b
mov al, byte [edi]
cmp al, byte [esp + 0xb0]
jne 0x1016ef1b
cmp esi, 1
je 0x1016ef20
mov al, byte [edi + 1]
cmp al, byte [esp + 0xb1]
je 0x1016ef20
inc edi
cmp edi, ebx
jb 0x1016eeb0
mov esi, dword [esp + 0x40]
mov ebp, dword [esp + 0xf0]
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 8]
or eax, dword [esp + 0x150]
test eax, 0x4000000
jne 0x1016f11e
cmp dword [esp + 0x54], 0
je 0x1016ef92
cmp esi, edi
jae 0x1016f11e
mov cl, byte [esp + 0x22]
mov dl, byte [esp + 0x1b]
cmp cl, dl
je 0x1016ef80
nop
mov al, byte [esi]
cmp al, cl
je 0x1016f11e
cmp al, dl
je 0x1016f11e
inc esi
cmp esi, edi
jb 0x1016ef60
jmp 0x1016f11e
cmp byte [esi], cl
je 0x1016f11e
inc esi
cmp esi, edi
jb 0x1016ef80
jmp 0x1016f11e
cmp dword [esp + 0x60], 0
je 0x1016f0f6
mov eax, dword [esp + 0x30]
add eax, ebp
cmp esi, eax
jbe 0x1016f11e
cmp esi, edi
jae 0x1016f0d3
cmp dword [esp + 0x3c], 0
je 0x1016f060
nop
mov eax, dword [esp + 0x94]
test eax, eax
je 0x1016f004
cmp esi, ebp
jbe 0x1016eff8
push dword [esp + 0x34]
lea ecx, [esp + 0x9c]
push ecx
push ebp
push eax
push esi
call fcn.1016f740
mov ebp, dword [esp + 0x104]
add esp, 0x14
test eax, eax
je 0x1016eff8
mov eax, 1
jmp 0x1016effa
xor eax, eax
test eax, eax
jne 0x1016f0d3
jmp 0x1016f03a
mov edx, dword [esp + 0x98]
lea eax, [edx + ebp]
cmp esi, eax
jb 0x1016f03a
mov ecx, esi
sub ecx, edx
mov al, byte [ecx]
cmp al, byte [esp + 0xb0]
jne 0x1016f03a
cmp edx, 1
je 0x1016f0d3
mov al, byte [ecx + 1]
cmp al, byte [esp + 0xb1]
je 0x1016f0d3
inc esi
cmp esi, edi
jae 0x1016f0d3
mov al, byte [esi]
and al, 0xc0
cmp al, 0x80
jne 0x1016efc0
inc esi
cmp esi, edi
jb 0x1016f043
jmp 0x1016f0d3
mov eax, dword [esp + 0x94]
test eax, eax
je 0x1016f0a0
cmp esi, ebp
jbe 0x1016f098
push dword [esp + 0x34]
lea ecx, [esp + 0x9c]
push ecx
push ebp
push eax
push esi
call fcn.1016f740
mov ebp, dword [esp + 0x104]
add esp, 0x14
test eax, eax
je 0x1016f098
mov eax, 1
jmp 0x1016f09a
xor eax, eax
test eax, eax
jne 0x1016f0d3
jmp 0x1016f0ce
mov edx, dword [esp + 0x98]
lea eax, [edx + ebp]
cmp esi, eax
jb 0x1016f0ce
mov ecx, esi
sub ecx, edx
mov al, byte [ecx]
cmp al, byte [esp + 0xb0]
jne 0x1016f0ce
cmp edx, 1
je 0x1016f0d3
mov al, byte [ecx + 1]
cmp al, byte [esp + 0xb1]
je 0x1016f0d3
inc esi
cmp esi, edi
jb 0x1016f060
cmp byte [esi - 1], 0xd
jne 0x1016f11e
mov eax, dword [esp + 0x94]
cmp eax, 1
je 0x1016f0ea
cmp eax, 2
jne 0x1016f11e
cmp esi, edi
jae 0x1016f11e
cmp byte [esi], 0xa
jne 0x1016f11e
inc esi
jmp 0x1016f11e
mov ebx, dword [esp + 0x64]
test ebx, ebx
je 0x1016f11e
cmp esi, edi
jae 0x1016f11e
movzx edx, byte [esi]
mov eax, 1
mov ecx, edx
shr edx, 3
and ecx, 7
shl eax, cl
test byte [edx + ebx], al
jne 0x1016f11e
inc esi
cmp esi, edi
jb 0x1016f102
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx + 8]
or eax, dword [esp + 0x150]
test eax, 0x4000000
jne 0x1016f1d0
cmp dword [esp + 0x104], 0
jne 0x1016f1d0
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x1c]
test ecx, ecx
je 0x1016f160
test byte [ecx + 4], 2
je 0x1016f160
mov eax, ebx
sub eax, esi
cmp eax, dword [ecx + 0x28]
jb 0x1016f1a7
cmp dword [esp + 0x68], 0
je 0x1016f1cc
mov eax, ebx
sub eax, esi
cmp eax, 0x3e8
jge 0x1016f1cc
mov eax, dword [esp + 0x54]
lea ecx, [eax + esi]
cmp ecx, dword [esp + 0x58]
jbe 0x1016f1cc
cmp ecx, ebx
jae 0x1016f1a7
mov ah, byte [esp + 0x23]
cmp ah, byte [esp + 0x13]
je 0x1016f1b0
nop dword [eax]
mov al, byte [ecx]
mov edx, ecx
inc ecx
mov dword [esp + 0x58], edx
cmp al, ah
je 0x1016f1c8
cmp al, byte [esp + 0x13]
je 0x1016f1c8
cmp ecx, ebx
jb 0x1016f190
xor ebp, ebp
jmp 0x1016f3b9
mov al, byte [ecx]
mov edx, ecx
mov dword [esp + 0x58], ecx
inc ecx
cmp al, ah
je 0x1016f1c8
cmp ecx, ebx
jb 0x1016f1b0
xor ebp, ebp
jmp 0x1016f3b9
cmp edx, ebx
jae 0x1016f1a7
mov ebx, dword [esp + 0x14]
push 0
push 0
lea eax, [esp + 0x84]
mov dword [esp + 0x100], esi
push eax
push 2
push esi
push dword [esp + 0x100]
mov dword [esp + 0x118], esi
push esi
mov dword [esp + 0x98], 0
mov dword [esp + 0x130], 0
mov dword [esp + 0x124], 0
mov dword [esp + 0xc0], 0
call fcn.10160490
add esp, 0x1c
mov ebp, eax
cmp dword [esp + 0xe0], 0
je 0x1016f24b
cmp dword [esp + 0x5c], 0
jne 0x1016f24b
mov eax, dword [esp + 0x100]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x74], esi
test ebp, ebp
jg 0x1016f3ec
je case.0x1016f264.995
lea eax, [ebp + 0x3e4]
cmp eax, 4
ja case.default.0x1016f264
jmp dword [eax*4 + 0x1016f59c]
mov eax, dword [esp + 0xa4]
mov edi, esi
mov dword [esp + 0xa8], eax
jmp 0x1016f2b2
mov edi, dword [esp + 0xf8]
cmp edi, esi
ja 0x1016f2b2
cmp dword [esp + 0x3c], 0
lea edi, [esi + 1]
mov dword [esp + 0xa8], 0
je 0x1016f2b2
mov ecx, dword [esp + 0x1c]
cmp edi, ecx
jae 0x1016f2b2
mov al, byte [edi]
and al, 0xc0
cmp al, 0x80
jne 0x1016f2b2
inc edi
cmp edi, ecx
jb 0x1016f2a5
mov edx, dword [esp + 0x94]
xor ebp, ebp
mov ebx, dword [esp + 0xf4]
cmp dword [esp + 0x6c], ebp
je 0x1016f30c
test edx, edx
je 0x1016f382
cmp esi, ebx
jae 0x1016f2fb
push dword [esp + 0x34]
lea eax, [esp + 0x9c]
push eax
push ebx
push edx
push esi
call fcn.1016f5b0
mov ebx, dword [esp + 0x108]
add esp, 0x14
test eax, eax
je 0x1016f2fb
lea eax, [ebp + 1]
jmp 0x1016f2fd
xor eax, eax
test eax, eax
jne 0x1016f3b5
mov edx, dword [esp + 0x94]
mov ecx, dword [esp + 0x98]
mov esi, edi
mov dword [esp + 0x40], esi
cmp dword [esp + 0x70], ebp
jne 0x1016f3b5
mov eax, dword [esp + 0x1c]
cmp edi, eax
ja 0x1016f466
cmp edi, dword [esp + 0x78]
jbe 0x1016f367
cmp byte [edi - 1], 0xd
jne 0x1016f367
cmp edi, eax
jae 0x1016f367
cmp byte [edi], 0xa
jne 0x1016f367
mov ebp, dword [esp + 0x14]
test dword [ebp + 0xc], 0x800
jne 0x1016f367
cmp edx, 1
je 0x1016f360
cmp edx, 2
je 0x1016f360
cmp ecx, 2
jne 0x1016f367
lea esi, [edi + 1]
mov dword [esp + 0x40], esi
mov ebp, dword [esp + 0xf0]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x128], 0
jmp 0x1016ede1
mov ecx, dword [esp + 0x98]
mov eax, ebx
sub eax, ecx
cmp esi, eax
ja 0x1016f313
mov al, byte [esi]
cmp al, byte [esp + 0xb0]
jne 0x1016f313
cmp ecx, 1
je 0x1016f3b5
mov al, byte [esi + 1]
cmp al, byte [esp + 0xb1]
jne 0x1016f313
mov ebx, dword [esp + 0x1c]
cmp dword [esp + 0x2c], 0
je 0x1016f3d0
push dword [esp + 0x88]
call dword [0x101f84cc]
add esp, 4
test ebp, ebp
je 0x1016f46d
cmp ebp, 0xfffffff4
je 0x1016f46d
mov eax, ebp
jmp 0x1016f580
xor ebp, ebp
jmp 0x1016f3b5
cmp ebp, 1
je 0x1016f3f9
cmp ebp, 0xfffffc19
jne 0x1016f3b5
cmp dword [esp + 0x2c], 0
mov edi, dword [esp + 0x48]
je 0x1016f44a
mov esi, dword [esp + 0x88]
cmp edi, 4
jl 0x1016f42c
lea eax, [edi*4 - 8]
push eax
lea eax, [esi + 8]
push eax
mov eax, dword [esp + 0x2c]
add eax, 8
push eax
call fcn.10174950
add esp, 0xc
cmp dword [esp + 0x108], edi
jle 0x1016f440
or dword [esp + 0x10c], 0x10000
push esi
call dword [0x101f84cc]
add esp, 4
test dword [esp + 0x10c], 0x10000
mov ecx, dword [esp + 0x108]
je 0x1016f4d1
cmp ecx, edi
jl 0x1016f4d1
xor esi, esi
jmp 0x1016f4da
mov ebx, eax
jmp 0x1016f3b9
mov esi, dword [esp + 0x74]
test esi, esi
je 0x1016f4a7
mov ecx, dword [esp + 0x158]
cmp ecx, 1
jle 0x1016f4a0
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
sub ebx, edx
mov ebp, dword [esp + 0x5c]
sub ebp, edx
mov dword [eax], ebp
mov dword [eax + 4], ebx
cmp ecx, 2
jle 0x1016f4a0
sub esi, edx
mov dword [eax + 8], esi
mov eax, 0xfffffff4
jmp 0x1016f4aa
or eax, 0xffffffff
mov ebp, dword [esp + 0x44]
test ebp, ebp
je 0x1016f580
test byte [ebp], 0x20
je 0x1016f580
mov edx, dword [ebp + 0x18]
mov ecx, dword [esp + 0x12c]
mov dword [edx], ecx
jmp 0x1016f580
mov eax, ecx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
movzx edi, word [ebx + 0x1e]
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x24]
sar eax, 1
cmp eax, edi
jg 0x1016f527
test edx, edx
je 0x1016f527
lea eax, [edi*2 + 2]
cmp eax, dword [esp + 0x158]
lea edi, [edx + ecx*4]
cmovg eax, dword [esp + 0x158]
xor ebx, ebx
lea eax, [edx + eax*4]
mov ecx, eax
sub ecx, edi
add ecx, 3
shr ecx, 2
cmp edi, eax
cmova ecx, ebx
test ecx, ecx
je 0x1016f527
or eax, 0xffffffff
rep stosd dword es:[edi], eax
cmp dword [esp + 0x158], 2
jge 0x1016f535
xor esi, esi
jmp 0x1016f556
mov eax, dword [esp + 0xf8]
sub eax, dword [esp + 0xf0]
mov dword [edx], eax
mov eax, dword [esp + 0xfc]
sub eax, dword [esp + 0xf0]
mov dword [edx + 4], eax
mov ebp, dword [esp + 0x44]
test ebp, ebp
je 0x1016f570
test byte [ebp], 0x20
je 0x1016f570
mov edx, dword [ebp + 0x18]
mov ecx, dword [esp + 0x128]
mov dword [edx], ecx
mov eax, esi
jmp 0x1016f580
mov eax, 0xffffffe8
jmp 0x1016f580
mov eax, 0xfffffffe
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10172863
add esp, 0x128
ret