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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10271f78
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x10285008]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
push edi
mov eax, dword [0x10285008]
xor eax, esp
push eax
lea eax, [esp + 0x288]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0x20]
mov esi, dword [ebp + 0xc]
mov eax, dword [edi + 0x24]
cmp ecx, dword [edi + 0x18]
jne 0x101781ef
cmp eax, dword [edi + 0x1c]
jne 0x101781ef
xor eax, eax
inc eax
jmp 0x101787be
lea edx, [esp + 0x4c]
push edx
push eax
push ecx
push dword [edi + 8]
mov ecx, dword [edi + 4]
push dword [edi + 0xc]
call fcn.100ebfb8
mov dword [esp + 0x18], eax
test eax, eax
je 0x10178275
mov ecx, dword [0x102c7ff4]
test ecx, ecx
je 0x10178234
cmp dword [ecx + 8], 2
je 0x10178222
cmp dword [ecx + 8], 3
jne 0x1017822c
mov esi, dword [ecx + 0x544]
test esi, esi
jne 0x10178236
mov esi, dword [ecx + 0x538]
jmp 0x10178236
xor esi, esi
cmp dword [ebp + 8], 0
mov ebx, 0x10058658
jne 0x10178246
mov ebx, 0x1008dd8c
mov ecx, eax
call fcn.10210755
push eax
push ecx
push dword [edi + 0x24]
mov ecx, esi
push dword [edi + 0x20]
call fcn.100b4821
pop ecx
push eax
push ebx
push 0x1008dd90
call fcn.100d3aab
mov eax, dword [esp + 0x28]
add esp, 0x10
jmp 0x101787be
mov eax, dword [esp + 0x4c]
xor ebx, ebx
mov dword [edi + 0x20], eax
mov eax, dword [esp + 0x50]
mov dword [edi + 0x24], eax
cmp dword [edi + 0x14], ebx
jle 0x1017857d
movzx eax, word [esp + 0x94]
lea ecx, [esp + 0xd4]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x1c], eax
call fcn.100d4dd0
mov dword [esp + 0x290], ebx
mov eax, dword [edi + 4]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
cmp dword [eax + 0xa8], 0x1003
jb 0x101783d6
mov ecx, dword [esp + 0x14]
mov eax, ecx
or eax, dword [esp + 0x1c]
je 0x101783d6
mov eax, ecx
and eax, 1
or eax, ebx
jne 0x101783d6
mov eax, dword [esp + 0x18]
test eax, eax
je 0x101783d6
test al, 1
jne 0x101783d6
lea ecx, [esp + 0x10]
shr eax, 1
push ecx
push eax
lea ecx, [esp + 0xdc]
mov dword [esp + 0x28], eax
call fcn.100b5ac0
neg eax
sbb eax, eax
not eax
and dword [esp + 0x10], eax
je 0x101783d6
mov eax, dword [esp + 0x18]
mov ecx, dword [edi + 4]
push eax
push dword [esp + 0xd8]
push dword [esp + 0x24]
push dword [esp + 0x20]
push dword [edi + 0xc]
call fcn.100bd29f
mov edx, eax
test edx, edx
je 0x101783bb
mov ecx, dword [0x102c7ff4]
test ecx, ecx
je 0x1017838c
cmp dword [ecx + 8], 2
je 0x10178372
cmp dword [ecx + 8], 3
jne 0x10178380
mov eax, dword [ecx + 0x544]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x10178390
mov eax, dword [ecx + 0x538]
mov dword [esp + 0x10], eax
jmp 0x10178390
mov dword [esp + 0x10], ebx
mov ecx, edx
call fcn.10210755
push eax
push ecx
push dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
push dword [esp + 0x20]
call fcn.100b4821
pop ecx
push eax
push 0x1008ddf8
call fcn.100d3aea
add esp, 0xc
jmp 0x101783d6
mov ecx, dword [esp + 0xd4]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edx
test ecx, ecx
jne 0x10178536
mov eax, dword [esp + 0xb0]
mov edx, dword [esp + 0xac]
movzx ecx, word [esp + 0xa4]
mov dword [esp + 0x10], eax
mov eax, edx
or eax, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edx
je 0x101784e6
mov eax, edx
and eax, 1
or eax, ebx
jne 0x101784e6
test ecx, ecx
je 0x101784e6
test cl, 1
jne 0x101784e6
mov eax, ecx
lea ecx, [esp + 0x18]
shr eax, 1
push ecx
push eax
lea ecx, [esp + 0xdc]
mov dword [esp + 0x1c], eax
call fcn.100b5ac0
neg eax
sbb eax, eax
not eax
and dword [esp + 0x18], eax
je 0x101784e6
push dword [esp + 0x20]
mov ecx, dword [edi + 4]
push dword [esp + 0xd8]
push dword [esp + 0x18]
push dword [esp + 0x28]
push dword [edi + 0xc]
call fcn.100bd29f
mov edx, eax
test edx, edx
je 0x101784cf
mov ecx, dword [0x102c7ff4]
test ecx, ecx
je 0x101784a0
cmp dword [ecx + 8], 2
je 0x10178486
cmp dword [ecx + 8], 3
jne 0x10178494
mov eax, dword [ecx + 0x544]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x101784a4
mov eax, dword [ecx + 0x538]
mov dword [esp + 0x14], eax
jmp 0x101784a4
mov dword [esp + 0x14], ebx
mov ecx, edx
call fcn.10210755
push eax
push ecx
push dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push dword [esp + 0x28]
call fcn.100b4821
pop ecx
push eax
push 0x1008de68
call fcn.100d3aca
add esp, 0xc
jmp 0x101784e6
mov ecx, dword [esp + 0xd4]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edx
test ecx, ecx
jne 0x10178536
mov ecx, dword [edi + 0xc]
lea eax, [esp + 0xd4]
push 1
push eax
push dword [esp + 0x88]
xor edx, edx
push dword [esp + 0x88]
call fcn.10167825
test eax, eax
jne 0x10178545
mov edx, dword [esp + 0xdc]
mov ecx, dword [esp + 0xd4]
mov dword [esp + 0x28], ecx
cmp edx, 4
jb 0x1017852c
shr edx, 1
dec edx
mov dword [esp + 0x24], edx
jmp 0x10178532
mov edx, ebx
mov dword [esp + 0x24], ebx
test ecx, ecx
je 0x10178545
push 2
lea eax, [edx + edx]
push eax
push ecx
mov ecx, dword [edi + 8]
call fcn.1016fc14
mov edx, dword [esp + 0x24]
lea eax, [esi + 0x30]
mov ecx, dword [esp + 0x28]
push eax
push dword [esp + 0x84]
push dword [esp + 0x84]
push 0x7d0
call fcn.10166f30
or dword [esp + 0x290], 0xffffffff
lea ecx, [esp + 0xd4]
call fcn.100b5ef7
xor eax, eax
cmp dword [ebp + 8], eax
setne al
xor eax, dword [esi + 0x1d4]
and eax, 1
xor dword [esi + 0x1d4], eax
mov eax, dword [esp + 0x7c]
mov dword [esi + 0x1e0], eax
mov eax, dword [esp + 0x80]
mov dword [esi + 0x1e4], eax
mov eax, dword [esp + 0x8c]
mov dword [esi + 0xc], eax
cmp dword [edi + 0x14], ebx
jle 0x10178633
push esi
mov ecx, edi
call fcn.1017972b
cmp dword [ebp + 8], 0
je 0x10178636
test byte [esi], 2
mov eax, dword [esp + 0xcc]
je 0x1017862b
cmp dword [esi + 8], eax
je 0x1017862b
mov ecx, dword [0x102c7ff4]
test ecx, ecx
je 0x10178601
cmp dword [ecx + 8], 2
je 0x101785ef
cmp dword [ecx + 8], 3
jne 0x101785f9
mov edx, dword [ecx + 0x544]
test edx, edx
jne 0x10178603
mov edx, dword [ecx + 0x538]
jmp 0x10178603
mov edx, ebx
push dword [esi + 8]
mov ecx, edx
push eax
push dword [esp + 0x60]
push dword [esp + 0x60]
call fcn.100b4821
push eax
push 0x1008ded8
call fcn.100d3aca
mov eax, dword [esp + 0xdc]
add esp, 0x10
or dword [esi], 2
mov dword [esi + 8], eax
jmp 0x10178636
or dword [esi], 4
cmp dword [edi + 0x14], 2
jl 0x101787bc
test dword [esp + 0xb4], 0x20000000
je 0x101787bc
mov ecx, dword [edi + 4]
lea eax, [esp + 0x2c]
push 0x20
push eax
push dword [esp + 0x80]
push dword [esp + 0x80]
push dword [edi + 0xc]
call fcn.100bd29f
test eax, eax
je 0x101786cd
mov ecx, dword [0x102c7ff4]
test ecx, ecx
je 0x1017869b
cmp dword [ecx + 8], 2
je 0x1017868b
cmp dword [ecx + 8], 3
jne 0x10178695
mov ebx, dword [ecx + 0x544]
test ebx, ebx
jne 0x1017869b
mov ebx, dword [ecx + 0x538]
mov ecx, eax
call fcn.10210755
push eax
push ecx
push dword [esp + 0x80]
mov ecx, ebx
push dword [esp + 0x80]
call fcn.100b4821
pop ecx
push eax
push 0x1008df50
call fcn.100d3aca
add esp, 0xc
jmp 0x101787bc
mov eax, dword [esp + 0x38]
or dword [esi], 0x27
mov dword [esi + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 0xc], eax
movzx eax, word [esp + 0x34]
mov dword [esi + 0x18], eax
xor eax, eax
inc eax
cmp word [esp + 0x2e], ax
jne 0x101787bc
mov eax, dword [esp + 0x30]
add eax, 0xffffffe0
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.msvcrt.dll_malloc]
mov dword [esi + 0x1e8], eax
pop ecx
test eax, eax
je 0x101787bc
push dword [esp + 0x20]
mov ecx, dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x80]
add ecx, 0x20
adc eax, ebx
push eax
push ecx
push dword [edi + 0xc]
mov ecx, dword [edi + 4]
call fcn.100bd29f
test eax, eax
je 0x101787af
mov ecx, dword [0x102c7ff4]
test ecx, ecx
je 0x1017876a
cmp dword [ecx + 8], 2
je 0x10178758
cmp dword [ecx + 8], 3
jne 0x10178762
mov edi, dword [ecx + 0x544]
test edi, edi
jne 0x1017876c
mov edi, dword [ecx + 0x538]
jmp 0x1017876c
mov edi, ebx
mov ecx, eax
call fcn.10210755
mov edx, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x7c]
add edx, 0x20
push ecx
adc eax, ebx
mov ecx, edi
push eax
push edx
call fcn.100b4821
pop ecx
push eax
push 0x1008dfb0
call fcn.100d3aca
add esp, 0xc
push dword [esi + 0x1e8]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov dword [esi + 0x1e8], ebx
jmp 0x101787bc
mov eax, dword [esp + 0x30]
add eax, 0xffffffe0
mov dword [esi + 0x1ec], eax
xor eax, eax
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.10236010
mov esp, ebp
pop ebp
ret 8