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

Disassembly:
sub esp, 0x1c
mov ecx, dword [esp + 0x28]
push ebp
push esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x2c]
lea eax, [edi + 0x88]
mov ebp, dword [esi + 0x1c]
push ecx
push esi
mov dword [esp + 0x14], ebp
mov dword [edi], ebp
mov dword [edi + 4], ecx
mov dword [eax], 0
mov dword [edi + 0x8c], eax
call fcn.10151820
add esp, 8
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x1017cad6
push ebx
mov ebx, dword [esp + 0x3c]
push ebx
push esi
call fcn.10151a20
add esp, 8
mov dword [esp + 0x30], eax
test eax, eax
jne 0x1017cad5
mov eax, dword [esi + 0x20]
mov dword [edi + 0x94], eax
mov edx, dword [esi + 0x20]
mov dword [esp + 0x18], edx
lea esi, [edx + ebx]
lea eax, [edx + 0xf]
cmp eax, esi
ja 0x1017caa6
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
mov dword [edi + 8], ecx
movzx ecx, byte [edx + 2]
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
mov dword [edi + 0xc], ecx
movzx ecx, byte [edx + 4]
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x10], ecx
movzx eax, byte [edx + 6]
shl ax, 8
movsx ecx, ax
movzx eax, byte [edx + 7]
or ecx, eax
mov dword [edi + 0x14], ecx
movzx eax, byte [edx + 8]
shl ax, 8
movsx ecx, ax
movzx eax, byte [edx + 9]
or ecx, eax
mov dword [edi + 0x18], ecx
movzx eax, byte [edx + 0xa]
shl ax, 8
movsx ecx, ax
movzx eax, byte [edx + 0xb]
or ecx, eax
mov dword [edi + 0x1c], ecx
movzx eax, byte [edx + 0xc]
shl ax, 8
movsx ecx, ax
movzx eax, byte [edx + 0xd]
or ecx, eax
mov dword [edi + 0x20], ecx
movzx ebx, byte [edx + 0xe]
add edx, 0xf
mov eax, ebx
mov dword [esp + 0x1c], ebx
and eax, 4
mov dword [edi + 0x24], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], eax
jne 0x1017c74e
add edx, 2
cmp edx, esi
ja 0x1017caa6
movzx eax, byte [edx - 2]
shl ax, 8
movsx ecx, ax
movzx eax, byte [edx - 1]
or ecx, eax
mov dword [esp + 0x14], edx
mov dword [edi + 0x28], ecx
test bl, bl
jns 0x1017c776
push edi
push 0x101d9c24
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.1017c290
add esp, 0x10
mov dword [esp + 0x30], eax
test eax, eax
jne 0x1017caae
mov edx, dword [esp + 0x14]
lea eax, [edx + 3]
cmp eax, esi
ja 0x1017caa6
mov edx, eax
movzx ebx, byte [edx - 3]
movzx ecx, byte [edx - 2]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [edx - 1]
shl ebx, 8
or ebx, ecx
jbe 0x1017c877
lea edx, [eax + ebx]
mov dword [esp + 0x14], edx
cmp edx, esi
ja 0x1017caa6
nop
lea ecx, [eax + 4]
cmp ecx, edx
ja 0x1017c873
movzx esi, byte [eax]
movzx ecx, byte [eax + 1]
shl esi, 8
or esi, ecx
cmp esi, 4
jb 0x1017c873
cmp esi, ebx
ja 0x1017c873
movzx edx, byte [eax + 2]
lea ebp, [esi + eax]
movzx ecx, byte [eax + 3]
add eax, 4
shl edx, 8
or edx, ecx
sub edx, 1
je 0x1017c844
sub edx, 1
je 0x1017c7ff
sub edx, 1
jne 0x1017c865
lea ecx, [edi + 0x58]
jmp 0x1017c847
lea ecx, [eax + 0x20]
cmp ecx, ebp
ja 0x1017c865
movzx ecx, byte [eax + 0xa]
shl cx, 8
movsx edx, cx
movzx ecx, byte [eax + 0xb]
or edx, ecx
mov dword [edi + 0x2c], edx
movzx ecx, byte [eax + 0xc]
shl cx, 8
movsx edx, cx
movzx ecx, byte [eax + 0xd]
or edx, ecx
mov dword [edi + 0x30], edx
movzx ecx, byte [eax + 0xe]
movzx eax, byte [eax + 0xf]
shl cx, 8
movsx ecx, cx
or ecx, eax
mov dword [edi + 0x34], ecx
jmp 0x1017c865
lea ecx, [edi + 0x54]
push ecx
push dword [esp + 0x14]
lea ecx, [esi - 4]
push ecx
push eax
call fcn.1017d680
add esp, 0x10
mov dword [esp + 0x30], eax
test eax, eax
jne 0x1017cad5
mov edx, dword [esp + 0x14]
mov eax, ebp
sub ebx, esi
jne 0x1017c7b0
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
lea esi, [edx + 1]
add ecx, dword [esp + 0x3c]
cmp esi, ecx
ja 0x1017caa6
movzx ebx, byte [edx]
mov dword [edi + 0x68], ebx
lea eax, [esi + ebx*2]
cmp eax, ecx
ja 0x1017caa6
lea eax, [esp + 0x30]
push eax
push 0
push ebx
push 0
push 4
push ebp
call fcn.1014f5e0
add esp, 0x18
mov dword [edi + 0x6c], eax
cmp dword [esp + 0x30], 0
jne 0x1017caae
xor edx, edx
test ebx, ebx
je 0x1017c8e2
movzx eax, byte [esi]
add esi, 2
shl ax, 8
movsx ecx, ax
movzx eax, byte [esi - 1]
or ecx, eax
mov eax, dword [edi + 0x6c]
mov dword [eax + edx*4], ecx
inc edx
cmp edx, ebx
jb 0x1017c8c4
mov ecx, dword [esp + 0x18]
lea eax, [esi + 8]
add ecx, dword [esp + 0x3c]
cmp eax, ecx
ja 0x1017caa6
movzx eax, byte [esi]
mov dword [edi + 0x70], eax
movzx eax, byte [esi + 1]
mov dword [edi + 0x74], eax
movzx ecx, byte [esi + 2]
movzx eax, byte [esi + 3]
shl ecx, 8
or ecx, eax
mov edx, dword [esp + 0x1c]
mov dword [edi + 0x44], ecx
movzx ecx, byte [esi + 4]
movzx eax, byte [esi + 5]
add esi, 8
shl ecx, 8
or ecx, eax
mov ebp, dword [esp + 0x10]
mov dword [edi + 0x38], ecx
movzx ebx, byte [esi - 2]
movzx eax, byte [esi - 1]
mov ecx, dword [esp + 0x34]
shl ebx, 8
or ebx, eax
mov eax, esi
mov dword [edi + 0x78], ebx
sub eax, dword [ecx + 0x20]
add eax, dword [esp + 0x38]
mov dword [edi + 0x7c], eax
mov eax, edx
and eax, 2
mov dword [esp + 0x14], ebx
mov dword [esp + 0x38], eax
mov eax, 0
setne al
add eax, 4
cmp dword [esp + 0x20], 0
lea ecx, [eax + 2]
cmove ecx, eax
mov eax, edx
and eax, 8
mov dword [esp + 0x24], eax
lea eax, [ecx + 1]
cmove eax, ecx
mov ecx, edx
and ecx, 0x10
mov dword [esp + 0x28], ecx
lea ecx, [eax + 1]
cmove ecx, eax
and edx, 0x20
mov dword [esp + 0x1c], edx
lea eax, [ecx + 1]
cmove eax, ecx
mov ecx, dword [esp + 0x18]
add ecx, dword [esp + 0x3c]
imul eax, ebx
add eax, esi
cmp eax, ecx
ja 0x1017caa6
lea eax, [esp + 0x30]
push eax
push 0
push ebx
push 0
push 0x10
push ebp
call fcn.1014f5e0
add esp, 0x18
mov dword [edi + 0x80], eax
cmp dword [esp + 0x30], 0
jne 0x1017caae
test ebx, ebx
je 0x1017caae
mov ebp, dword [esp + 0x14]
xor ebx, ebx
mov eax, esi
nop word [eax + eax]
mov edx, dword [edi + 0x80]
add edx, ebx
cmp dword [esp + 0x38], 0
je 0x1017ca10
movzx esi, byte [eax]
lea ecx, [eax + 2]
movzx eax, byte [ecx - 1]
shl esi, 8
or esi, eax
jmp 0x1017ca16
movzx esi, byte [esi]
lea ecx, [eax + 1]
cmp dword [esp + 0x20], 0
mov eax, ecx
mov dword [edx], esi
je 0x1017ca39
lea ecx, [eax + 2]
movzx eax, byte [ecx - 2]
shl ax, 8
movsx esi, ax
movzx eax, byte [ecx - 1]
or esi, eax
mov eax, ecx
jmp 0x1017ca3c
mov esi, dword [edi + 0x28]
cmp dword [esp + 0x24], 0
mov dword [edx + 4], esi
je 0x1017ca4b
lea ecx, [eax + 1]
mov eax, ecx
cmp dword [esp + 0x28], 0
je 0x1017ca63
movzx ecx, byte [eax]
lea esi, [eax + 2]
movzx eax, byte [esi - 1]
shl ecx, 8
or ecx, eax
jmp 0x1017ca69
movzx ecx, byte [ecx]
lea esi, [eax + 1]
cmp dword [esp + 0x1c], 0
mov dword [edx + 8], ecx
je 0x1017ca84
movzx ecx, byte [esi]
add esi, 3
shl ecx, 8
movzx eax, byte [esi - 2]
or ecx, eax
jmp 0x1017ca8a
movzx ecx, byte [esi]
add esi, 2
movzx eax, byte [esi - 1]
add ebx, 0x10
shl ecx, 8
or ecx, eax
mov eax, esi
mov dword [edx + 0xc], ecx
sub ebp, 1
jne 0x1017c9f0
jmp 0x1017caae
mov dword [esp + 0x30], 8
mov ebx, dword [esp + 0x34]
push ebx
call fcn.10151ae0
push ebx
call fcn.101518b0
mov dword [edi + 0x90], eax
add esp, 8
mov eax, dword [esp + 0x30]
mov dword [edi + 0x94], 0
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret