Function at 0x6717beb5
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x4528
call fcn.671a3a80
mov eax, dword [0x6744365c]
xor eax, esp
mov dword [esp + 0x4524], eax
and dword [esp + 0x34], 0
xor edx, edx
mov ecx, dword [esp + 0x4530]
inc edx
mov eax, dword [esp + 0x4540]
push ebx
push ebp
mov ebp, dword [esp + 0x4544]
xor ebx, ebx
and dword [esp + 0x10], ebx
mov dword [esp + 0x34], edx
or edx, 0xffffffff
push esi
mov esi, dword [esp + 0x4538]
push edi
mov edi, dword [esp + 0x4548]
mov dword [esp + 0x58], edx
mov dword [esp + 0x54], edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], edx
xor edx, edx
mov dword [esp + 0x34], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x28], edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x10], edx
test edi, edi
je 0x6717cc28
test ebp, ebp
je 0x6717cc28
mov dword [edi], 0x64
mov dword [ebp], edx
test esi, esi
jne 0x6717bf5f
mov dword [edi], 0x74
jmp 0x6717cc28
test eax, eax
mov ebp, 0x6738d194
cmovne ebp, eax
mov eax, dword [esp + 0x4544]
mov edx, eax
or edx, 0x80000
and eax, 0x4000000
cmove edx, dword [esp + 0x4544]
mov dword [esp + 0x30], edx
test edx, 0x18000000
jne 0x6717cc22
test dword [ebp + 0x24], 0xffffffc0
jne 0x6717cc22
mov eax, edx
and eax, 0x2000000
mov dword [esp + 0x38], eax
je 0x6717bfcb
test edx, 0x1976fef3
jne 0x6717bfc0
test dword [ebp + 0x24], 0xfffffff3
je 0x6717bfcb
mov dword [edi], 0xc0
jmp 0x6717cc28
cmp ecx, 0xffffffff
jne 0x6717bfe1
push esi
call fcn.6719fc49
mov edx, dword [esp + 0x34]
pop ecx
mov ecx, eax
mov dword [esp + 0x14], ecx
cmp ecx, dword [ebp + 0x18]
jbe 0x6717bff1
mov dword [edi], 0xbc
jmp 0x6717cc28
cmp dword [ebp + 0x14], ebx
mov edi, 0x673a7b98
push 0xa
cmovne edi, dword [ebp + 0x14]
mov dword [esp + 0x30], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x84], esi
lea eax, [edi + 0x100]
mov dword [esp + 0x68], ebp
mov dword [esp + 0x70], eax
lea eax, [edi + 0x200]
mov dword [esp + 0x74], eax
lea eax, [edi + 0x340]
mov dword [esp + 0x78], eax
xor edi, edi
xor eax, eax
mov dword [esp + 0xdc], edi
mov dword [esp + 0xc4], eax
lea eax, [esi + ecx*2]
mov dword [esp + 0x88], eax
xor esi, esi
lea eax, [esp + 0x258]
mov dword [esp + 0x124], edi
mov dword [esp + 0xec], eax
xor eax, eax
mov dword [esp + 0xc0], eax
lea eax, [esp + 0x168]
mov dword [esp + 0xcc], eax
lea eax, [esp + 0x658]
mov dword [esp + 0xe4], eax
lea eax, [esp + 0x1658]
mov dword [esp + 0x80], eax
mov dword [esp + 0x7c], eax
pop eax
mov dword [esp + 0xb8], edi
mov ecx, eax
mov dword [esp + 0xd4], edi
or eax, 0xffffffff
mov dword [esp + 0x11c], edi
mov dword [esp + 0xdc], edi
mov dword [esp + 0x10c], edi
mov dword [esp + 0x88], edi
mov dword [esp + 0xc4], edi
mov dword [esp + 0x110], edi
mov dword [esp + 0xec], edi
mov dword [esp + 0xf0], edi
lea edi, [esp + 0x90]
mov dword [esp + 0xd0], edx
mov dword [esp + 0xcc], 0x14
mov dword [esp + 0x8c], 0xbb8
rep stosd dword es:[edi], eax
push 2
mov dword [esp + 0x44], 0x30
pop ecx
cmp dword [esp + 0x38], ebx
jne 0x6717c2f3
mov eax, dword [esp + 0x14]
cmp eax, ecx
jb 0x6717c2f3
mov dword [esp + 0x24], 0x39
mov edx, dword [esp + 0x34]
cmp word [edx + esi*2], 0x28
jne 0x6717c2ef
cmp word [edx + esi*2 + 2], 0x2a
jne 0x6717c2ef
and dword [esp + 0x1c], ebx
sub eax, esi
add eax, 0xfffffffe
mov edi, 0x67443548
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [esp + 0x20], eax
movzx ecx, word [edi + 4]
cmp dword [esp + 0x38], ecx
jb 0x6717c190
push ecx
push dword [edi]
lea eax, [edx + 4]
lea eax, [eax + esi*2]
push eax
call fcn.6719fc92
add esp, 0xc
test eax, eax
je 0x6717c1ca
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
inc dword [esp + 0x1c]
add eax, 0xc
add edi, 0xc
mov dword [esp + 0x20], eax
cmp eax, 0xfc
jb 0x6717c168
push 2
pop ecx
cmp dword [esp + 0x1c], 0x15
jae 0x6717c2ef
mov eax, dword [esp + 0x14]
sub eax, esi
cmp eax, ecx
jb 0x6717c2ef
mov eax, dword [esp + 0x14]
jmp 0x6717c135
movzx eax, word [edi + 4]
movzx edx, word [edi + 6]
add eax, 2
add esi, eax
mov eax, edx
push 2
test ax, ax
je 0x6717c2c1
xor ecx, ecx
inc ecx
cmp ax, cx
pop ecx
je 0x6717c2b1
cmp ax, cx
je 0x6717c29d
push 3
pop ecx
cmp ax, cx
je 0x6717c289
jbe 0x6717c1a5
cmp edx, 6
ja 0x6717c1a5
mov edi, dword [esp + 0x34]
xor ecx, ecx
lea edi, [edi + esi*2]
movzx eax, word [edi]
cmp ax, word [esp + 0x40]
jb 0x6717c2e1
cmp ax, word [esp + 0x24]
ja 0x6717c2e1
mov edi, dword [esp + 0x34]
cmp ax, word [esp + 0x24]
ja 0x6717c259
cmp ecx, 0x19999998
ja 0x6717c259
imul ecx, ecx, 0xa
movzx eax, ax
add eax, 0xffffffd0
add ecx, eax
inc esi
movzx eax, word [edi + esi*2]
cmp ax, word [esp + 0x40]
jae 0x6717c233
lea eax, [esi + esi]
inc esi
cmp word [eax + edi], 0x29
jne 0x6717c2d0
cmp edx, 4
jne 0x6717c272
mov dword [esp + 0x54], ecx
jmp 0x6717c1a5
cmp edx, 5
jne 0x6717c280
mov dword [esp + 0x48], ecx
jmp 0x6717c1a5
mov dword [esp + 0x4c], ecx
jmp 0x6717c1a5
mov eax, dword [edi + 8]
or dword [esp + 0x18], 0x4000
mov dword [esp + 0x50], eax
jmp 0x6717c1a5
mov edx, dword [edi + 8]
or dword [esp + 0x18], 0x8000
mov dword [esp + 0x28], edx
jmp 0x6717c1a8
mov eax, dword [esp + 0x18]
or eax, dword [edi + 8]
mov dword [esp + 0x18], eax
jmp 0x6717c1a8
mov eax, dword [edi + 8]
or dword [esp + 0xd4], eax
jmp 0x6717c1a7
mov ecx, 0xa0
lea edi, [edi + esi*2]
mov dword [esp + 0x10], ecx
jmp 0x6717c4f7
mov ecx, 0xa0
mov dword [esp + 0x10], ecx
jmp 0x6717c4f7
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0x34]
shr eax, 0x13
and eax, 1
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
lea edi, [ecx + esi*2]
je 0x6717c355
test edx, 0x1000
je 0x6717c320
mov ecx, 0xae
jmp 0x6717c2e6
test edx, 0x40000000
jne 0x6717c348
push dword [esp + 0x5c]
push eax
push ecx
call fcn.671a22a1
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x6717c503
mov edx, dword [esp + 0x30]
test byte [ebp + 0x24], 1
je 0x6717c355
mov ecx, 0xbf
jmp 0x6717c2e6
mov eax, dword [esp + 0xd0]
mov ecx, 0x20800
and eax, ecx
cmp eax, ecx
jne 0x6717c371
mov ecx, 0xaf
jmp 0x6717c2e6
cmp dword [esp + 0x50], ebx
jne 0x6717c37f
movzx eax, word [ebp + 0x1c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x6717c38f
movzx eax, word [ebp + 0x1e]
mov dword [esp + 0x28], eax
and dword [esp + 0xf4], ebx
sub eax, 1
je 0x6717c40c
sub eax, 1
je 0x6717c408
sub eax, 1
je 0x6717c3e5
sub eax, 1
je 0x6717c3d9
sub eax, 1
je 0x6717c3cc
sub eax, 1
je 0x6717c3be
mov ecx, 0x9c
jmp 0x6717c2e6
xor eax, eax
inc eax
mov dword [esp + 0xf8], eax
xor eax, eax
jmp 0x6717c419
mov dword [esp + 0xf4], 2
jmp 0x6717c421
xor eax, eax
inc eax
mov dword [esp + 0xf4], eax
jmp 0x6717c421
push 0xd
pop eax
push 0xa
mov word [esp + 0x108], ax
pop eax
mov dword [esp + 0xf8], 2
mov word [esp + 0x106], ax
jmp 0x6717c421
push 0xa
jmp 0x6717c40e
push 0xd
xor eax, eax
inc eax
mov dword [esp + 0xfc], eax
pop eax
mov word [esp + 0x104], ax
mov eax, dword [esp + 0x14]
sub eax, esi
test byte [ebp + 0x24], 0xc
lea esi, [eax + 4]
cmove esi, eax
test dl, 4
je 0x6717c43c
lea eax, [esi + 1]
imul esi, eax, 5
cmp esi, 0x400
jb 0x6717c470
push dword [ebp + 8]
lea eax, [esi*4 + 4]
push eax
call dword [ebp]
pop ecx
pop ecx
test eax, eax
jne 0x6717c467
mov eax, dword [esp + 0x60]
mov dword [eax], 0x79
jmp 0x6717c512
mov dword [esp + 0xe0], eax
jmp 0x6717c477
mov eax, dword [esp + 0xe0]
lea eax, [eax + esi*4]
add eax, 4
mov dword [esp + 0xe4], eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x48]
push eax
push dword [esp + 0xd8]
push edi
call fcn.6717921b
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x6717c4e9
mov eax, dword [esp + 0xd8]
cmp eax, 0x100
jb 0x6717c579
push dword [ebp + 8]
lea eax, [eax*4 + 4]
push eax
call dword [ebp]
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0xe8], ecx
test ecx, ecx
jne 0x6717c570
and dword [esp + 0xb8], ebx
push 0x79
pop ecx
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0xb8]
mov edi, dword [esp + 0x34]
lea edi, [edi + eax*2]
mov eax, dword [esp + 0x5c]
sub edi, dword [esp + 0x34]
sar edi, 1
mov dword [eax], edi
mov eax, dword [esp + 0x60]
push ebx
mov dword [eax], ecx
call fcn.6717be64
pop ecx
xor ebx, ebx
lea eax, [esp + 0x654]
cmp dword [esp + 0xe0], eax
je 0x6717c531
push dword [ebp + 8]
push dword [esp + 0xe4]
call dword [ebp + 4]
pop ecx
pop ecx
cmp dword [esp + 0xcc], 0x14
jbe 0x6717c54a
push dword [ebp + 8]
push dword [esp + 0xcc]
call dword [ebp + 4]
pop ecx
pop ecx
lea eax, [esp + 0x254]
cmp dword [esp + 0xe8], eax
je 0x6717c569
push dword [ebp + 8]
push dword [esp + 0xec]
call dword [ebp + 4]
pop ecx
pop ecx
mov eax, ebx
jmp 0x6717cc2a
mov eax, dword [esp + 0xd8]
jmp 0x6717c580
mov ecx, dword [esp + 0xe8]
lea eax, [eax*4 + 4]
xor esi, esi
push eax
push esi
push ecx
call fcn.671a4d9e
add esp, 0xc
cmp dword [esp + 0x44], ebx
je 0x6717c5be
lea eax, [esp + 0x64]
push eax
push esi
push esi
push dword [esp + 0xec]
call fcn.67174adb
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x6717c4e9
mov eax, dword [esp + 0x14]
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1654]
mov dword [esp + 0x1c], eax
mov eax, 0x86
mov word [esp + 0x1654], ax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x68]
push eax
push esi
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x50]
push eax
push esi
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x44]
push eax
push dword [esp + 0xfc]
call fcn.67177b7c
mov ecx, dword [esp + 0x40]
add esp, 0x30
test ecx, ecx
jne 0x6717c4e9
cmp dword [esp + 0x3c], 0x10000
jbe 0x6717c64c
push 0x78
pop ecx
mov dword [esp + 0x10], ecx
jmp 0x6717c4e9
movzx eax, word [esp + 0xbe]
movzx ecx, word [esp + 0xbc]
push dword [ebp + 8]
imul ecx, eax
add ecx, dword [esp + 0x40]
lea eax, [ecx*2 + 0x70]
push eax
mov dword [esp + 0x28], eax
call dword [ebp]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x6717c681
push 0x79
jmp 0x6717c642
push 8
lea eax, [ebx + 0x68]
push esi
push eax
call fcn.671a4d9e
mov eax, dword [esp + 0x38]
mov esi, ebp
mov edi, ebx
push 0x20
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x14]
mov dword [ebx + 0x10], esi
push esi
push eax
call fcn.671a4d9e
mov eax, dword [esp + 0x38]
add esp, 0x18
mov dword [ebx + 0x34], eax
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x38], 0x50435245
mov eax, dword [esp + 0xd0]
mov dword [ebx + 0x40], eax
mov eax, dword [ebp + 0x24]
mov dword [ebx + 0x44], eax
mov eax, dword [esp + 0xd4]
or eax, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
or eax, 2
mov dword [ebx + 0x48], eax
mov eax, dword [esp + 0x54]
mov dword [ebx + 0x4c], eax
mov eax, dword [esp + 0x48]
mov dword [ebx + 0x50], eax
mov eax, dword [esp + 0x4c]
mov dword [ebx + 0x54], eax
mov eax, dword [esp + 0x50]
mov word [ebx + 0x60], ax
xor eax, eax
mov dword [ebx + 0x64], eax
mov dword [ebx + 0x68], eax
mov word [ebx + 0x62], dx
mov dword [ebx + 0x58], esi
mov dword [ebx + 0x5c], esi
mov ax, word [esp + 0xbe]
mov word [ebx + 0x6c], ax
movzx edx, ax
mov ax, word [esp + 0xbc]
mov word [ebx + 0x6e], ax
movzx edi, ax
xor eax, eax
imul edi, edx
mov dword [esp + 0xc0], eax
lea eax, [ebx + 0x70]
mov dword [esp + 0x88], eax
mov ax, word [esp + 0xbc]
mov dword [esp + 0xdc], esi
add edi, 0x38
mov dword [esp + 0x110], esi
mov dword [esp + 0x114], esi
mov dword [esp + 0x118], esi
mov dword [esp + 0xc4], esi
lea edi, [ebx + edi*2]
mov dword [esp + 0x28], edi
mov dword [esp + 0x7c], edi
test ax, ax
je 0x6717c7cb
xor ecx, ecx
cmp cx, ax
jae 0x6717c7cb
mov esi, dword [esp + 0xc8]
mov edi, ecx
add esi, 8
movzx eax, word [esi]
push edi
push dword [esi - 4]
push eax
push dword [esi - 8]
lea eax, [esp + 0x74]
push eax
call fcn.67174692
movzx eax, word [esp + 0xd0]
lea esi, [esi + 0xc]
add esp, 0x14
inc edi
cmp edi, eax
jb 0x6717c79d
mov edi, dword [esp + 0x28]
xor esi, esi
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x20], eax
mov eax, 0x86
mov word [edi], ax
lea eax, [esp + 0x64]
push esi
push eax
push esi
lea eax, [esp + 0x50]
mov dword [esp + 0x28], edi
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x50]
push eax
push esi
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x44]
push eax
push dword [ebx + 0x40]
call fcn.67177b7c
add esp, 0x30
test eax, eax
jns 0x6717c823
or dword [ebx + 0x48], 0x2000
mov ax, word [esp + 0xd8]
mov word [ebx + 0x68], ax
mov ax, word [esp + 0xec]
mov word [ebx + 0x6a], ax
mov ax, word [esp + 0x10c]
mov word [ebx + 0x64], ax
cmp dword [esp + 0x114], 0
je 0x6717c85c
or dword [ebx + 0x48], 0x800000
mov eax, esi
jmp 0x6717c868
mov eax, dword [esp + 0x44]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], eax
xor ecx, ecx
mov eax, dword [esp + 0x1c]
mov word [eax], cx
sub eax, edi
add eax, 2
sar eax, 1
cmp eax, dword [esp + 0x3c]
jbe 0x6717c889
push 0x7b
jmp 0x6717c642
sub eax, dword [esp + 0x3c]
add eax, eax
add dword [ebx + 0x34], eax
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x6717c4e9
cmp dword [esp + 0x11c], ecx
je 0x6717c9a1
push 8
mov dword [esp + 0x20], esi
pop esi
push dword [esp + 0x24]
push edi
call fcn.6717825b
mov dword [esp + 0x50], eax
pop ecx
pop ecx
test eax, eax
je 0x6717c9a1
movzx ecx, word [eax + 2]
mov dword [esp + 0x2c], ecx
test ecx, ecx
jne 0x6717c8dd
mov eax, edi
jmp 0x6717c963
and dword [esp + 0x20], 0
mov eax, esi
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x4c], edi
test edx, edx
je 0x6717c925
cmp ecx, dword [esp + eax*8 + 0x128]
je 0x6717c91a
jle 0x6717c90a
mov edi, dword [esp + eax*8 + 0x124]
mov dword [esp + 0x4c], edi
mov edi, dword [esp + 0x28]
inc dword [esp + 0x20]
inc eax
and eax, 7
cmp dword [esp + 0x20], edx
jb 0x6717c8f0
jmp 0x6717c925
mov eax, dword [esp + eax*8 + 0x124]
test eax, eax
jne 0x6717c963
push ecx
push dword [esp + 0x28]
push dword [esp + 0x54]
call fcn.671a0e76
add esp, 0xc
test eax, eax
je 0x6717c990
sub esi, 1
push 7
pop ecx
cmovs esi, ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + esi*8 + 0x128], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + esi*8 + 0x124], eax
cmp ecx, 8
jae 0x6717c963
inc ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x48]
sub eax, edi
push dword [esp + 0x24]
sar eax, 1
mov word [ecx + 2], ax
lea eax, [ecx + 4]
push eax
call fcn.6717825b
mov dword [esp + 0x50], eax
pop ecx
pop ecx
test eax, eax
jne 0x6717c8ca
mov ecx, dword [esp + 0x10]
jmp 0x6717c999
mov ecx, 0x99
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x6717c4e9
test dword [ebx + 0x40], 0x4000
jne 0x6717c9d6
lea eax, [esp + 0x64]
push eax
push dword [esp + 0x28]
push edi
call fcn.6719fcc9
mov ecx, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
mov edx, 0xb4
cmovne ecx, edx
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x6717c4e9
mov eax, dword [ebx + 0x40]
mov esi, eax
test eax, eax
js 0x6717c9ff
xor ecx, ecx
lea eax, [esp + 0x64]
push ecx
push ecx
push eax
push ecx
push edi
call fcn.67178e54
add esp, 0x14
test eax, eax
je 0x6717c9ff
or esi, 0x80000000
mov dword [ebx + 0x40], esi
test esi, 0x10000
jne 0x6717c512
xor edi, edi
cmp dword [esp + 0x14], edi
jge 0x6717ca66
push edi
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x30]
call fcn.6717805f
mov esi, eax
add esp, 0xc
mov eax, dword [esp + 0x14]
test eax, eax
jns 0x6717ca6a
xor ecx, ecx
cmp dword [ebx + 0x40], ecx
jl 0x6717cb03
push ecx
push ecx
lea eax, [esp + 0x6c]
push eax
push ecx
push dword [esp + 0x38]
call fcn.67178fe1
add esp, 0x14
test eax, eax
mov eax, dword [esp + 0x14]
je 0x6717cb03
or dword [ebx + 0x48], 0x200
jmp 0x6717cb03
mov esi, dword [esp + 0x38]
mov ecx, dword [ebx + 0x48]
mov eax, ecx
or eax, 0x10
mov dword [ebx + 0x58], esi
mov dword [ebx + 0x48], eax
xor eax, eax
mov dword [esp + 0x2c], ecx
lea edi, [eax + 1]
mov eax, dword [esp + 0x14]
test al, 1
je 0x6717cb03
cmp esi, 0x80
jb 0x6717caeb
cmp dword [esp + 0x24], 0
jne 0x6717caa0
cmp esi, 0xff
jb 0x6717caeb
cmp esi, 0x10ffff
ja 0x6717cb03
mov eax, esi
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
movzx ecx, word [eax*2 + 0x67392490]
mov eax, esi
shl ecx, 7
and eax, 0x8000007f
jns 0x6717cacc
dec eax
or eax, 0xffffff80
inc eax
add ecx, eax
movzx eax, word [ecx*2 + 0x67396890]
imul eax, eax, 0xc
mov eax, dword [eax + 0x6738f79c]
add eax, esi
cmp eax, esi
je 0x6717caff
mov ecx, dword [esp + 0x2c]
jmp 0x6717caf7
mov eax, dword [esp + 0x6c]
movzx eax, byte [esi + eax]
cmp eax, esi
je 0x6717caff
push 0x30
pop eax
or ecx, eax
mov dword [ebx + 0x48], ecx
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x58]
test edx, edx
js 0x6717cbea
test dword [ebx + 0x40], 0x80000
je 0x6717cb3e
test eax, eax
js 0x6717cb3e
and esi, 0xf800
cmp esi, 0xd800
mov esi, dword [esp + 0x18]
jne 0x6717cb42
mov eax, esi
and eax, 0xfc00
cmp eax, 0xdc00
je 0x6717cb43
jmp 0x6717cb42
mov esi, dword [esp + 0x18]
inc edi
cmp dword [ebx + 0x40], 0
jge 0x6717cb52
test dl, 2
je 0x6717cbea
mov ecx, dword [ebx + 0x48]
mov eax, ecx
or eax, 0x80
mov dword [ebx + 0x5c], esi
mov dword [esp + 0x2c], ecx
mov dword [ebx + 0x48], eax
test dl, 1
je 0x6717cbea
cmp esi, 0x80
jb 0x6717cbd5
cmp dword [esp + 0x24], 0
jne 0x6717cb82
cmp esi, 0xff
jb 0x6717cbd5
cmp esi, 0x10ffff
ja 0x6717cbea
mov eax, esi
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
movzx ecx, word [eax*2 + 0x67392490]
mov eax, esi
shl ecx, 7
and eax, 0x8000007f
jns 0x6717cbae
dec eax
or eax, 0xffffff80
inc eax
add ecx, eax
movzx eax, word [ecx*2 + 0x67396890]
imul eax, eax, 0xc
mov eax, dword [eax + 0x6738f79c]
add eax, esi
cmp eax, esi
je 0x6717cbea
mov eax, dword [esp + 0x2c]
or eax, 0x180
mov dword [ebx + 0x48], eax
jmp 0x6717cbea
mov eax, dword [esp + 0x6c]
movzx eax, byte [esi + eax]
cmp eax, esi
je 0x6717cbea
or ecx, 0x180
mov dword [ebx + 0x48], ecx
push ebx
call fcn.671a11c3
pop ecx
test eax, eax
je 0x6717cbff
mov ecx, 0x83
jmp 0x6717c643
test byte [ebx + 0x48], 0x40
je 0x6717cc0d
push 1
test edi, edi
pop eax
cmove edi, eax
movzx eax, word [ebx + 0x66]
cmp eax, edi
jae 0x6717c512
mov word [ebx + 0x66], di
jmp 0x6717c512
mov dword [edi], 0x75
xor eax, eax
mov ecx, dword [esp + 0x4534]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.671a2e48
add esp, 0x4528
ret