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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, ecx
mov dword [esp + 0x34], 0
push ebx
push esi
push edi
mov ecx, dword [eax]
mov edi, edx
mov ebx, dword [eax + 8]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 0x38]
dec ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], ecx
dec ecx
mov dword [eax + 0x38], ecx
mov esi, dword [edi + 0x30]
mov al, byte [edi]
mov dword [esp + 0x34], ecx
mov ecx, dword [edi + 0x34]
mov edx, dword [esi]
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x48], ebx
mov byte [esp + 0x13], al
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x50], esi
mov dword [esp + 0x28], edx
cmp al, 0x85
je 0x1017c2f1
mov eax, dword [esp + 0x38]
mov edi, 1
cmp byte [eax + 0x51], 0
jne 0x1017c2ed
lea eax, [edx + edx*4]
shl eax, 2
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x14]
nop dword [eax + eax]
mov eax, dword [eax + 0x1c]
cmp edi, dword [eax]
jg 0x1017c2ed
xor ecx, ecx
test edx, edx
jle 0x1017c24f
lea edx, [esi + 0x14]
mov esi, dword [esp + 0x28]
movzx eax, word [edx]
cmp eax, edi
je 0x1017c247
inc ecx
add edx, 0x14
cmp ecx, esi
jl 0x1017c238
mov esi, dword [esp + 0x50]
mov edx, dword [esp + 0x28]
cmp ecx, edx
jne 0x1017c2da
mov ecx, dword [esp + 0x38]
push 0
push 0x35
call fcn.1011f970
mov esi, eax
add esp, 8
test esi, esi
je 0x1017c34f
push 0x34
push 0
push esi
call sub.VCRUNTIME140.dll_memset
mov edx, dword [esp + 0x5c]
add esp, 0xc
mov ecx, dword [esp + 0x18]
or eax, 0xffffffff
mov byte [esi], 0x98
mov word [esi + 0x22], ax
mov byte [esi + 0x34], 0
or dword [esi + 4], 0x400
push esi
mov dword [esi + 0x18], 1
mov dword [esi + 8], edi
call fcn.10154e70
mov edx, dword [esp + 0x2c]
mov esi, eax
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x50], esi
mov dword [eax + 0x30], esi
test esi, esi
je 0x1017c2de
mov ecx, dword [esp + 0x4c]
inc edx
mov dword [esp + 0x28], edx
mov word [ecx + esi + 0x14], di
add ecx, 0x14
mov dword [esp + 0x4c], ecx
jmp 0x1017c2de
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
inc edi
cmp byte [ecx + 0x51], 0
je 0x1017c220
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
lea eax, [edx*4 + 4]
push 0
push eax
call fcn.1011f970
add esp, 8
mov dword [esp + 0x58], eax
test eax, eax
je 0x1017c35b
mov edi, dword [esp + 0x28]
mov ecx, 1
mov dword [eax], edi
cmp edi, ecx
jl 0x1017c336
lea edx, [esi + 0x14]
mov ebx, eax
movzx eax, word [edx]
lea edx, [edx + 0x14]
dec eax
mov dword [ebx + ecx*4], eax
inc ecx
cmp ecx, edi
jle 0x1017c323
mov ebx, dword [esp + 0x48]
mov edi, dword [esp + 0x14]
mov edx, edi
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.1017ad90
add esp, 4
mov dword [esp + 0x5c], eax
jmp 0x1017c363
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x5c], 0
mov eax, dword [esp + 0x18]
mov edx, esi
mov dword [edi + 0x30], esi
push 0
mov ecx, dword [eax]
call fcn.10154620
mov ecx, dword [esp + 0x30]
add esp, 4
cmp byte [esp + 0x13], 0x85
mov dword [ecx + 0x30], eax
jne 0x1017c393
mov dword [esp + 0x50], 0
jmp 0x1017c48e
mov eax, dword [edi + 0x1c]
mov ecx, dword [esp + 0x18]
mov esi, dword [eax]
mov eax, dword [ecx + 0x2c]
mov dword [esp + 0x4c], esi
lea edx, [eax + 1]
inc eax
add eax, esi
mov dword [esp + 0x50], edx
mov dword [ecx + 0x2c], eax
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x1017c3ce
push 0
push edx
push 0
mov edx, 0x45
mov ecx, ebx
call fcn.1013e870
add esp, 0xc
jmp 0x1017c401
mov edi, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0x45
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x38]
mov edx, esi
push 1
call fcn.101797a0
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
je 0x1017c48e
xor esi, esi
cmp dword [esp + 0x4c], esi
jle 0x1017c48e
mov ebx, dword [esp + 0x14]
lea ecx, [eax + 0x14]
xor edi, edi
mov dword [esp + 0x44], ecx
nop
mov edx, dword [ebx + 0x34]
test edx, edx
je 0x1017c44e
mov ecx, dword [esp + 0x18]
push esi
call fcn.1017ad40
mov ecx, dword [esp + 0x48]
add esp, 4
test eax, eax
jne 0x1017c468
jmp 0x1017c450
xor eax, eax
mov edx, dword [ebx + 0x1c]
cmp esi, dword [edx]
jge 0x1017c468
mov edx, dword [edx + edi + 4]
mov ecx, dword [esp + 0x18]
call fcn.10153010
mov ecx, dword [esp + 0x44]
mov dword [ecx], eax
add edi, 0x14
mov eax, dword [esp + 0x30]
add ecx, 4
mov dword [esp + 0x44], ecx
mov eax, dword [eax + 0x10]
mov byte [esi + eax], 0
inc esi
cmp esi, dword [esp + 0x4c]
jl 0x1017c430
mov ebx, dword [esp + 0x48]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov edx, edi
mov ecx, dword [esp + 0x18]
mov dword [edi + 0x34], 0
push str.ORDER
mov dword [eax + 0x38], 0
push dword [edi + 0x30]
call fcn.10152420
mov eax, dword [esp + 0x34]
add esp, 8
cmp dword [eax + 0x34], 0
jne 0x1017c4d6
mov ecx, dword [esp + 0x18]
mov edx, eax
push str.ORDER
push dword [eax + 0x30]
call fcn.10152420
add esp, 8
push dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov edx, edi
call fcn.1017ac00
add esp, 4
cmp dword [edi + 8], 0
je 0x1017c5b9
cmp byte [esp + 0x13], 0x85
jne 0x1017c5b9
mov ecx, dword [esp + 0x18]
mov esi, dword [ecx + 0x2c]
inc esi
lea eax, [esi + 1]
mov dword [ecx + 0x2c], eax
mov edx, dword [edi + 0xc]
mov dword [esp + 0x44], eax
test edx, edx
je 0x1017c519
inc edx
jmp 0x1017c51c
mov edx, dword [edi + 8]
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x1017c539
push 0
push esi
push edx
mov edx, 0x4d
mov ecx, ebx
call fcn.1013e870
add esp, 0xc
jmp 0x1017c568
mov edi, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0x4d
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x1017c588
push 0
push dword [esp + 0x48]
mov edx, 0x4d
mov ecx, ebx
push esi
call fcn.1013e870
add esp, 0xc
jmp 0x1017c5c3
mov edx, dword [esp + 0x44]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0x4d
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x1017c5c3
mov dword [esp + 0x44], 0
xor esi, esi
mov edx, dword [edi + 0x3c]
test edx, edx
je 0x1017c5d3
mov ecx, dword [esp + 0x38]
call fcn.101540e0
mov ecx, dword [esp + 0x18]
mov dword [edi + 0x3c], 0
mov byte [esp + 0x78], 0xd
mov dword [esp + 0x88], 0
mov eax, dword [ecx + 0x2c]
inc eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x84], 0
lea edx, [eax + 1]
mov byte [esp + 0x60], 0xd
mov dword [esp + 0x1c], edx
add edx, 2
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x64], eax
mov dword [ecx + 0x2c], edx
movzx eax, byte [edi]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x70], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
sub eax, 0x85
je 0x1017c66f
sub eax, 1
je 0x1017c668
sub eax, 1
je 0x1017c661
mov eax, str.UNION
jmp 0x1017c674
mov eax, str.INTERSECT
jmp 0x1017c674
mov eax, str.EXCEPT
jmp 0x1017c674
mov eax, str.UNION_ALL
push eax
push str.MERGE___s_
push 1
push ecx
call fcn.1013eda0
mov eax, dword [ebx + 0x6c]
add esp, 0x10
mov dword [esp + 0x4c], eax
lea edx, [eax + 1]
cmp dword [ebx + 0x70], eax
jg 0x1017c6b0
push edx
push 0
push dword [esp + 0x28]
mov edx, 0xd
mov ecx, ebx
call fcn.1013e870
add esp, 0xc
mov dword [esp + 0x4c], eax
jmp 0x1017c6e0
mov edi, dword [esp + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x68]
mov dword [ebx + 0x6c], edx
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x14]
mov dword [eax + ecx*4], 0xd
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x2c]
push str.LEFT
push 1
mov dword [eax + 8], esi
mov esi, dword [esp + 0x20]
push esi
call fcn.1013eda0
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x84]
add esp, 0xc
mov ecx, esi
push eax
call fcn.1017f720
mov ecx, dword [ebx + 0x6c]
add esp, 4
cmp dword [ebx + 0x70], ecx
jg 0x1017c732
push 0
push 0
push dword [esp + 0x28]
mov edx, 0x42
mov ecx, ebx
call fcn.1013e870
add esp, 0xc
jmp 0x1017c765
mov edx, dword [esp + 0x20]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0x42
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx + 0xc]
mov byte [eax + 0x13], 0
mov eax, dword [ebx + 0xc]
mov dword [eax + 0x1c], 0
mov eax, dword [ebx]
mov edx, dword [ebx + 0x6c]
cmp byte [eax + 0x51], 0
je 0x1017c788
mov eax, 0x102799b8
jmp 0x1017c79d
mov ecx, dword [esp + 0x4c]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x68]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov eax, dword [ebx + 0x6c]
mov dword [esp + 0x54], eax
lea esi, [eax + 1]
cmp dword [ebx + 0x70], eax
jg 0x1017c7cb
push esi
push 0
push dword [esp + 0x24]
mov edx, 0xd
mov ecx, ebx
call fcn.1013e870
add esp, 0xc
mov dword [esp + 0x54], eax
jmp 0x1017c7f7
mov edx, dword [esp + 0x1c]
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x68]
mov dword [ebx + 0x6c], esi
mov dword [eax + ecx*4], 0xd
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x14]
mov edi, dword [edi + 8]
mov ecx, dword [esp + 0x44]
push str.RIGHT
mov esi, dword [eax + 0xc]
push 1
push dword [esp + 0x20]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], 0
call fcn.1013eda0
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x6c]
mov ecx, dword [esp + 0x24]
add esp, 0xc
push eax
call fcn.1017f720
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [eax + 8], edi
mov edi, eax
mov dword [edi + 0xc], esi
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x1017c864
push 0
push 0
push dword [esp + 0x24]
mov edx, 0x42
mov ecx, ebx
call fcn.1013e870
add esp, 0xc
jmp 0x1017c897
mov edx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0x42
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx + 0xc]
mov edx, edi
push dword [esp + 0x24]
mov esi, dword [ebp + 8]
push dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
push dword [esp + 0x58]
mov byte [eax + 0x13], 0
mov eax, dword [ebx + 0xc]
mov dword [eax + 0x1c], 0
mov eax, dword [esp + 0x28]
inc eax
push eax
lea eax, [esp + 0x88]
push esi
push eax
call fcn.1017bdc0
mov dword [esp + 0x5c], eax
add esp, 0x18
mov al, byte [esp + 0x13]
cmp al, 0x85
je 0x1017c8e4
cmp al, 0x84
jne 0x1017c90c
push dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x64]
push dword [esp + 0x34]
mov edx, edi
push dword [esp + 0x58]
push dword [esp + 0x48]
push esi
push eax
call fcn.1017bdc0
add esp, 0x18
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x1017c923
add dword [eax], 0xffffffff
jne 0x1017c923
mov ecx, dword [eax + 0xc]
mov edx, eax
call fcn.1011f680
mov al, byte [esp + 0x13]
cmp al, 0x86
je 0x1017caea
cmp al, 0x87
je 0x1017caea
mov esi, dword [ebx + 0x6c]
mov dword [esp + 0x30], esi
cmp dword [ebx + 0x70], esi
jg 0x1017c964
push 0
push dword [esp + 0x44]
mov edx, 0xc
mov ecx, ebx
push dword [esp + 0x44]
call fcn.1013e870
mov esi, eax
add esp, 0xc
mov dword [esp + 0x30], esi
jmp 0x1017c997
mov edx, dword [esp + 0x3c]
lea eax, [esi + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [esi + esi*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x40]
mov dword [eax + ecx*4], 0xc
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [ebx + 0x6c]
mov dword [esp + 0x4c], edx
cmp dword [ebx + 0x70], edx
jg 0x1017c9c2
push 0
push dword [esp + 0x28]
mov edx, 0xe
mov ecx, ebx
push dword [esp + 0x24]
call fcn.1013e870
add esp, 0xc
mov dword [esp + 0x4c], eax
jmp 0x1017c9f5
lea eax, [edx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [ebx + 0x68]
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4], 0xe
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x1017ca13
push 0
push esi
push 0
mov edx, 0xb
mov ecx, ebx
call fcn.1013e870
add esp, 0xc
jmp 0x1017ca42
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x2c]
movzx esi, word [eax + 2]
movzx eax, word [edi + 2]
movsx ecx, ax
movsx edx, si
cmp ax, si
jl 0x1017caa7
lea eax, [edx + 0x31]
cmp ecx, eax
jle 0x1017ca71
movzx eax, word [edi + 2]
mov word [edi + 2], ax
mov eax, dword [esp + 0x30]
jmp 0x1017caf8
lea eax, [edx + 0x1f]
cmp ecx, eax
jle 0x1017ca8a
movzx eax, word [edi + 2]
inc eax
movzx eax, ax
mov word [edi + 2], ax
mov eax, dword [esp + 0x30]
jmp 0x1017caf8
sub ecx, edx
movzx eax, byte [ecx + str._n_n_t_t_b_b_a_a_a]
movzx ecx, word [edi + 2]
add ax, cx
movzx eax, ax
mov word [edi + 2], ax
mov eax, dword [esp + 0x30]
jmp 0x1017caf8
lea eax, [ecx + 0x31]
cmp edx, eax
jle 0x1017caba
mov eax, esi
mov word [edi + 2], ax
mov eax, dword [esp + 0x30]
jmp 0x1017caf8
lea eax, [ecx + 0x1f]
cmp edx, eax
jle 0x1017cad1
lea eax, [esi + 1]
movzx eax, ax
mov word [edi + 2], ax
mov eax, dword [esp + 0x30]
jmp 0x1017caf8
sub edx, ecx
movzx eax, byte [edx + str._n_n_t_t_b_b_a_a_a]
add ax, si
movzx eax, ax
mov word [edi + 2], ax
mov eax, dword [esp + 0x30]
jmp 0x1017caf8
mov ecx, dword [esp + 0x24]
mov eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x4c], ecx
cmp byte [esp + 0x13], 0x87
jne 0x1017cb1e
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x2c]
movzx eax, word [eax + 2]
cmp word [edi + 2], ax
jle 0x1017cc24
mov word [edi + 2], ax
jmp 0x1017cc24
mov esi, dword [ebx + 0x6c]
mov dword [esp + 0x48], esi
cmp dword [ebx + 0x70], esi
jg 0x1017cb4d
mov eax, dword [esp + 0x1c]
mov edx, 0xc
push 0
push dword [esp + 0x48]
inc eax
mov ecx, ebx
push eax
call fcn.1013e870
mov esi, eax
add esp, 0xc
mov dword [esp + 0x48], esi
jmp 0x1017cb81
mov edx, dword [esp + 0x1c]
lea eax, [esi + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [esi + esi*4]
mov eax, dword [ebx + 0x68]
inc edx
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + ecx*4], 0xc
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x1017cba4
push 0
push dword [esp + 0x28]
mov edx, 0xe
mov ecx, ebx
push dword [esp + 0x28]
call fcn.1013e870
add esp, 0xc
jmp 0x1017cbd7
mov edx, dword [esp + 0x20]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4], 0xe
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x1017cbf5
push 0
push esi
push 0
mov edx, 0xb
mov ecx, ebx
call fcn.1013e870
add esp, 0xc
jmp 0x1017cc24
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov esi, dword [ebx + 0x6c]
mov dword [esp + 0x50], esi
cmp dword [ebx + 0x70], esi
jg 0x1017cc53
mov eax, dword [esp + 0x1c]
mov edx, 0xc
push 0
push dword [esp + 0x48]
inc eax
mov ecx, ebx
push eax
call fcn.1013e870
mov esi, eax
add esp, 0xc
mov dword [esp + 0x50], esi
jmp 0x1017cc8b
mov edx, dword [esp + 0x1c]
lea eax, [esi + 1]
mov edi, dword [esp + 0x14]
lea ecx, [esi + esi*4]
mov dword [ebx + 0x6c], eax
inc edx
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + ecx*4], 0xc
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x1017ccae
push 0
push dword [esp + 0x34]
mov edx, 0xe
mov ecx, ebx
push dword [esp + 0x28]
call fcn.1013e870
add esp, 0xc
jmp 0x1017cce1
mov edx, dword [esp + 0x20]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4], 0xe
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x1017cd02
push 0
push dword [esp + 0x38]
mov edx, 0xb
mov ecx, ebx
push 0
call fcn.1013e870
add esp, 0xc
jmp 0x1017cd35
mov edx, dword [esp + 0x34]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov al, byte [esp + 0x13]
cmp al, 0x85
jne 0x1017cd46
mov dword [esp + 0x44], esi
jmp 0x1017ce0e
cmp al, 0x87
jne 0x1017cd58
mov dword [esp + 0x44], esi
inc esi
mov dword [esp + 0x50], esi
jmp 0x1017ce0e
mov edx, dword [ebx + 0x6c]
mov dword [esp + 0x44], edx
cmp dword [ebx + 0x70], edx
jg 0x1017cd83
push 0
push dword [esp + 0x34]
mov edx, 0xe
mov ecx, ebx
push dword [esp + 0x28]
call fcn.1013e870
add esp, 0xc
mov dword [esp + 0x44], eax
jmp 0x1017cdb6
lea eax, [edx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [ebx + 0x68]
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4], 0xe
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x1017cdd7
push 0
push dword [esp + 0x38]
mov edx, 0xb
mov ecx, ebx
push 0
call fcn.1013e870
add esp, 0xc
jmp 0x1017ce0a
mov edx, dword [esp + 0x34]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov al, byte [esp + 0x13]
mov ecx, dword [ebx + 0x6c]
mov dword [esp + 0x30], ecx
cmp al, 0x85
je 0x1017ce1d
cmp al, 0x84
jne 0x1017ce70
cmp dword [ebx + 0x70], ecx
jg 0x1017ce3d
push 0
push dword [esp + 0x44]
mov edx, 0xc
mov ecx, ebx
push dword [esp + 0x44]
call fcn.1013e870
add esp, 0xc
jmp 0x1017ce70
mov edx, dword [esp + 0x3c]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x40]
mov dword [eax + ecx*4], 0xc
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
mov esi, dword [esp + 0x48]
cmp dword [ebx + 0x70], ecx
jg 0x1017ce94
push 0
push esi
push dword [esp + 0x24]
mov edx, 0xe
mov ecx, ebx
call fcn.1013e870
add esp, 0xc
jmp 0x1017cec3
mov edx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0xe
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x1017cee4
push 0
push dword [esp + 0x38]
mov edx, 0xb
mov ecx, ebx
push 0
call fcn.1013e870
add esp, 0xc
jmp 0x1017cf17
mov edx, dword [esp + 0x34]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx]
mov edx, dword [ebx + 0x6c]
cmp byte [eax + 0x51], 0
je 0x1017cf29
mov eax, 0x102799b8
jmp 0x1017cf3e
mov ecx, dword [esp + 0x54]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x68]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x1017cf65
mov edx, dword [esp + 0x4c]
mov ecx, ebx
push 0
push edx
push dword [esp + 0x28]
mov edx, 0xe
call fcn.1013e870
add esp, 0xc
jmp 0x1017cf98
mov edx, dword [esp + 0x20]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x4c]
mov dword [eax + ecx*4], 0xe
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x1017cfb8
push 0
push esi
push dword [esp + 0x24]
mov edx, 0xe
mov ecx, ebx
call fcn.1013e870
add esp, 0xc
jmp 0x1017cfe7
mov edx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0xe
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0x34]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x1017d005
push edx
mov edx, ebx
call fcn.1013ef70
add esp, 4
jmp 0x1017d00e
mov ecx, dword [ecx + 0x40]
mov eax, dword [ebx + 0x6c]
mov dword [ecx + edx*4], eax
mov edx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], edx
jg 0x1017d02f
push 0
push 0
push 0
mov edx, 0x55
mov ecx, ebx
call fcn.1013e870
add esp, 0xc
mov edx, eax
jmp 0x1017d062
lea eax, [edx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0x55
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push 0xfffffffffffffff1
push dword [esp + 0x5c]
mov ecx, ebx
call fcn.1013f660
mov esi, dword [ebx + 0x6c]
add esp, 8
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x58], eax
cmp dword [ebx + 0x70], esi
jg 0x1017d0a2
push dword [esp + 0x28]
mov ecx, ebx
push edx
push eax
mov edx, 0x56
call fcn.1013e870
add esp, 0xc
mov esi, eax
jmp 0x1017d0d5
mov edi, dword [esp + 0x58]
lea eax, [esi + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [esi + esi*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x56
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
push 0xfffffffffffffff7
push dword [esp + 0x60]
mov edx, esi
mov ecx, ebx
call fcn.1013f660
mov ecx, dword [ebx + 0x6c]
add esp, 8
test ecx, ecx
jle 0x1017d101
mov eax, dword [ebx + 0x68]
lea ecx, [ecx + ecx*4]
mov edx, 1
mov word [eax + ecx*4 - 0x12], dx
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x1017d126
mov edx, dword [esp + 0x30]
mov ecx, ebx
push edx
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x58]
push edx
mov edx, 0x10
call fcn.1013e870
add esp, 0xc
jmp 0x1017d159
mov edx, dword [esp + 0x50]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4], 0x10
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0x24]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x1017d177
push edx
mov edx, ebx
call fcn.1013ef70
add esp, 4
jmp 0x1017d180
mov ecx, dword [ecx + 0x40]
mov eax, dword [ebx + 0x6c]
mov dword [ecx + edx*4], eax
mov edx, dword [edi + 0x34]
test edx, edx
je 0x1017d195
mov ecx, dword [esp + 0x38]
push 1
call fcn.10177c80
add esp, 4
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x18]
mov dword [edi + 0x34], eax
mov dword [eax + 0x38], edi
mov ecx, dword [ebx + 0xd4]
test ecx, ecx
jne 0x1017d1b1
xor eax, eax
jmp 0x1017d1d7
mov edx, dword [ebx + 8]
test ecx, ecx
jns 0x1017d1bc
mov ecx, dword [edx + 0x6c]
dec ecx
mov eax, dword [edx]
cmp byte [eax + 0x51], 0
je 0x1017d1cb
mov eax, 0x102799b8
jmp 0x1017d1d4
mov eax, dword [edx + 0x68]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov eax, dword [eax + 8]
mov dword [ebx + 0xd4], eax
xor eax, eax
cmp dword [ebx + 0x24], eax
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret