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

Disassembly:
sub esp, 0x120
mov eax, dword [0x101fd700]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x144]
xor cl, cl
mov edx, dword [esp + 0x14c]
xor ch, ch
mov ebx, dword [esp + 0x134]
mov ebp, dword [esp + 0x138]
mov dword [esp + 0x2c], eax
xor eax, eax
mov esi, dword [esp + 0x13c]
mov dword [esp + 0x20], esi
mov byte [esp + 0x1e], cl
mov byte [esp + 0x13], ch
mov byte [esp + 0x1f], cl
mov byte [esp + 0x12], cl
mov ecx, dword [esp + 0x2c]
add esi, ecx
mov dword [esp + 0x60], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x14], ebx
lea eax, [esi - 1]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x24], edx
mov dword [esp + 0x50], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x40], esi
mov edi, dword [esp + 0x140]
test ebx, ebx
jne 0x10172a19
test ebp, ebp
jne 0x10172a19
test eax, eax
jne 0x10172a19
cmp edi, 0xfffffc19
jne 0x10172a19
cmp ecx, edi
jne 0x10172a19
push eax
push eax
push eax
push eax
push eax
push eax
push eax
call fcn.10164890
add esp, 0x1c
jmp 0x1017392a
test dword [esp + 0x148], 0xe20f5a6f
je 0x10172a30
mov eax, 0xfffffffd
jmp 0x1017392a
test ebx, ebx
je 0x10173925
test eax, eax
je 0x10173925
mov eax, dword [esp + 0x150]
test edx, edx
jne 0x10172a53
test eax, eax
jg 0x10173925
test eax, eax
jns 0x10172a61
mov eax, 0xfffffff1
jmp 0x1017392a
test edi, edi
jns 0x10172a6f
mov eax, 0xffffffe0
jmp 0x1017392a
test ecx, ecx
js 0x1017391e
cmp ecx, edi
jg 0x1017391e
mov ecx, dword [ebx]
cmp ecx, 0x50435245
je 0x10172aa1
cmp ecx, 0x45524350
mov eax, 0xfffffffc
mov edx, 0xffffffe3
cmove eax, edx
jmp 0x1017392a
test byte [ebx + 0xc], 1
jne 0x10172ab1
mov eax, 0xffffffe4
jmp 0x1017392a
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x148]
and eax, 0x800
mov dword [esp + 0x3c], eax
mov eax, 0
setne al
mov dword [esp + 0x38], eax
mov dword [esp + 0xc0], eax
test ecx, 0x8000000
je 0x10172ae6
mov eax, 2
jmp 0x10172aee
mov eax, ecx
shr eax, 0xf
and eax, 1
cmp dword [esp + 0x3c], 0
mov dword [esp + 0xfc], eax
je 0x10172b85
test ecx, 0x2000
jne 0x10172b85
lea eax, [esp + 0x48]
push eax
push edi
push dword [esp + 0x28]
call fcn.10173cf0
add esp, 0xc
test eax, eax
je 0x10172b57
cmp dword [esp + 0x150], 2
jl 0x10172b35
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x48]
mov dword [edx], ecx
mov dword [edx + 4], eax
cmp eax, 5
jg 0x10172b4d
cmp dword [esp + 0xfc], 1
mov eax, 0xffffffe7
jg 0x1017392a
mov eax, 0xfffffff6
jmp 0x1017392a
mov eax, dword [esp + 0x2c]
test eax, eax
jle 0x10172b7a
cmp eax, edi
jge 0x10172b7a
mov ecx, dword [esp + 0x20]
mov al, byte [eax + ecx]
and al, 0xc0
cmp al, 0x80
jne 0x10172b7a
mov eax, 0xfffffff5
jmp 0x1017392a
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x148]
test ebp, ebp
je 0x10172bc4
mov eax, dword [ebp]
and al, 0x48
cmp al, 0x40
jne 0x10172bc4
cmp dword [ebp + 0x1c], 0
je 0x10172bc4
test ecx, 0xe7ff5a7f
jne 0x10172bc4
push dword [esp + 0x150]
push edx
push ecx
push dword [esp + 0x38]
push edi
push dword [esp + 0x34]
push ebp
call fcn.101746f0
add esp, 0x1c
cmp eax, 0xffffffe1
jne 0x1017392a
movzx eax, word [ebx + 0x22]
mov edx, 0x989680
movzx ebp, word [ebx + 0x24]
add eax, ebx
mov dword [esp + 0xa4], eax
movzx eax, word [ebx + 0x26]
mov ebx, edx
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x98], ebp
mov dword [esp + 0x4c], 0
mov dword [esp + 0x78], edx
mov eax, dword [eax + 0x30]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x11c], 0
test eax, eax
je 0x10172c65
mov ecx, dword [eax]
test cl, 1
je 0x10172c2e
mov esi, dword [eax + 4]
mov dword [esp + 0x4c], esi
mov esi, dword [esp + 0x40]
test cl, 2
je 0x10172c3a
mov edx, dword [eax + 8]
mov dword [esp + 0x78], edx
test cl, 0x10
je 0x10172c46
mov ebx, dword [eax + 0x14]
mov dword [esp + 0x7c], ebx
test cl, 4
je 0x10172c59
mov eax, dword [eax + 0xc]
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x44]
test cl, 8
je 0x10172c65
mov eax, dword [eax + 0x10]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
test ecx, 0x2000
je 0x10172c83
mov eax, dword [eax + 0x10]
cmp eax, edx
jae 0x10172c7f
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x14]
test ecx, 0x4000
je 0x10172c96
mov eax, dword [eax + 0x14]
cmp eax, ebx
jae 0x10172c96
mov dword [esp + 0x7c], eax
mov ebx, dword [esp + 0x14]
mov ecx, 0x101c2788
mov eax, dword [esp + 0x34]
test eax, eax
mov dword [esp + 0xa0], 0
cmovne ecx, eax
mov dword [esp + 0xd8], 0
mov edx, dword [ebx + 8]
mov eax, edx
or eax, dword [esp + 0x148]
shr eax, 4
and eax, 1
mov dword [esp + 0x124], 0
mov dword [esp + 0x6c], eax
mov eax, dword [ebx + 0xc]
shr eax, 8
and eax, 1
mov dword [esp + 0x120], 0
mov dword [esp + 0x5c], eax
mov eax, edx
shr eax, 0x12
and eax, 1
mov dword [esp + 0x118], 0
mov dword [esp + 0x68], eax
movzx eax, word [ebx + 0x26]
imul ebp, eax
movzx eax, word [ebx + 0x22]
mov dword [esp + 0xac], ecx
add ebp, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x108], eax
add ebp, ebx
mov eax, edx
mov ebx, dword [esp + 0x20]
shr eax, 5
and eax, 1
mov dword [esp + 0xe4], ebp
mov dword [esp + 0xcc], eax
mov eax, edx
mov ebp, dword [esp + 0x148]
shr eax, 0x1d
and eax, 1
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xc8], eax
add ebx, edi
mov eax, edx
mov dword [esp + 0xec], ebx
shr eax, 0x19
and eax, 1
mov dword [esp + 0x28], ebx
mov dword [esp + 0xc4], eax
mov eax, ebp
shr eax, 7
and eax, 1
mov dword [esp + 0xb8], eax
mov eax, ebp
shr eax, 8
and eax, 1
mov dword [esp + 0xbc], eax
mov eax, ebp
shr eax, 0xa
and eax, 1
mov dword [esp + 0xd0], eax
mov eax, ebp
shr eax, 0x1c
and eax, 1
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 0xc]
mov eax, edi
shr eax, 0xc
and eax, 1
mov dword [esp + 0xe0], eax
lea eax, [ecx + 0x100]
mov dword [esp + 0xb0], eax
lea eax, [ecx + 0x340]
mov dword [esp + 0xb4], eax
mov eax, ebp
and eax, 0x1800000
je 0x10172e65
cmp eax, 0x800000
je 0x10172e58
cmp eax, 0x1000000
jne 0x10172ef5
mov dword [esp + 0xdc], 0
test ebp, 0x700000
mov eax, ebp
cmove eax, edx
and eax, 0x700000
cmp eax, 0x300000
ja 0x10172ee7
je 0x10172ec4
test eax, eax
je 0x10172ea1
cmp eax, 0x100000
je 0x10172e7e
cmp eax, 0x200000
jne 0x10172ef5
mov dword [esp + 0x8c], 0
jmp 0x10172eaa
mov dword [esp + 0xdc], 1
jmp 0x10172e14
test edx, 0x1800000
je 0x10172e09
mov eax, edx
shr eax, 0x17
and eax, 1
mov dword [esp + 0xdc], eax
jmp 0x10172e14
mov ecx, 0xd
xor eax, eax
mov ebp, 1
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ebp
mov byte [esp + 0xa8], cl
jmp 0x10172f19
xor eax, eax
mov dword [esp + 0x8c], eax
mov ecx, 0xa
mov ebp, 1
mov dword [esp + 0x90], ebp
mov byte [esp + 0xa8], cl
jmp 0x10172f19
mov ebp, 2
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], ebp
mov word [esp + 0xa8], 0xa0d
jmp 0x10172f19
cmp eax, 0x400000
je 0x10172f06
cmp eax, 0x500000
je 0x10172eff
mov eax, 0xffffffe9
jmp 0x1017392a
mov eax, 2
jmp 0x10172f0b
mov eax, 1
mov ebp, dword [esp + 0x90]
mov dword [esp + 0x8c], eax
cmp dword [esp + 0xfc], 0
je 0x10172f35
test edi, 0x200
je 0x10172f35
mov eax, 0xfffffff3
jmp 0x1017392a
mov eax, 0xaaaaaaab
mul dword [esp + 0x150]
mov eax, 0x55555556
shr edx, 1
lea edi, [edx + edx*2]
lea ecx, [edi + edi]
mov dword [esp + 0x30], 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 0x10172ffa
mov ecx, eax
mov eax, 0x55555556
imul edi
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jl 0x10172ffa
inc ecx
lea ebx, [ecx + ecx*2]
lea eax, [ebx*4]
mov dword [esp + 0x30], ebx
push eax
call dword [0x101fd4b0]
mov edi, eax
add esp, 4
mov dword [esp + 0x80], edi
test edi, edi
jne 0x10172fb2
lea eax, [edi - 6]
jmp 0x1017392a
mov ebp, dword [esp + 0x90]
lea ecx, [ebx + ebx]
mov eax, 0x55555556
mov dword [esp + 0x84], ebx
mov ebx, dword [esp + 0xec]
imul ecx
mov dword [esp + 0x18], edi
mov ecx, edi
mov eax, edx
mov dword [esp + 0x104], 0
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x34], 1
mov dword [esp + 0x88], eax
jmp 0x1017304b
mov eax, dword [esp + 0x24]
mov edi, eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], edi
mov dword [esp + 0x34], 0
lea ecx, [eax + eax]
mov dword [esp + 0x104], 0
mov eax, 0x55555556
imul ecx
mov ecx, edi
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x88], eax
test ecx, ecx
je 0x101730d6
mov eax, dword [esp + 0x30]
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 + 0x18]
add eax, 8
cmp edx, eax
cmovb edx, eax
sub ecx, 4
cmp ecx, edx
jb 0x10173096
mov dword [ecx], 0xffffffff
sub ecx, 4
cmp ecx, edx
jae 0x10173074
mov ebx, dword [esp + 0xec]
mov ebp, dword [esp + 0x90]
mov edi, dword [esp + 0x80]
mov eax, dword [esp + 0x150]
test eax, eax
jle 0x101730bc
mov dword [edi], 0xffffffff
mov ebx, dword [esp + 0xec]
mov ebp, dword [esp + 0x90]
mov edi, dword [esp + 0x80]
cmp eax, 1
jle 0x101730d6
mov dword [edi + 4], 0xffffffff
mov ebx, dword [esp + 0xec]
mov ebp, dword [esp + 0x90]
cmp dword [esp + 0x6c], 0
mov edx, dword [esp + 0x14]
jne 0x10173130
mov eax, dword [edx + 0xc]
test al, 0x10
je 0x10173114
mov ch, byte [edx + 0x18]
mov dword [esp + 0x50], 1
mov cl, ch
mov byte [esp + 0x13], ch
mov byte [esp + 0x1e], cl
test al, 0x20
je 0x10173130
mov eax, dword [esp + 0xb0]
movzx ecx, ch
mov ch, byte [ecx + eax]
mov byte [esp + 0x13], ch
jmp 0x10173130
cmp dword [esp + 0x5c], 0
jne 0x10173130
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x10173130
test byte [eax + 4], 1
je 0x10173130
add eax, 8
mov dword [esp + 0x60], eax
mov eax, dword [edx + 0xc]
test al, 0x40
je 0x1017315f
mov dl, byte [edx + 0x1a]
mov dword [esp + 0x64], 1
mov byte [esp + 0x12], dl
mov byte [esp + 0x1f], dl
test al, al
jns 0x1017315f
mov eax, dword [esp + 0xb0]
movzx ecx, dl
mov al, byte [ecx + eax]
mov byte [esp + 0x12], al
cmp dword [esp + 0x68], 0
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x18], edx
je 0x101732b3
cmp dword [esp + 0x3c], 0
mov edi, esi
je 0x1017322a
cmp esi, ebx
jae 0x101732a9
nop dword [eax + eax]
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x101731df
cmp edi, ebx
jae 0x101731cf
push dword [esp + 0x38]
lea ecx, [esp + 0x94]
push ecx
push ebx
push eax
push edi
call fcn.10173960
mov ebx, dword [esp + 0x100]
add esp, 0x14
mov ebp, dword [esp + 0x90]
test eax, eax
je 0x101731cf
mov eax, 1
jmp 0x101731d1
xor eax, eax
test eax, eax
jne 0x101732a9
mov edx, dword [esp + 0x28]
jmp 0x1017320b
mov eax, ebx
sub eax, ebp
cmp edi, eax
ja 0x1017320b
mov al, byte [edi]
cmp al, byte [esp + 0xa8]
jne 0x1017320b
cmp ebp, 1
je 0x101732a9
mov al, byte [edi + 1]
cmp al, byte [esp + 0xa9]
je 0x101732a9
inc edi
cmp edi, edx
jae 0x1017321d
mov al, byte [edi]
and al, 0xc0
cmp al, 0x80
jne 0x1017321d
inc edi
cmp edi, edx
jb 0x10173210
cmp edi, ebx
jb 0x10173190
jmp 0x101732a9
cmp esi, ebx
jae 0x101732a9
mov esi, dword [esp + 0x8c]
test esi, esi
je 0x1017327c
cmp edi, ebx
jae 0x10173274
push dword [esp + 0x38]
lea eax, [esp + 0x94]
push eax
push ebx
push esi
push edi
call fcn.10173960
mov ebx, dword [esp + 0x100]
add esp, 0x14
mov ebp, dword [esp + 0x90]
mov esi, dword [esp + 0x8c]
test eax, eax
je 0x10173274
mov eax, 1
jmp 0x10173276
xor eax, eax
test eax, eax
jne 0x101732a5
jmp 0x101732a0
mov eax, ebx
sub eax, ebp
cmp edi, eax
ja 0x101732a0
mov al, byte [edi]
cmp al, byte [esp + 0xa8]
jne 0x101732a0
cmp ebp, 1
je 0x101732a5
mov al, byte [edi + 1]
cmp al, byte [esp + 0xa9]
je 0x101732a5
inc edi
cmp edi, ebx
jb 0x10173235
mov esi, dword [esp + 0x40]
mov edx, edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 8]
or eax, dword [esp + 0x148]
test eax, 0x4000000
jne 0x101734cc
cmp dword [esp + 0x50], 0
je 0x10173322
cmp esi, edx
jae 0x101734cc
mov cl, byte [esp + 0x1e]
mov bl, byte [esp + 0x13]
cmp cl, bl
je 0x10173310
nop word [eax + eax]
mov al, byte [esi]
cmp al, cl
je 0x101734cc
cmp al, bl
je 0x101734cc
inc esi
cmp esi, edx
jb 0x101732f0
jmp 0x101734cc
cmp byte [esi], cl
je 0x101734cc
inc esi
cmp esi, edx
jb 0x10173310
jmp 0x101734cc
cmp dword [esp + 0x5c], 0
je 0x1017349c
mov ecx, dword [esp + 0xe8]
lea eax, [ecx + edi]
cmp esi, eax
jbe 0x101734cc
cmp esi, edx
jae 0x10173477
cmp dword [esp + 0x3c], 0
je 0x10173400
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x1017339a
cmp esi, ecx
jbe 0x1017338a
push dword [esp + 0x38]
lea edx, [esp + 0x94]
push edx
push ecx
push eax
push esi
call fcn.10173af0
mov ebp, dword [esp + 0xa4]
add esp, 0x14
test eax, eax
je 0x1017338a
mov eax, 1
jmp 0x1017338c
xor eax, eax
test eax, eax
jne 0x10173477
mov edx, dword [esp + 0x28]
jmp 0x101733c9
lea eax, [ecx + ebp]
cmp esi, eax
jb 0x101733d0
mov ecx, esi
sub ecx, ebp
mov al, byte [ecx]
cmp al, byte [esp + 0xa8]
jne 0x101733c9
cmp ebp, 1
je 0x10173477
mov al, byte [ecx + 1]
cmp al, byte [esp + 0xa9]
je 0x10173477
mov ecx, dword [esp + 0xe8]
inc esi
cmp esi, edx
jae 0x10173477
nop dword [eax]
mov al, byte [esi]
and al, 0xc0
cmp al, 0x80
jne 0x10173352
inc esi
cmp esi, edx
jb 0x101733e0
jmp 0x10173477
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x10173444
cmp esi, ecx
jbe 0x10173438
push dword [esp + 0x38]
lea edx, [esp + 0x94]
push edx
push ecx
push eax
push esi
call fcn.10173af0
mov ebp, dword [esp + 0xa4]
add esp, 0x14
test eax, eax
je 0x10173438
mov eax, 1
jmp 0x1017343a
xor eax, eax
test eax, eax
jne 0x10173477
mov edx, dword [esp + 0x28]
jmp 0x1017346b
lea eax, [ecx + ebp]
cmp esi, eax
jb 0x10173472
mov ecx, esi
sub ecx, ebp
mov al, byte [ecx]
cmp al, byte [esp + 0xa8]
jne 0x1017346b
cmp ebp, 1
je 0x10173477
mov al, byte [ecx + 1]
cmp al, byte [esp + 0xa9]
je 0x10173477
mov ecx, dword [esp + 0xe8]
inc esi
cmp esi, edx
jb 0x10173400
cmp byte [esi - 1], 0xd
jne 0x101734cc
mov eax, dword [esp + 0x8c]
cmp eax, 1
je 0x1017348e
cmp eax, 2
jne 0x101734cc
cmp esi, dword [esp + 0x28]
jae 0x101734cc
cmp byte [esi], 0xa
jne 0x101734cc
inc esi
jmp 0x101734cc
mov ebx, dword [esp + 0x60]
test ebx, ebx
je 0x101734cc
cmp esi, edx
jae 0x101734cc
mov edi, dword [esp + 0x28]
nop dword [eax]
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 0x101734cc
inc esi
cmp esi, edi
jb 0x101734b0
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x28], ebx
mov eax, dword [edi + 8]
or eax, dword [esp + 0x148]
test eax, 0x4000000
jne 0x1017357c
cmp dword [esp + 0xfc], 0
jne 0x1017357c
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x10173512
test byte [ecx + 4], 2
je 0x10173512
mov eax, ebx
sub eax, esi
cmp eax, dword [ecx + 0x28]
jb case.0x1017360d.996
cmp dword [esp + 0x64], 0
je 0x1017357c
mov eax, ebx
sub eax, esi
cmp eax, 0x3e8
jge 0x1017357c
mov eax, dword [esp + 0x50]
lea ecx, [eax + esi]
cmp ecx, dword [esp + 0x54]
jbe 0x1017357c
cmp ecx, ebx
jae case.0x1017360d.996
mov ah, byte [esp + 0x1f]
cmp ah, byte [esp + 0x12]
je 0x10173560
nop
mov al, byte [ecx]
mov edx, ecx
inc ecx
mov dword [esp + 0x54], edx
cmp al, ah
je 0x10173578
cmp al, byte [esp + 0x12]
je 0x10173578
cmp ecx, ebx
jb 0x10173540
xor ebp, ebp
jmp 0x1017376e
mov al, byte [ecx]
mov edx, ecx
mov dword [esp + 0x54], ecx
inc ecx
cmp al, ah
je 0x10173578
cmp ecx, ebx
jb 0x10173560
xor ebp, ebp
jmp 0x1017376e
cmp edx, ebx
jae case.0x1017360d.996
push 0
push 0
lea eax, [esp + 0x7c]
mov dword [esp + 0xf8], esi
push eax
push 2
push esi
push dword [esp + 0xf8]
mov dword [esp + 0x110], esi
push esi
mov dword [esp + 0x90], 0
mov dword [esp + 0x128], 0
mov dword [esp + 0x11c], 0
mov dword [esp + 0xb8], 0
call fcn.10164890
add esp, 0x1c
mov ebp, eax
cmp dword [esp + 0xd8], 0
je 0x101735f4
cmp dword [esp + 0x58], 0
jne 0x101735f4
mov eax, dword [esp + 0xf8]
mov dword [esp + 0x58], eax
mov dword [esp + 0x70], esi
test ebp, ebp
jg 0x1017379d
je case.0x1017360d.995
lea eax, [ebp + 0x3e4]
cmp eax, 4
ja case.default.0x1017360d
jmp dword [eax*4 + 0x10173944]
mov eax, dword [esp + 0x9c]
mov edi, esi
mov dword [esp + 0xa0], eax
jmp 0x1017365d
mov edi, dword [esp + 0xf0]
cmp edi, esi
ja 0x1017365d
cmp dword [esp + 0x3c], 0
lea edi, [esi + 1]
mov dword [esp + 0xa0], 0
je 0x1017365d
cmp edi, ebx
jae 0x1017365d
nop word [eax + eax]
mov al, byte [edi]
and al, 0xc0
cmp al, 0x80
jne 0x1017365d
inc edi
cmp edi, ebx
jb 0x10173650
mov ebx, dword [esp + 0xec]
xor ebp, ebp
mov dword [esp + 0x30], ebp
cmp dword [esp + 0x68], ebp
je 0x101736b4
mov ecx, dword [esp + 0x8c]
test ecx, ecx
je 0x1017372f
cmp esi, ebx
jae 0x101736aa
push dword [esp + 0x38]
lea eax, [esp + 0x94]
push eax
push ebx
push ecx
push esi
call fcn.10173960
mov ebx, dword [esp + 0x100]
add esp, 0x14
test eax, eax
je 0x101736aa
lea eax, [ebp + 1]
jmp 0x101736ac
xor eax, eax
test eax, eax
jne 0x1017376a
mov ebp, dword [esp + 0x90]
cmp dword [esp + 0x6c], 0
mov esi, edi
mov dword [esp + 0x40], esi
jne 0x10173766
cmp edi, dword [esp + 0x18]
ja 0x10173766
mov edx, dword [esp + 0x2c]
add edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x18]
cmp edi, edx
jbe 0x1017371f
cmp byte [edi - 1], 0xd
jne 0x1017371f
cmp edi, eax
jae 0x1017371f
cmp byte [edi], 0xa
jne 0x1017371f
mov eax, dword [esp + 0x14]
test dword [eax + 0xc], 0x800
jne 0x1017371f
cmp ecx, 1
je 0x10173718
cmp ecx, 2
je 0x10173718
cmp ebp, 2
jne 0x1017371f
lea esi, [edi + 1]
mov dword [esp + 0x40], esi
mov dword [esp + 0x120], 0
jmp 0x1017315f
mov ebp, dword [esp + 0x90]
mov eax, ebx
sub eax, ebp
cmp esi, eax
ja 0x101736bb
mov al, byte [esi]
cmp al, byte [esp + 0xa8]
jne 0x101736bb
cmp ebp, 1
je 0x10173766
mov al, byte [esi + 1]
cmp al, byte [esp + 0xa9]
jne 0x101736bb
mov ebp, dword [esp + 0x30]
mov ebx, dword [esp + 0x18]
cmp dword [esp + 0x34], 0
je 0x10173785
push dword [esp + 0x80]
call dword [0x101fd4b4]
add esp, 4
test ebp, ebp
je 0x10173817
cmp ebp, 0xfffffff4
je 0x10173817
mov eax, ebp
jmp 0x1017392a
cmp ebp, 1
je 0x101737aa
cmp ebp, 0xfffffc19
jne 0x1017376e
cmp dword [esp + 0x34], 0
mov ebx, dword [esp + 0x48]
je 0x101737fb
mov esi, dword [esp + 0x80]
cmp ebx, 4
jl 0x101737dd
lea eax, [ebx*4 - 8]
push eax
lea eax, [esi + 8]
push eax
mov eax, dword [esp + 0x2c]
add eax, 8
push eax
call fcn.10178960
add esp, 0xc
cmp dword [esp + 0x100], ebx
jle 0x101737f1
or dword [esp + 0x104], 0x10000
push esi
call dword [0x101fd4b4]
add esp, 4
test dword [esp + 0x104], 0x10000
mov ecx, dword [esp + 0x100]
je 0x1017387b
cmp ecx, ebx
jl 0x1017387b
xor esi, esi
jmp 0x10173884
mov esi, dword [esp + 0x70]
test esi, esi
je 0x10173851
mov ecx, dword [esp + 0x150]
cmp ecx, 1
jle 0x1017384a
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
sub ebx, edx
mov ebp, dword [esp + 0x58]
sub ebp, edx
mov dword [eax], ebp
mov dword [eax + 4], ebx
cmp ecx, 2
jle 0x1017384a
sub esi, edx
mov dword [eax + 8], esi
mov eax, 0xfffffff4
jmp 0x10173854
or eax, 0xffffffff
mov ebp, dword [esp + 0x44]
test ebp, ebp
je 0x1017392a
test byte [ebp], 0x20
je 0x1017392a
mov edx, dword [ebp + 0x18]
mov ecx, dword [esp + 0x124]
mov dword [edx], ecx
jmp 0x1017392a
mov eax, ecx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
movzx edi, word [edi + 0x1e]
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x24]
sar eax, 1
cmp eax, edi
jg 0x101738d1
test edx, edx
je 0x101738d1
lea eax, [edi*2 + 2]
cmp eax, dword [esp + 0x150]
lea edi, [edx + ecx*4]
cmovg eax, dword [esp + 0x150]
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 0x101738d1
or eax, 0xffffffff
rep stosd dword es:[edi], eax
cmp dword [esp + 0x150], 2
jge 0x101738df
xor esi, esi
jmp 0x10173900
mov eax, dword [esp + 0xf0]
sub eax, dword [esp + 0xe8]
mov dword [edx], eax
mov eax, dword [esp + 0xf4]
sub eax, dword [esp + 0xe8]
mov dword [edx + 4], eax
mov ebp, dword [esp + 0x44]
test ebp, ebp
je 0x1017391a
test byte [ebp], 0x20
je 0x1017391a
mov edx, dword [ebp + 0x18]
mov ecx, dword [esp + 0x120]
mov dword [edx], ecx
mov eax, esi
jmp 0x1017392a
mov eax, 0xffffffe8
jmp 0x1017392a
mov eax, 0xfffffffe
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10176fcb
add esp, 0x120
ret