Function at 0x10108a10
Capabilities:
Query environment variable

Disassembly:
push 0x284
mov eax, 0x10179c63
call fcn.1012b6ae
mov esi, ecx
mov dword [ebp - 0x244], esi
xor ebx, ebx
cmp dword [esi], ebx
je 0x10108a35
xor eax, eax
inc eax
jmp 0x10108e51
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0x21c]
call fcn.10007b01
mov dword [ebp - 4], ebx
cmp dword [esi], ebx
je 0x10108a66
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x21c], 0
je 0x10108a2d
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10108a2d
mov ecx, esi
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], 1
mov dword [esi + 0x84], ebx
call fcn.10108e57
xor eax, eax
mov word [ebp - 0x218], ax
mov eax, ebx
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x260], eax
mov byte [ebp - 4], 1
mov edi, 0x104
push edi
lea eax, [ebp - 0x218]
push eax
push str.PATHEXT
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
push 2
pop edx
lea eax, [ebx - 1]
cmp eax, 0x102
ja 0x10108ad4
cmp word [ebp - 0x218], 0
je 0x10108ad4
lea edi, [ebp - 0x218]
jmp 0x10108b2e
cmp ebx, edi
ja 0x10108add
mov ebx, 0x208
xor ecx, ecx
lea eax, [ebx + 1]
mul edx
push 0x1024c714
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1012b9b2
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10108b3d
push 0
call fcn.1012b7b2
pop ecx
mov eax, edi
push ebx
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x220], eax
xor eax, eax
push edi
push str.PATHEXT
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x10108b3d
cmp eax, ebx
ja 0x10108b3d
push 0x3b
lea eax, [esi + 0x70]
push eax
push edi
call fcn.100548cf
add esp, 0xc
lea eax, [esi + 0x64]
push eax
call fcn.1006e3f8
mov ecx, eax
call fcn.1006e5b0
mov ecx, esi
call fcn.10108f23
test eax, eax
jne 0x10108b8c
xor ebx, ebx
inc ebx
mov dword [esi], ebx
mov byte [ebp - 4], al
push dword [ebp - 0x220]
call fcn.1012b7b2
pop ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x21c], 0
je 0x10108b85
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
jmp 0x10108e51
call fcn.1006e3f8
mov ecx, eax
call fcn.1006e5ac
mov edi, eax
and dword [ebp - 0x220], 0
push 0xc
pop ecx
mov dword [ebp - 0x240], ecx
mov eax, dword [edi + 4]
mov ebx, dword [edi]
sub eax, ebx
cdq
idiv ecx
test eax, eax
je 0x10108e24
lea eax, [esi + 0x68]
xor esi, esi
mov dword [ebp - 0x23c], eax
lea ecx, [ebp - 0x258]
call fcn.100c441b
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x228]
push str.fios
call fcn.100088c7
mov byte [ebp - 4], 3
lea eax, [ebp - 0x228]
push eax
add ebx, 4
lea eax, [ebp - 0x268]
add ebx, esi
push eax
mov ecx, ebx
call fcn.1003d20d
mov eax, dword [ebp - 0x268]
lea ecx, [ebp - 0x224]
add eax, 0x14
push eax
call fcn.10008916
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x228]
lea ecx, [ecx - 0x10]
call fcn.100078bc
push 0x1018422c
push dword [ebp - 0x224]
call fcn.101311cd
pop ecx
pop ecx
xor ecx, ecx
test eax, eax
push 0x101a40b0
sete cl
mov dword [ebp - 0x258], ecx
lea ecx, [ebp - 0x22c]
call fcn.100088c7
mov byte [ebp - 4], 7
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x270]
mov ecx, ebx
push eax
call fcn.1003d20d
mov eax, dword [ebp - 0x270]
lea ecx, [ebp - 0x224]
add eax, 0x14
push eax
call fcn.10010aef
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x22c]
lea ecx, [ecx - 0x10]
call fcn.100078bc
mov eax, dword [ebp - 0x224]
cmp dword [eax - 0xc], 0
jne 0x10108caa
xor eax, eax
jmp 0x10108cb1
push eax
call fcn.10136ce4
pop ecx
push 0x101a40b4
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x254], eax
call fcn.100088c7
mov byte [ebp - 4], 9
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x278]
mov ecx, ebx
push eax
call fcn.1003d20d
mov eax, dword [ebp - 0x278]
lea ecx, [ebp - 0x250]
add eax, 0x14
push eax
call fcn.10010aef
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x230]
lea ecx, [ecx - 0x10]
call fcn.100078bc
push 0x1018422c
lea ecx, [ebp - 0x234]
call fcn.100088c7
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x280]
mov ecx, ebx
push eax
call fcn.1003d20d
mov eax, dword [ebp - 0x280]
lea ecx, [ebp - 0x24c]
add eax, 0x14
push eax
call fcn.10010aef
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x234]
lea ecx, [ecx - 0x10]
call fcn.100078bc
push 0x101a40b8
lea ecx, [ebp - 0x238]
call fcn.100088c7
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x288]
mov ecx, ebx
push eax
call fcn.1003d20d
mov eax, dword [ebp - 0x288]
lea ecx, [ebp - 0x248]
add eax, 0x14
push eax
call fcn.10010aef
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x238]
lea ecx, [ecx - 0x10]
call fcn.100078bc
mov ecx, dword [ebp - 0x23c]
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.10107e9e
mov ecx, dword [ebp - 0x290]
lea eax, [ebp - 0x258]
push eax
lea ecx, [ecx + 0x14]
call fcn.10108139
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x224]
lea ecx, [ecx - 0x10]
call fcn.100078bc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x258]
call fcn.100c4e60
mov ebx, dword [edi]
push 0xc
pop eax
add esi, eax
mov ecx, dword [ebp - 0x220]
mov eax, dword [edi + 4]
inc ecx
sub eax, ebx
mov dword [ebp - 0x220], ecx
cdq
idiv dword [ebp - 0x240]
cmp ecx, eax
jb 0x10108bc7
mov esi, dword [ebp - 0x244]
mov esi, dword [esi]
mov byte [ebp - 4], 0
push dword [ebp - 0x260]
call fcn.1012b7b2
pop ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x21c], 0
je 0x10108e4f
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
call fcn.1012b658
ret