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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
push ebx
push esi
mov dword [esp + 0x18], ecx
xor eax, eax
push edi
mov ecx, edx
mov dword [esp + 0x18], edx
mov ebx, eax
call fcn.102111c7
mov ecx, dword [ebp + 0x28]
mov esi, eax
lea eax, [esp + 0xc]
push eax
push 0x208
call fcn.100b5ac0
neg eax
sbb eax, eax
not eax
and eax, dword [esp + 0xc]
mov dword [esp + 0x20], eax
jne 0x10167352
mov eax, 0x8007000e
jmp 0x101676b7
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.101646c5
test eax, eax
je 0x10167385
cmp dword [esp + 0xc], ebx
jne 0x1016736e
xor ebx, ebx
mov dword [esp + 0x74], esi
inc ebx
cmp dword [eax], 0
jbe 0x101673d0
mov ecx, dword [eax]
lea edi, [esp + 0x74]
mov esi, dword [eax + 4]
lea edi, [edi + ebx*4]
add ebx, dword [eax]
rep movsd dword es:[edi], dword [esi]
jmp 0x101673d0
push 0xb
push 0x1008a334
push esi
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x101673a4
mov dword [esp + 0x74], 0x1008a350
jmp 0x101673cd
push 5
push 0x1008a36c
push esi
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x101673c9
lea eax, [esi + 0xa]
mov dword [esp + 0x78], esi
push 2
mov dword [esp + 0x78], eax
pop ebx
jmp 0x101673d0
mov dword [esp + 0x74], esi
xor ebx, ebx
inc ebx
push 8
xor eax, eax
lea edi, [esp + 0x58]
test byte [ebp + 0x14], 4
pop ecx
rep stosd dword es:[edi], eax
jne 0x10167402
test dword [0x102a5b74], 0x400
mov eax, dword [ebp + 8]
mov dword [esp + 0x54], eax
je 0x101673fb
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x5c], eax
push dword [0x102d2d20]
mov eax, dword [0x102d2d28]
push eax
mov dword [esp + 0x6c], 0x80004005
mov dword [esp + 0x4c], eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
push dword [0x102d2d24]
neg eax
sbb eax, eax
and eax, dword [0x102d2d20]
mov dword [esp + 0x54], eax
mov eax, dword [0x102d2d2c]
push eax
mov dword [esp + 0x5c], eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 0x10
neg eax
sbb eax, eax
and eax, dword [0x102d2d24]
xor esi, esi
mov dword [esp + 0x50], eax
mov ecx, esi
mov dword [esp + 0x10], esi
mov edx, dword [esp + ecx*4 + 0x44]
mov dword [esp + 0xc], edx
test edx, edx
je 0x1016755e
cmp word [edx], si
je 0x1016755e
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
cmp dword [eax + 0xc], 0x403
je 0x101674e7
mov eax, esi
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x101674e7
push 8
pop ecx
lea esi, [esp + 0x54]
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x24]
xor esi, esi
push ecx
push 0x10167280
push dword [esp + 0x28]
push 2
push esi
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [esp + eax*4 + 0x90]
mov eax, dword [esp + 0x3c]
push edx
push dword [eax + 0x50]
call dword [sym.imp.dbghelp.dll_SymFindFileInPathW]
test eax, eax
jne 0x10167572
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
inc eax
mov dword [esp + 0x14], eax
cmp eax, ebx
jb 0x1016748f
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 0x14]
test dl, 2
jne 0x10167561
mov eax, dword [esp + ecx*4 + 0x44]
cmp eax, dword [0x102d2d24]
je 0x10167561
mov eax, esi
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x10167561
push 8
pop ecx
lea esi, [esp + 0x54]
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 1
push ecx
push 0x101672c0
push dword [esp + 0x28]
push dword [esp + 0x18]
push dword [esp + eax*4 + 0x84]
call dword [sym.imp.dbghelp.dll_FindExecutableImageExW]
test eax, eax
je 0x10167546
cmp eax, 0xffffffff
je 0x10167546
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x34], 0
je 0x10167572
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, ebx
jb 0x10167505
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 0x14]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, 4
jae 0x101675af
xor esi, esi
jmp 0x1016745d
mov ecx, dword [ebp + 0x28]
call fcn.100b46b7
mov eax, dword [ebp + 0x18]
xor ecx, ecx
cmp dword [esp + 0x10], ecx
sete cl
inc ecx
mov dword [eax], ecx
mov ecx, dword [ebp + 0x1c]
mov eax, dword [esp + 0x38]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x20]
mov eax, dword [esp + 0x3c]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x24]
test ecx, ecx
je 0x101675a8
mov eax, dword [esp + 0x40]
mov dword [ecx], eax
xor eax, eax
jmp 0x101676b7
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov eax, dword [eax]
cmp dword [eax + 0xc], 0x403
je 0x10167634
mov ecx, dword [0x102a5b74]
mov edi, 0x40000
and edx, 1
je 0x10167602
test edi, ecx
jne 0x10167602
movzx eax, word [ebx]
cmp eax, 0x61
jb 0x101675e3
cmp eax, 0x7a
jbe 0x101675ed
cmp eax, 0x41
jb 0x10167602
cmp eax, 0x5a
ja 0x10167602
cmp word [ebx + 2], 0x3a
jne 0x10167602
movzx eax, word [ebx + 4]
cmp eax, 0x2f
je 0x10167634
cmp eax, 0x5c
je 0x10167634
test edx, edx
je 0x101676b2
test ecx, ecx
jns 0x101676b2
mov esi, 0x200
mov ecx, esi
call fcn.100d333c
mov eax, 0x1008a378
test dword [0x102a5b74], edi
jne 0x10167630
mov eax, 0x1008a3e8
push ebx
push eax
jmp 0x101676a9
mov ecx, dword [ebp + 0x28]
push 0
push 0xffffffffffffffff
push ebx
call fcn.100b5c1c
mov esi, dword [ebp + 0x24]
mov edi, dword [ebp + 0x20]
test eax, eax
jne 0x10167674
mov edx, dword [ebp + 8]
mov ecx, ebx
push esi
push edi
push dword [ebp + 0x1c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.101671b5
test eax, eax
jne 0x10167674
mov eax, dword [ebp + 0x18]
mov dword [eax], 3
jmp 0x101675a8
mov ecx, dword [ebp + 0x28]
call fcn.100b5cd3
mov eax, dword [ebp + 0x1c]
xor ecx, ecx
mov dword [eax], ecx
mov dword [edi], ecx
test esi, esi
je 0x1016768b
mov dword [esi], ecx
test dword [0x102a5b74], 0x80000000
je 0x101676b2
mov esi, 0x200
mov ecx, esi
call fcn.100d333c
push ebx
push 0x1008a460
push esi
call fcn.100d3a47
add esp, 0xc
mov eax, 0x80070002
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24