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

Disassembly:
sub esp, 0x378
mov eax, dword [0x10081240]
xor eax, esp
mov dword [esp + 0x374], eax
mov eax, dword [esp + 0x380]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38c]
push ebx
mov ebx, dword [esp + 0x380]
mov dword [esp + 0x44], eax
lea eax, [esp + 4]
push esi
mov esi, dword [esp + 0x38c]
push edi
mov edi, dword [esp + 0x394]
mov dword [esp + 0x74], eax
lea eax, [esp + 0x6c]
push eax
push edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], esi
mov dword [esp + 0x58], edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x74], 1
mov dword [esp + 0x78], 1
call fcn.10178994
add esp, 8
test eax, eax
jle 0x1017a2f5
mov eax, dword [edi + 8]
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
test cl, 1
je 0x1017a2f5
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x74], eax
lea eax, [esp + 0x6c]
push eax
push esi
mov dword [esp + 0x74], 1
mov dword [esp + 0x78], 1
call fcn.10178994
add esp, 8
test eax, eax
js 0x1017a2f5
push esi
call fcn.10178864
add esp, 4
cmp eax, 0x2000
ja 0x1017a2f5
push edi
call fcn.10178864
add esp, 4
cmp eax, 0x2000
ja 0x1017a2f5
mov ebx, dword [esp + 0x14]
mov edx, 0x20
push ebp
lea ebp, [ebx*2 + 4]
and ebp, 8
add ebp, ebx
nop word [eax + eax]
mov eax, ebp
shr edx, 1
imul eax, ebx
mov ecx, 2
sub ecx, eax
imul ebp, ecx
cmp edx, 8
jae 0x101799a4
xor eax, eax
mov dword [esp + 0x3c], 1
push 0x300
push eax
mov dword [esp + 0x34], eax
neg ebp
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
lea eax, [esp + 0x8c]
push eax
mov dword [esp + 0x88], ebp
mov dword [esp + 0x4c], 0
mov dword [esp + 0x3c], 1
mov dword [esp + 0x70], 1
mov dword [esp + 0x64], 1
call fcn.101937f6
push esi
call fcn.10178864
add esp, 0x10
cmp eax, 0x29f
jbe 0x10179a36
mov dword [esp + 0x20], 6
jmp 0x10179a67
cmp eax, 0xef
jbe 0x10179a47
mov dword [esp + 0x20], 5
jmp 0x10179a67
cmp eax, 0x4f
jbe 0x10179a56
mov dword [esp + 0x20], 4
jmp 0x10179a67
mov ecx, 0x17
cmp ecx, eax
sbb eax, eax
and eax, 2
inc eax
mov dword [esp + 0x20], eax
mov eax, dword [edi + 4]
mov ebx, dword [esp + 0x48]
inc eax
push eax
push ebx
mov dword [esp + 0x18], eax
call fcn.1017a9e4
mov esi, eax
add esp, 8
test esi, esi
jne 0x1017a181
mov esi, dword [esp + 0x10]
cmp esi, 0x2710
jbe 0x10179a9b
lea esi, [eax - 0x10]
jmp 0x1017a181
mov eax, dword [0x100721d8]
cmp dword [esp + 0x94], esi
jae 0x10179b1e
push 4
push esi
call eax
mov ecx, eax
add esp, 8
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x10179ac3
lea esi, [eax - 0x10]
jmp 0x1017a181
mov edx, dword [esp + 0x98]
test edx, edx
je 0x10179b0b
mov eax, dword [esp + 0x94]
shl eax, 2
push eax
push edx
push ecx
call fcn.101937fc
mov eax, dword [esp + 0xa0]
shl eax, 2
push eax
push dword [esp + 0xa8]
call fcn.1016eb14
push dword [esp + 0xac]
call dword [0x100721e0]
mov ecx, dword [esp + 0x28]
add esp, 0x18
mov eax, dword [0x100721d8]
mov dword [esp + 0x94], esi
mov dword [esp + 0x98], ecx
add esi, esi
cmp esi, 0x2710
jbe 0x10179b32
mov esi, 0xfffffff0
jmp 0x1017a181
test esi, esi
je 0x10179b52
push 4
push esi
call eax
add esp, 8
test eax, eax
jne 0x10179b4a
lea esi, [eax - 0x10]
jmp 0x1017a181
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov dword [esp + 0x80], ecx
cmp ecx, 0xffffffff
jne 0x10179b8c
push eax
lea eax, [esp + 0x68]
push eax
call fcn.10178a64
mov esi, eax
add esp, 8
test esi, esi
jne 0x1017a181
lea eax, [esp + 0x64]
mov dword [esp + 0x64], 1
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x50]
test eax, eax
je 0x10179bad
cmp dword [eax + 8], 0
je 0x10179bad
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [esp + 0x3c], xmm0
mov dword [esp + 0x44], eax
jmp 0x10179c28
push 4
push 1
call dword [0x100721d8]
add esp, 8
test eax, eax
jne 0x10179bc6
lea esi, [eax - 0x10]
jmp 0x1017a181
mov dword [esp + 0x44], eax
mov dword [eax], 1
mov eax, dword [edi + 4]
shl eax, 6
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x44], 1
push eax
call fcn.1017c404
mov esi, eax
add esp, 8
test esi, esi
jne 0x1017a179
lea eax, [esp + 0x3c]
push edi
push eax
push eax
call fcn.1017b8b4
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1017a179
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x44]
test ecx, ecx
je 0x10179c28
movq xmm0, qword [esp + 0x3c]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
mov esi, dword [esp + 0x24]
push edi
push esi
mov dword [esp + 0x34], eax
call fcn.10178994
add esp, 8
test eax, eax
lea eax, [esp + 0x90]
js 0x10179cf5
push edi
push esi
push eax
call fcn.1017b8b4
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1017a181
mov esi, dword [edi + 4]
inc esi
cmp esi, 0x2710
jbe 0x10179c72
lea esi, [eax - 0x10]
jmp 0x1017a181
cmp dword [esp + 0x94], esi
jae 0x10179d09
push 4
push esi
call dword [0x100721d8]
mov ecx, eax
add esp, 8
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x10179c9d
lea esi, [eax - 0x10]
jmp 0x1017a181
mov edx, dword [esp + 0x98]
test edx, edx
je 0x10179ce5
mov eax, dword [esp + 0x94]
shl eax, 2
push eax
push edx
push ecx
call fcn.101937fc
mov eax, dword [esp + 0xa0]
shl eax, 2
push eax
push dword [esp + 0xa8]
call fcn.1016eb14
push dword [esp + 0xac]
call dword [0x100721e0]
mov ecx, dword [esp + 0x28]
add esp, 0x18
mov dword [esp + 0x94], esi
mov dword [esp + 0x98], ecx
jmp 0x10179d09
push esi
push eax
call fcn.10178a64
mov esi, eax
add esp, 8
test esi, esi
jne 0x1017a181
lea eax, [esp + 0x30]
push eax
push ebp
push edi
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0xa0]
push eax
call fcn.1017d464
lea eax, [esp + 0x50]
push eax
push ebx
call fcn.10178a64
mov esi, eax
add esp, 0x1c
mov dword [esp + 0x28], esi
test esi, esi
jne 0x1017a181
lea eax, [esp + 0x30]
push eax
push ebp
push edi
push ebx
call fcn.1017d564
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp eax, 1
jbe 0x10179f90
dec eax
mov edx, 1
mov ecx, eax
mov dword [esp + 0x18], eax
shl edx, cl
lea ecx, [esp + 0x84]
mov dword [esp + 0x24], edx
lea eax, [edx + edx*2]
lea ecx, [ecx + eax*4]
mov eax, dword [edi + 4]
inc eax
mov dword [esp + 0x14], ecx
push eax
push ecx
call fcn.1017a9e4
mov esi, eax
add esp, 8
test esi, esi
jne 0x1017a181
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x90]
cmp ecx, eax
je 0x10179ebf
mov esi, dword [esp + 0x94]
test esi, esi
jne 0x10179dd7
mov eax, dword [ecx + 4]
test eax, eax
je 0x10179ebf
shl eax, 2
push eax
push esi
push dword [ecx + 8]
mov dword [ecx], 1
call fcn.101937f6
jmp 0x10179ebc
add esi, 0xffffffff
je 0x10179def
mov eax, dword [esp + 0x98]
nop
cmp dword [eax + esi*4], 0
jne 0x10179def
sub esi, 1
jne 0x10179de4
mov eax, dword [esp + 0x90]
inc esi
mov dword [ecx], eax
mov eax, dword [ecx + 4]
cmp eax, esi
jae 0x10179e83
cmp esi, 0x2710
jbe 0x10179e16
mov esi, 0xfffffff0
jmp 0x1017a181
push 4
push esi
call dword [0x100721d8]
mov ecx, eax
add esp, 8
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x10179e34
lea esi, [eax - 0x10]
jmp 0x1017a181
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 8]
test edx, edx
je 0x10179e78
mov eax, dword [eax + 4]
shl eax, 2
push eax
push edx
push ecx
call fcn.101937fc
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 4]
shl eax, 2
push eax
push dword [ecx + 8]
call fcn.1016eb14
mov eax, dword [esp + 0x28]
push dword [eax + 8]
call dword [0x100721e0]
mov eax, dword [esp + 0x2c]
add esp, 0x18
mov ecx, dword [esp + 0x10]
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
shl esi, 2
jmp 0x10179eac
sub eax, esi
lea edx, [esi*4]
shl eax, 2
push eax
mov eax, dword [ecx + 8]
add eax, edx
mov dword [esp + 0x14], edx
push 0
push eax
call fcn.101937f6
mov eax, dword [esp + 0x20]
add esp, 0xc
mov esi, dword [esp + 0x10]
push esi
push dword [esp + 0x9c]
push dword [eax + 8]
call fcn.101937fc
add esp, 0xc
xor esi, esi
mov dword [esp + 0x28], esi
cmp dword [esp + 0x18], esi
jbe 0x10179ef2
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
nop
lea eax, [esp + 0x30]
push eax
push ebp
push edi
push ebx
push ebx
call fcn.1017d464
add esp, 0x14
sub esi, 1
jne 0x10179ed4
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x48]
mov eax, dword [esp + 0x24]
mov edx, 1
mov ecx, dword [esp + 0x20]
inc eax
shl edx, cl
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edx
cmp eax, edx
jae 0x10179f90
lea eax, [eax + eax*2]
lea ecx, [esp + 0x84]
lea ecx, [ecx + eax*4]
mov dword [esp + 0x1c], ecx
nop
mov eax, dword [edi + 4]
inc eax
push eax
push ecx
call fcn.1017a9e4
mov esi, eax
add esp, 8
test esi, esi
jne 0x1017a181
mov ecx, dword [esp + 0x1c]
lea eax, [ecx - 0xc]
push eax
push ecx
call fcn.10178a64
mov esi, eax
add esp, 8
mov dword [esp + 0x28], esi
test esi, esi
jne 0x1017a181
lea eax, [esp + 0x30]
push eax
push ebp
push edi
lea eax, [esp + 0x9c]
push eax
push dword [esp + 0x2c]
call fcn.1017d464
mov eax, dword [esp + 0x2c]
add esp, 0x14
mov ecx, dword [esp + 0x1c]
inc eax
add ecx, 0xc
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
cmp eax, dword [esp + 0x10]
jb 0x10179f24
mov eax, dword [esp + 0x4c]
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
jmp 0x10179fb9
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x10179fd3
test eax, eax
je 0x1017a0df
dec eax
mov ecx, 0x20
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x4c]
dec ecx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
mov eax, dword [eax + 8]
mov eax, dword [eax + ebx*4]
mov ebx, dword [esp + 0x48]
shr eax, cl
and eax, 1
jne 0x1017a015
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x10179fb5
cmp ecx, 1
jne 0x1017a015
lea eax, [esp + 0x30]
push eax
push ebp
push edi
push ebx
push ebx
call fcn.1017d464
mov edx, dword [esp + 0x38]
add esp, 0x14
jmp 0x10179fb5
mov ecx, dword [esp + 0x20]
inc edx
sub ecx, edx
mov dword [esp + 0x18], 2
shl eax, cl
or dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], edx
cmp edx, ecx
jne 0x10179fb9
mov esi, ecx
nop dword [eax]
lea eax, [esp + 0x30]
push eax
push ebp
push edi
push ebx
push ebx
call fcn.1017d464
add esp, 0x14
sub esi, 1
jne 0x1017a044
mov ecx, dword [esp + 0x20]
lea ebx, [esp + 0x84]
mov eax, 1
xor edi, edi
shl eax, cl
mov dword [esp + 0x18], eax
mov ebp, eax
push dword [esp + 0x1c]
push edi
call fcn.10185234
push eax
lea eax, [esp + 0x64]
push ebx
push eax
call fcn.10185354
mov esi, eax
add esp, 0x14
mov dword [esp + 0x28], esi
test esi, esi
jne 0x1017a0a1
inc edi
add ebx, 0xc
cmp edi, ebp
jb 0x1017a074
test esi, esi
mov ebp, dword [esp + 0x7c]
jne 0x1017a181
mov edi, dword [esp + 0x54]
lea eax, [esp + 0x30]
mov ebx, dword [esp + 0x48]
push eax
push ebp
push edi
lea eax, [esp + 0x64]
push eax
push ebx
call fcn.1017d464
add esp, 0x14
mov dword [esp + 0x18], 1
xor edx, edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], edx
jmp 0x10179fb5
test edx, edx
je 0x1017a138
mov ecx, dword [esp + 0x20]
mov eax, 1
mov esi, dword [esp + 0x24]
shl eax, cl
mov dword [esp + 0x54], eax
lea eax, [esp + 0x30]
push eax
push ebp
push edi
push ebx
push ebx
call fcn.1017d464
mov eax, dword [esp + 0x30]
add esp, 0x14
add eax, eax
mov dword [esp + 0x1c], eax
test dword [esp + 0x54], eax
je 0x1017a12f
lea eax, [esp + 0x30]
push eax
push ebp
push edi
lea eax, [esp + 0x9c]
push eax
push ebx
call fcn.1017d464
add esp, 0x14
sub esi, 1
jne 0x1017a0f6
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x30]
push eax
push ebp
push edi
push ebx
call fcn.1017d564
add esp, 0x10
cmp dword [esp + 0x80], 0xffffffff
jne 0x1017a181
mov eax, dword [esp + 0x4c]
cmp dword [eax + 4], 0
je 0x1017a181
mov eax, dword [eax + 8]
test byte [eax], 1
je 0x1017a181
push ebx
push edi
push ebx
mov dword [ebx], 0xffffffff
call fcn.101787f4
add esp, 0xc
mov esi, eax
jmp 0x1017a181
mov eax, dword [esp + 0x44]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x20]
mov ebp, 1
shl ebp, cl
mov edx, 1
lea ecx, [ecx - 1]
shl edx, cl
cmp edx, ebp
jae 0x1017a1ea
lea eax, [edx + edx*2]
sub ebp, edx
lea edi, [esp + 0x8c]
lea edi, [edi + eax*4]
lea eax, [edi - 8]
test eax, eax
je 0x1017a1e2
mov ecx, dword [edi]
test ecx, ecx
je 0x1017a1ce
mov eax, dword [edi - 4]
shl eax, 2
push eax
push ecx
call fcn.1016eb14
push dword [edi]
call dword [0x100721e0]
add esp, 0xc
mov dword [edi - 8], 1
mov dword [edi - 4], 0
mov dword [edi], 0
add edi, 0xc
sub ebp, 1
jne 0x1017a1a9
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0x1017a21a
mov eax, dword [esp + 0x94]
shl eax, 2
push eax
push ecx
call fcn.1016eb14
push dword [esp + 0xa0]
mov ebx, dword [0x100721e0]
call ebx
add esp, 0xc
jmp 0x1017a220
mov ebx, dword [0x100721e0]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x90], 1
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
test edi, edi
je 0x1017a25d
mov eax, dword [esp + 0x34]
shl eax, 2
push eax
push edi
call fcn.1016eb14
push edi
call ebx
add esp, 0xc
mov edi, dword [esp + 0x6c]
test edi, edi
je 0x1017a279
mov eax, dword [esp + 0x68]
shl eax, 2
push eax
push edi
call fcn.1016eb14
push edi
call ebx
add esp, 0xc
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x1017a298
mov eax, dword [esp + 0x5c]
shl eax, 2
push eax
push ecx
call fcn.1016eb14
push dword [esp + 0x68]
call ebx
add esp, 0xc
mov eax, dword [esp + 0x50]
mov dword [esp + 0x58], 1
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
test eax, eax
je 0x1017a2be
cmp dword [eax + 8], 0
jne 0x1017a2da
mov ebp, dword [esp + 0x2c]
test ebp, ebp
je 0x1017a2da
mov eax, dword [esp + 0x40]
shl eax, 2
push eax
push ebp
call fcn.1016eb14
push ebp
call ebx
add esp, 0xc
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x374]
xor ecx, esp
call fcn.101927e4
add esp, 0x378
ret
mov ecx, dword [esp + 0x380]
mov eax, 0xfffffffc
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101927e4
add esp, 0x378
ret