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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
xor ebx, ebx
cmp dword [ecx + 0x110], 0
je 0x101799fe
mov eax, ebx
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [eax + 0x40], 0
jne 0x101799f4
cmp byte [edx + 0x2b], 1
je 0x101799f4
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp ecx, 0xb
jne 0x10179a2f
cmp word [edx + 0x20], 0
js 0x10179a2a
mov cl, byte [edx + 0x2a]
cmp cl, 0xb
jne 0x10179d64
mov ecx, 2
mov edi, dword [eax + 0x20]
cmp dword [edi], 1
jne 0x101799f4
cmp dword [edi + 0x1c], 0
jne 0x101799f4
cmp dword [eax + 0x24], 0
jne 0x101799f4
cmp dword [eax + 0x30], 0
jne 0x101799f4
cmp dword [eax + 0x28], 0
jne 0x101799f4
cmp dword [eax + 0x3c], 0
jne 0x101799f4
cmp dword [eax + 0x34], 0
jne 0x101799f4
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x14], edx
test byte [eax + 4], 1
jne 0x101799f4
mov eax, dword [eax + 0x1c]
cmp dword [eax], 1
jne 0x101799f4
mov eax, dword [eax + 8]
cmp byte [eax], 0xb4
jne 0x101799f4
mov eax, dword [esi]
mov dword [ebp - 0x38], eax
add edi, 8
xor ebx, ebx
mov ecx, esi
xor edx, edx
push edi
call fcn.10171140
add esp, 4
mov dword [ebp - 0x20], eax
test eax, eax
je 0x101799f4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x14]
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx + 0x14]
jne 0x10179abd
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx + 0x3c]
je 0x101799f4
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1c]
mov edx, eax
xor dl, cl
js 0x101799f4
mov edx, dword [ebp - 0x20]
cmp byte [edx + 0x2b], 0
jne 0x101799f4
mov edx, dword [ebp - 0x14]
movzx edx, word [edx + 0x22]
mov edi, dword [ebp - 0x20]
mov word [ebp - 0x10], dx
cmp dx, word [edi + 0x22]
jne 0x101799f4
mov edx, dword [ebp - 0x14]
movzx edi, word [edx + 0x20]
mov edx, dword [ebp - 0x20]
cmp di, word [edx + 0x20]
jne 0x101799f4
bt ecx, 0x10
jae 0x10179b1d
and eax, 0x10000
je 0x101799f4
cmp word [ebp - 0x10], 0
jle 0x10179d73
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x14]
mov edi, dword [eax + 4]
mov ecx, dword [ebp - 0x24]
shl ecx, 4
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 4]
mov dword [ebp - 0x1c], edi
movzx eax, word [edi + ecx + 0xe]
and eax, 0x60
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], edx
movzx ecx, word [edx + ecx + 0xe]
and ecx, 0x60
cmp ax, cx
jne 0x10179d6c
test ax, ax
je 0x10179bc3
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
movzx ecx, word [ecx + eax + 0xc]
xor edx, edx
mov eax, 0
test ecx, ecx
je 0x10179b90
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x2b], 0
mov eax, 0
je 0x10179d22
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x18]
movzx ecx, word [edi + ecx + 0xc]
test ecx, ecx
je 0x10179bac
mov edi, dword [ebp - 0x20]
cmp byte [edi + 0x2b], 0
je 0x10179d42
xor ebx, ebx
xor ecx, ecx
push 0xffffffffffffffff
push eax
call fcn.10031230
add esp, 8
test eax, eax
jne 0x101799f4
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
mov al, byte [eax + ecx + 8]
mov edx, dword [ebp - 0x18]
cmp al, byte [edx + ecx + 8]
jne 0x10179d6c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
add eax, ecx
add eax, 0xe
mov edx, dword [ebp - 0x18]
add ecx, edx
add ecx, 0xe
movzx ecx, word [ecx]
bt ecx, 9
jb 0x10179c93
movzx eax, word [eax]
xor ecx, ecx
mov dword [ebp - 0x2c], eax
bt eax, 9
jb 0x10179ccc
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
test byte [ecx + eax + 4], 0xf
je 0x10179c2a
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
test byte [ecx + eax + 4], 0xf
je 0x10179d6c
test byte [ebp - 0x2c], 0x60
jne 0x10179c78
cmp dword [ebp - 0x24], 0
je 0x10179c78
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
movzx ecx, word [ecx + eax + 0xc]
xor eax, eax
test ecx, ecx
je 0x10179c54
mov edx, dword [ebp - 0x14]
cmp byte [edx + 0x2b], 0
je 0x10179e16
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
movzx ecx, word [edx + ecx + 0xc]
test ecx, ecx
je 0x10179c70
mov edx, dword [ebp - 0x20]
cmp byte [edx + 0x2b], 0
je 0x10179e38
test eax, eax
jne 0x10179d6c
mov ecx, dword [ebp - 0x24]
inc ecx
mov eax, dword [ebp - 0x14]
movsx eax, word [eax + 0x22]
mov dword [ebp - 0x24], ecx
cmp ecx, eax
jl 0x10179b2f
jmp 0x10179d73
mov edx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x18]
add edx, edi
mov edx, dword [edx]
dec edx
cmp byte [edx + 1], 0
lea edx, [edx + 1]
jne 0x10179c9e
test cl, 4
jne 0x10179cb0
mov ecx, edx
jmp 0x10179cbb
lea ecx, [edx + 1]
cmp byte [edx + 1], 0
mov edx, ecx
jne 0x10179cb0
movzx eax, word [eax]
mov dword [ebp - 0x2c], eax
bt eax, 9
jae 0x10179d6c
inc ecx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
add eax, edx
mov edi, dword [eax]
dec edi
cmp byte [edi + 1], 0
lea edi, [edi + 1]
jne 0x10179cd7
test byte [ebp - 0x2c], 4
jne 0x10179cea
mov edx, edi
jmp 0x10179cf5
lea edx, [edi + 1]
cmp byte [edi + 1], 0
mov edi, edx
jne 0x10179cea
test ecx, ecx
je 0x10179d6c
xor edi, edi
movzx ebx, byte [edx + edi + 1]
movzx eax, byte [ecx + edi]
cmp bl, al
jne 0x10179d11
test ebx, ebx
jne 0x10179d1f
jmp 0x10179c0c
mov bl, byte [ebx + 0x101af7e8]
cmp bl, byte [eax + 0x101af7e8]
jne 0x10179d6c
inc edi
jmp 0x10179cfb
mov eax, dword [ebp - 0x14]
mov edi, dword [eax + 0x34]
mov eax, 0
test edi, edi
je 0x10179b90
cmp dword [edi], ecx
jge 0x10179e8c
jmp 0x10179b90
mov edi, dword [ebp - 0x20]
mov edi, dword [edi + 0x34]
test edi, edi
je 0x10179bac
cmp dword [edi], ecx
jl 0x10179bac
lea ecx, [ecx + ecx*4]
mov edx, dword [edi + ecx*4 - 0xc]
jmp 0x10179bac
movzx ecx, cl
jmp 0x10179a2f
xor ebx, ebx
jmp 0x101799f4
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10179dd0
xor ebx, ebx
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x36], 0
mov eax, dword [ebp - 0x24]
mov ecx, 1
cmovne eax, ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 8]
test eax, eax
je 0x101799f4
mov edi, eax
mov ecx, dword [ebp - 0x10]
mov edx, edi
call fcn.1017a6e0
test eax, eax
jne 0x10179ed7
mov eax, edi
mov eax, dword [edi + 0x14]
mov edi, eax
test eax, eax
jne 0x10179dae
jmp 0x101799f4
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x10]
test edx, edx
je 0x10179df6
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x10]
call fcn.10157660
xor ebx, ebx
test eax, eax
jne 0x101799f4
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx + 0x24]
bt dword [ecx + 0x20], 0xe
jb 0x10179e98
xor ebx, ebx
test al, 1
jne 0x101799f4
jmp 0x10179eb0
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0x34]
test edx, edx
je 0x10179c54
cmp dword [edx], ecx
jl 0x10179c54
lea eax, [ecx + ecx*4]
mov eax, dword [edx + eax*4 - 0xc]
jmp 0x10179c54
mov edx, dword [ebp - 0x20]
mov edx, dword [edx + 0x34]
test edx, edx
je 0x10179c70
cmp dword [edx], ecx
jl 0x10179c70
lea ecx, [ecx + ecx*4]
mov ecx, dword [edx + ecx*4 - 0xc]
test eax, eax
setne dl
test ecx, ecx
sete dh
xor ebx, ebx
cmp dl, dh
je 0x101799f4
test eax, eax
je 0x10179c78
push dword [ecx + 8]
push dword [eax + 8]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x10179c78
jmp 0x101799f4
lea eax, [ecx + ecx*4]
mov eax, dword [edi + eax*4 - 0xc]
jmp 0x10179b90
xor ebx, ebx
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x30], 0
jne 0x101799f4
and eax, 1
jne 0x101799f4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x10179f0a
mov ecx, dword [ebp - 0x38]
mov ecx, dword [ecx + 0x10]
add ecx, 0xc
xor edx, edx
dec edx
mov dword [ebp - 0x2c], edx
inc dword [ebp - 0x2c]
lea edx, [ecx + 0x10]
cmp dword [ecx], eax
mov ecx, edx
jne 0x10179ec9
jmp 0x10179f11
mov eax, dword [edi + 0x2c]
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx + 0x2c]
jne 0x10179ef4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx + 0x3c]
je 0x1017a67a
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x10179d89
jmp 0x10179dd7
mov dword [ebp - 0x2c], 0xffff8000
mov eax, dword [esi + 8]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1017a19f
mov eax, dword [esi + 0x78]
test eax, eax
cmove eax, esi
mov edx, dword [eax + 0x58]
xor ebx, ebx
inc ebx
mov edi, ebx
mov ecx, dword [ebp - 0x2c]
shl edi, cl
bt edx, ecx
jae 0x1017a1b8
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x1c], eax
add eax, 2
mov dword [esi + 0x28], eax
mov ecx, esi
mov edx, dword [ebp + 0x10]
push dword [ebp - 0x14]
call fcn.1004ef40
add esp, 4
mov dword [ebp - 0x34], eax
mov al, byte [esi + 0x13]
test al, al
je 0x1017a1d3
dec al
mov byte [esi + 0x13], al
movzx eax, al
mov eax, dword [esi + eax*4 + 0xa0]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, 0x4b
push eax
push dword [ebp - 0x3c]
push eax
call fcn.1002fb80
add esp, 0xc
mov al, byte [esi + 0x13]
test al, al
je 0x1017a1e2
dec al
mov byte [esi + 0x13], al
movzx eax, al
mov eax, dword [esi + eax*4 + 0xa0]
mov dword [ebp - 0x30], eax
mov ecx, esi
mov edx, dword [ebp - 0x18]
push 0x71
push dword [ebp - 0x14]
push dword [ebp + 0x10]
call fcn.10040c10
add esp, 0xc
mov dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x38]
test byte [eax + 0x18], 4
jne 0x1017a046
mov eax, dword [ebp - 0x14]
cmp word [eax + 0x20], 0
js 0x1017a205
cmp dword [ebp - 0x24], 0
je 0x1017a1f1
xor eax, eax
mov edi, dword [ebp - 0x10]
mov ecx, edi
mov edx, 0x24
push eax
push eax
push dword [ebp - 0x18]
call fcn.1002fb80
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ecx, edi
mov edx, 9
xor eax, eax
push eax
push eax
push eax
call fcn.1002fb80
add esp, 0xc
mov dword [ebp - 0x48], eax
mov edx, dword [edi]
mov eax, dword [edi + 0x6c]
mov ecx, 0x101f2320
cmp byte [edx + 0x57], 0
jne 0x1017a043
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx + ecx*4]
shl ecx, 2
mov edx, dword [ebp - 0x10]
add ecx, dword [edx + 0x68]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x20]
test byte [eax + 0x1c], 0x80
jne 0x1017a12a
mov ecx, esi
mov edi, dword [ebp - 0x1c]
mov edx, edi
push 0x70
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
call fcn.10040c10
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, 0x24
push eax
push eax
push edi
call fcn.1002fb80
add esp, 0xc
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x14]
cmp word [eax + 0x20], 0
js 0x1017a217
mov ecx, dword [ebp - 0x10]
mov edx, 0x87
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x1c]
call fcn.1002fb80
add esp, 0xc
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x38]
test byte [eax + 0x18], 4
jne 0x1017a103
mov edi, dword [ebp - 0x10]
mov ecx, edi
mov edx, 0x1f
push dword [ebp - 0x30]
push 0
push dword [ebp - 0x18]
call fcn.1002fb80
add esp, 0xc
mov dword [ebp - 0x40], eax
mov ecx, esi
mov edx, dword [ebp - 0x28]
push dword [ebp - 0x14]
call fcn.10179970
add esp, 4
mov edx, dword [edi]
mov eax, dword [edi + 0x6c]
mov ecx, 0x101f2320
cmp byte [edx + 0x57], 0
jne 0x1017a100
mov ecx, dword [ebp - 0x40]
lea ecx, [ecx + ecx*4]
shl ecx, 2
mov edx, dword [ebp - 0x10]
add ecx, dword [edx + 0x68]
mov dword [ecx + 8], eax
cmp dword [ebp - 0x34], 0
jle 0x1017a23f
mov ecx, dword [esi + 8]
mov edx, 0x9f
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.1002fb80
add esp, 0xc
jmp 0x1017a23f
cmp dword [ebp + 0x10], 1
je 0x1017a15c
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp + 0x10]
shl ecx, 4
mov eax, dword [eax + ecx + 4]
cmp byte [eax + 9], 0
je 0x1017a15c
mov ecx, esi
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
push dword [eax]
push 1
push dword [eax + 0x14]
call fcn.10046570
add esp, 0xc
mov dword [ebp - 0x44], 0
cmp dword [ebp - 0x2c], 1
je 0x1017a31d
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp - 0x2c]
shl ecx, 4
mov eax, dword [eax + ecx + 4]
cmp byte [eax + 9], 0
je 0x1017a31d
mov ecx, esi
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
push dword [eax]
push 0
push dword [eax + 0x14]
call fcn.10046570
jmp 0x1017a31a
cmp dword [esi + 0x78], 0
je 0x1017a665
mov ecx, esi
call fcn.1002f500
mov dword [ebp - 0x10], eax
jmp 0x10179f1f
or edx, edi
mov dword [eax + 0x58], edx
cmp dword [ebp - 0x2c], 1
jne 0x10179f3d
mov ecx, eax
call fcn.10042310
jmp 0x10179f3d
mov eax, dword [esi + 0x2c]
inc eax
mov dword [ebp - 0x3c], eax
mov dword [esi + 0x2c], eax
jmp 0x10179f79
mov eax, dword [esi + 0x2c]
inc eax
mov dword [ebp - 0x30], eax
mov dword [esi + 0x2c], eax
jmp 0x10179fb4
mov eax, dword [ebp - 0x28]
add eax, 0xfffffffd
cmp eax, 0xfffffffd
jbe 0x10179ff1
jmp 0x1017a046
mov eax, dword [ebp - 0x14]
cmp dword [eax + 8], 0
je 0x10179fe7
jmp 0x10179ff1
mov eax, dword [ebp - 0x14]
cmp dword [eax + 8], 0
je 0x1017a6a5
mov ecx, dword [ebp - 0x10]
mov edx, 0x87
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x1c]
call fcn.1002fb80
add esp, 0xc
mov dword [ebp - 0x24], eax
mov word [ebp - 0x28], 0xa9
mov eax, dword [ebp - 0x38]
test byte [eax + 0x18], 4
je 0x1017a26b
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, 0x89
push eax
push eax
push dword [ebp - 0x18]
call fcn.1002fb80
add esp, 0xc
mov word [ebp - 0x28], 0x98
mov edi, dword [ebp - 0x10]
mov ecx, edi
mov edx, 0x81
push dword [ebp - 0x30]
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call fcn.1002fb80
add esp, 0xc
mov ecx, edi
mov edx, 0x80
push dword [ebp - 0x30]
push dword [ebp - 0x3c]
push dword [ebp - 0x18]
call fcn.1002fb80
add esp, 0xc
mov eax, dword [ebp - 0x38]
test byte [eax + 0x18], 4
jne 0x1017a2ba
xor edx, edx
dec edx
mov ecx, dword [ebp - 0x10]
push 0xfffffffffffffffb
push dword [ebp - 0x14]
call fcn.1003a120
add esp, 8
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
test eax, eax
jle 0x1017a2d6
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x68]
lea eax, [eax + eax*4]
movzx edx, word [ebp - 0x28]
mov word [ecx + eax*4 - 0x12], dx
xor eax, eax
mov edi, dword [ebp - 0x10]
mov ecx, edi
mov edx, 0x27
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x1c]
call fcn.1002fb80
add esp, 0xc
mov ecx, edi
mov edx, 0x7a
xor eax, eax
push eax
push eax
push dword [ebp - 0x1c]
call fcn.1002fb80
add esp, 0xc
mov ecx, edi
mov edx, 0x7a
xor eax, eax
push eax
push eax
push dword [ebp - 0x18]
call fcn.1002fb80
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1017a593
mov eax, dword [ebp - 0x20]
mov edi, dword [eax + 8]
mov dword [ebp - 0x28], 0
test edi, edi
je 0x1017a35f
mov ecx, dword [ebp - 0x14]
mov edx, edi
call fcn.1017a6e0
test eax, eax
jne 0x1017a58b
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x1017a33f
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x10]
mov edx, 0x70
push dword [ebp - 0x2c]
mov edi, dword [ebp - 0x28]
push dword [edi + 0x2c]
push dword [ebp - 0x1c]
call fcn.1002fb80
add esp, 0xc
mov ecx, esi
mov edx, edi
call fcn.1016f710
mov ecx, dword [ebp - 0x10]
mov edx, 0x71
push dword [ebp + 0x10]
mov edi, dword [ebp - 0x14]
push dword [edi + 0x2c]
push dword [ebp - 0x18]
call fcn.1002fb80
add esp, 0xc
mov ecx, esi
mov edx, edi
call fcn.1016f710
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
test eax, eax
jle 0x1017a3c3
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x68]
lea eax, [eax + eax*4]
mov word [ecx + eax*4 - 0x12], 1
mov ecx, dword [ebp - 0x10]
mov edx, 0x24
xor eax, eax
push eax
push eax
push dword [ebp - 0x1c]
call fcn.1002fb80
add esp, 0xc
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x38]
test byte [eax + 0x18], 4
jne 0x1017a416
mov ax, 8
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x20]
test byte [eax + 0x1c], 0x80
je 0x1017a4c9
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x38]
and eax, 3
xor ecx, ecx
cmp eax, 2
sete cl
or ecx, 8
mov dword [ebp - 0x34], ecx
jmp 0x1017a4c9
mov eax, dword [ebp - 0x28]
movzx eax, word [eax + 0x34]
mov dword [ebp - 0x40], eax
test eax, eax
je 0x1017a479
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x34]
mov edi, dword [ecx + eax*4]
test edi, edi
je 0x1017a480
xor edx, edx
movzx eax, byte [edx + 0x101afa5f]
movzx ecx, byte [edi + edx]
cmp al, cl
jne 0x1017a458
test eax, eax
jne 0x1017a466
jmp 0x1017a469
mov al, byte [eax + 0x101af7e8]
cmp al, byte [ecx + 0x101af7e8]
jne 0x1017a480
inc edx
jmp 0x1017a443
mov ecx, dword [ebp - 0x28]
inc ecx
mov eax, ecx
mov dword [ebp - 0x28], ecx
cmp ecx, dword [ebp - 0x40]
jne 0x1017a434
jmp 0x1017a48f
mov dword [ebp - 0x28], 0
mov ax, 8
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x40]
jne 0x1017a4c9
mov edi, dword [ebp - 0x10]
mov ecx, edi
mov edx, 0x89
xor eax, eax
push eax
push eax
push dword [ebp - 0x18]
call fcn.1002fb80
add esp, 0xc
mov ecx, edi
mov edx, 0x81
xor eax, eax
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call fcn.1002fb80
add esp, 0xc
mov ax, 0x98
mov dword [ebp - 0x34], eax
jmp 0x1017a4e1
mov ecx, dword [ebp - 0x10]
mov edx, 0x86
push 1
push dword [ebp - 0x3c]
push dword [ebp - 0x1c]
call fcn.1002fb80
add esp, 0xc
mov edi, dword [ebp - 0x10]
mov ecx, edi
mov edx, 0x8a
push 0
push dword [ebp - 0x3c]
push dword [ebp - 0x18]
call fcn.1002fb80
add esp, 0xc
mov eax, dword [edi + 0x6c]
test eax, eax
jle 0x1017a513
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x68]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 0x34]
mov word [ecx + eax*4 - 0x12], dx
mov eax, dword [ebp - 0x24]
inc eax
mov edi, dword [ebp - 0x10]
mov ecx, edi
mov edx, 0x27
push 0
push eax
push dword [ebp - 0x1c]
call fcn.1002fb80
add esp, 0xc
mov edx, dword [edi]
mov eax, dword [edi + 0x6c]
mov ecx, 0x101f2320
cmp byte [edx + 0x57], 0
jne 0x1017a54e
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx + ecx*4]
shl ecx, 2
mov edx, dword [ebp - 0x10]
add ecx, dword [edx + 0x68]
mov dword [ecx + 8], eax
mov edi, dword [ebp - 0x10]
mov ecx, edi
mov edx, 0x7a
xor eax, eax
push eax
push eax
push dword [ebp - 0x1c]
call fcn.1002fb80
add esp, 0xc
mov ecx, edi
mov edx, 0x7a
xor eax, eax
push eax
push eax
push dword [ebp - 0x18]
call fcn.1002fb80
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
jmp 0x1017a323
mov dword [ebp - 0x28], edi
jmp 0x1017a35f
cmp dword [ebp - 0x44], 0
je 0x1017a5be
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
mov eax, dword [eax + 0x6c]
mov ecx, 0x101f2320
cmp byte [edx + 0x57], 0
jne 0x1017a5bb
mov ecx, dword [ebp - 0x44]
lea ecx, [ecx + ecx*4]
shl ecx, 2
mov edx, dword [ebp - 0x10]
add ecx, dword [edx + 0x68]
mov dword [ecx + 8], eax
cmp dword [ebp - 0x30], 0
je 0x1017a5de
movzx eax, byte [esi + 0x13]
cmp eax, 7
ja 0x1017a5de
mov ecx, eax
inc cl
mov byte [esi + 0x13], cl
mov ecx, dword [ebp - 0x30]
mov dword [esi + eax*4 + 0xa0], ecx
cmp dword [ebp - 0x3c], 0
je 0x1017a5fe
movzx eax, byte [esi + 0x13]
cmp eax, 7
ja 0x1017a5fe
mov ecx, eax
inc cl
mov byte [esi + 0x13], cl
mov ecx, dword [ebp - 0x3c]
mov dword [esi + eax*4 + 0xa0], ecx
cmp dword [ebp - 0x48], 0
je 0x101799f4
cmp dword [esi + 0x74], 0
jne 0x1017a6c7
xor ebx, ebx
mov esi, dword [ebp - 0x10]
mov ecx, esi
mov edx, 0x46
push ebx
push ebx
push ebx
call fcn.1002fb80
add esp, 0xc
mov edx, dword [esi]
mov eax, dword [esi + 0x6c]
mov ecx, 0x101f2320
cmp byte [edx + 0x57], 0
jne 0x1017a648
mov ecx, dword [ebp - 0x48]
lea ecx, [ecx + ecx*4]
shl ecx, 2
mov edx, dword [ebp - 0x10]
add ecx, dword [edx + 0x68]
mov dword [ecx + 8], eax
mov ecx, dword [ebp - 0x10]
mov edx, 0x7a
push ebx
push ebx
push dword [ebp - 0x18]
call fcn.1002fb80
add esp, 0xc
jmp 0x101799f4
mov eax, dword [esi]
test byte [eax + 0x50], 8
jne 0x1017a1a9
mov byte [esi + 0x17], 1
jmp 0x1017a1a9
mov ecx, dword [0x101ef120]
test ecx, ecx
je 0x101799f4
call dword [section..00cfg]
push 0x19b
call ecx
add esp, 4
test eax, eax
jne 0x10179ef4
jmp 0x101799f4
mov eax, dword [ebp - 0x38]
test byte [eax + 0x18], 8
jne 0x1017a224
mov ecx, dword [ebp - 0x10]
mov edx, 0x7f
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x18]
jmp 0x1017a234
mov ecx, esi
call fcn.10178db0
jmp 0x1017a612