Function at 0x1022e030
Capabilities:
Create directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1974
call fcn.10451050
mov eax, dword [0x11ad127c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x618
mov dword [ebp - 0x1880], eax
lea eax, [ebp - 0x628]
push 0
push eax
mov dword [ebp - 0x1884], ecx
mov byte [ebp - 0x1871], 0
call fcn.10425c00
add esp, 0xc
lea eax, [ebp - 0x1870]
push 0x618
push 0
push eax
call fcn.10425c00
add esp, 0xc
lea eax, [ebp - 0xc40]
push 0x618
push 0
push eax
call fcn.10425c00
add esp, 0xc
lea eax, [ebp - 0xc40]
push 0x1046ec80
push 0x1046cb40
push 0x30c
push eax
call fcn.10238bf0
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x628]
add esp, 0x10
push 0x30c
push eax
lea eax, [ebp - 0xc40]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x628]
push 0
push eax
call esi
push 0x1046f630
push 0x1046cb40
lea eax, [ebp - 0xc40]
push 0x30c
push eax
call fcn.10238bf0
add esp, 0x10
lea eax, [ebp - 0x628]
push 0x30c
push eax
lea eax, [ebp - 0xc40]
push eax
call edi
push 0
lea eax, [ebp - 0x628]
push eax
call esi
mov edi, dword [ebp - 0x1884]
xor ebx, ebx
mov eax, dword [edi + 0x734]
mov ecx, dword [edi + 0x730]
mov dword [ebp - 0x1890], eax
mov eax, dword [ebp - 0x1880]
mov dword [ebp - 0x187c], ecx
mov ecx, dword [eax]
test ecx, ecx
je 0x1022e7ef
cmp dword [ecx], 0x73655243
mov edx, dword [eax + 4]
jne 0x1022e7ef
mov eax, dword [ecx + 0x18]
shr eax, 4
cmp edx, eax
jae 0x1022e7ef
cmp dword [ecx + 0x14], ebx
je 0x1022e7ef
mov eax, dword [ecx + 0x14]
mov ecx, dword [eax + edx*4]
mov eax, dword [ecx + 0x10]
add eax, eax
sar eax, 0x1c
cmp eax, 1
je 0x1022e19b
test eax, eax
je 0x1022e19b
xor al, al
jmp 0x1022e19d
mov al, 1
xor esi, esi
test al, al
cmovne esi, ecx
test esi, esi
je 0x1022e7ef
mov ecx, esi
call fcn.10286610
test al, al
je 0x1022e7ef
mov eax, dword [esi + 0x20c]
xor ecx, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x1970], 2
movlpd qword [ebp - 0x196c], xmm0
movlpd qword [ebp - 0x195c], xmm0
movzx eax, byte [eax + 0x61]
mov dword [ebp - 0x1888], eax
mov eax, dword [edi + 0x730]
mov dword [ebp - 0x193c], eax
lea eax, [ebp - 0x193c]
mov dword [ebp - 0x1964], eax
mov eax, dword [edi + 0x4a58]
mov dword [ebp - 0x1974], eax
lea eax, [ebp - 0x1974]
mov dword [ebp - 0x1928], ecx
and ecx, 0xffffff7f
push eax
push dword [edi]
or ecx, 0x10000
movlpd qword [ebp - 0x1954], xmm0
movlpd qword [ebp - 0x194c], xmm0
movlpd qword [ebp - 0x1930], xmm0
mov dword [ebp - 0x1938], 2
mov dword [ebp - 0x1934], 1
mov dword [ebp - 0x1960], 1
mov dword [ebp - 0x1940], 1
mov dword [ebp - 0x1944], ecx
call fcn.1019b910
test eax, eax
js 0x1022e7ef
mov eax, dword [edi]
xor esi, esi
mov dword [ebp - 0x188c], esi
mov eax, dword [eax + 0xf7c]
cmp byte [eax + 0xb38], bl
jge 0x1022e2e5
cmp dword [edi + 0xec], 0x20
je 0x1022e2b6
mov eax, dword [ebp - 0x1880]
mov ecx, edi
push dword [eax]
call fcn.102076f0
mov esi, eax
mov dword [ebp - 0x188c], eax
jmp 0x1022e2c2
mov esi, dword [edi + 0x13c]
mov dword [ebp - 0x188c], esi
mov eax, dword [ebp - 0x1880]
mov ecx, edi
push 1
push 0
push esi
push dword [eax + 4]
push dword [eax]
push dword [edi + 0xeb4]
push dword [edi + 0xeb0]
call fcn.1020e280
cmp dword [edi + 0x5c], ebx
jne 0x1022e2f9
test dword [edi + 4], 0x42000000
mov eax, 1
cmove ebx, eax
test ebx, ebx
lea edx, [ebp - 0xc]
mov ecx, 0x1046f660
mov eax, 0x1046f670
cmove ecx, eax
sub edx, ecx
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ecx + edx - 2], ax
test ax, ax
jne 0x1022e310
mov eax, dword [ebp - 0x187c]
push 0x618
push 0
lea ecx, [eax + eax*2]
lea ebx, [eax + eax]
add ecx, ecx
mov eax, 0x73
mov dword [ebp - 0x189c], ecx
mov word [ebp - 8], ax
lea eax, [ebp - 0x1258]
push eax
call fcn.10425c00
lea edx, [edi + 0xf4c]
add esp, 0xc
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1022e360
sub ecx, esi
mov dword [ebp - 0x18a0], 0
push 0xffffffffffffffff
push edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x1258]
push eax
lea eax, [ebp - 0x18a0]
push eax
call fcn.1043b2ed
add esp, 0x14
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1258]
push eax
lea eax, [ebp - 0x628]
push eax
push 0x1046f680
lea eax, [ebp - 0x1870]
push 0x30c
push eax
call fcn.10238bf0
mov eax, dword [ebp - 0x189c]
imul eax, dword [ebp - 0x1890]
push eax
call fcn.10450898
mov dword [ebp - 0x1894], eax
add esp, 0x1c
mov eax, dword [ebp - 0x1888]
imul eax, dword [ebp - 0x187c]
add eax, eax
push eax
call fcn.10450898
mov esi, eax
add esp, 4
mov eax, dword [ebp - 0x1890]
xor edx, edx
mov dword [ebp - 0x1878], esi
test eax, eax
je 0x1022e77c
mov eax, dword [ebp - 0x1894]
add eax, 2
mov dword [ebp - 0x187c], eax
nop dword [eax]
nop word [eax + eax]
mov ecx, dword [ebp - 0x1880]
xorps xmm0, xmm0
mov esi, dword [edi + 0x730]
mov dword [ebp - 0x1898], esi
movlpd qword [ebp - 0x18c4], xmm0
mov eax, dword [ecx]
mov dword [ebp - 0x18f4], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x18f0], eax
lea eax, [edx + 1]
mov dword [ebp - 0x18b0], eax
mov dword [ebp - 0x18e0], eax
mov eax, dword [ebp - 0x1948]
mov dword [ebp - 0x18dc], eax
lea eax, [ebp - 0x18f4]
push eax
push dword [edi]
movlpd qword [ebp - 0x190c], xmm0
movlpd qword [ebp - 0x1904], xmm0
movlpd qword [ebp - 0x18fc], xmm0
mov dword [ebp - 0x18b4], 0
mov dword [ebp - 0x18ec], 0
mov dword [ebp - 0x18e8], edx
mov dword [ebp - 0x18e4], esi
mov dword [ebp - 0x18d8], 0
mov dword [ebp - 0x18d4], 0
mov dword [ebp - 0x18d0], 0
mov dword [ebp - 0x18cc], esi
mov dword [ebp - 0x18c8], 1
call fcn.1019daf0
test eax, eax
js 0x1022e7a5
mov eax, dword [edi]
mov eax, dword [eax + 0xf7c]
cmp byte [eax + 0xb38], 0
jge 0x1022e507
mov eax, dword [ebp - 0x188c]
mov dword [ebp - 0x18f4], eax
jmp 0x1022e589
mov eax, dword [ebp - 0x1880]
xor ecx, ecx
mov dword [ebp - 0x18ac], ecx
mov eax, dword [eax]
mov dword [ebp - 0x18a4], eax
test eax, eax
je 0x1022e57d
lea esi, [edi + 0x11c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x10c]
mov dword [ebp - 0x18a8], eax
test eax, eax
je 0x1022e56a
mov ecx, dword [edi + 0x114]
xor eax, eax
test ecx, ecx
je 0x1022e56a
mov edx, dword [ebp - 0x18a4]
mov edi, dword [ebp - 0x18a8]
mov edi, dword [edi + eax*4]
test edi, edi
je 0x1022e565
cmp dword [edi], edx
je 0x1022e6e1
inc eax
cmp eax, ecx
jb 0x1022e550
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x18ac]
mov esi, dword [ebp - 0x1898]
mov edi, dword [ebp - 0x1884]
mov dword [ebp - 0x18f4], ecx
lea eax, [ebp - 0x18f4]
mov dword [ebp - 0x18d4], 0
push eax
push dword [edi]
mov dword [ebp - 0x18d0], 1
mov dword [ebp - 0x18cc], esi
mov dword [ebp - 0x18c8], 2
call fcn.1019daf0
test eax, eax
js 0x1022e7a5
mov eax, dword [ebp - 0x1948]
or dword [ebp - 0x18f8], 0x21
mov dword [ebp - 0x1924], eax
mov dword [ebp - 0x18bc], eax
mov eax, dword [edi + 0x730]
mov dword [ebp - 0x1914], eax
lea eax, [ebp - 0x1924]
push eax
push dword [edi]
mov dword [ebp - 0x1920], 0
mov dword [ebp - 0x18b8], 0
mov dword [ebp - 0x191c], 0
mov dword [ebp - 0x1918], 0
mov dword [ebp - 0x1910], 2
call fcn.10199b40
test eax, eax
js 0x1022e797
mov eax, dword [edi + 0x730]
imul eax, dword [ebp - 0x1888]
mov esi, dword [ebp - 0x1904]
push eax
push esi
push dword [ebp - 0x1878]
call fcn.10425d60
mov ecx, dword [edi + 0x730]
add esp, 0xc
imul ecx, dword [ebp - 0x1888]
mov eax, dword [ebp - 0x1900]
add eax, esi
push ecx
push eax
mov eax, dword [ebp - 0x1878]
add eax, ecx
push eax
call fcn.10425d60
add esp, 0xc
lea eax, [ebp - 0x18bc]
push eax
push dword [edi]
call fcn.1019a6a0
mov ecx, dword [ebp - 0x187c]
mov eax, dword [ebp - 0x1888]
lea esi, [ecx - 2]
sub eax, 1
je 0x1022e728
sub eax, 1
je 0x1022e6f0
sub eax, 2
jne 0x1022e756
xor esi, esi
test ebx, ebx
je 0x1022e756
mov edi, dword [ebp - 0x1878]
mov edx, ecx
mov ecx, dword [edi + esi*4]
lea edx, [edx + 3]
mov eax, ecx
mov byte [edx - 3], cl
shr eax, 0x10
inc esi
mov byte [edx - 5], al
mov eax, ecx
shr eax, 8
mov byte [edx - 4], al
cmp esi, ebx
jb 0x1022e6c1
jmp 0x1022e750
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [edi + 4]
jmp 0x1022e577
xor esi, esi
test ebx, ebx
je 0x1022e756
mov edi, dword [ebp - 0x1878]
mov edx, ecx
nop
movzx ecx, word [edi + esi*2]
lea edx, [edx + 3]
mov eax, ecx
inc esi
shr eax, 8
and al, 0xf8
mov byte [edx - 5], al
mov eax, ecx
shr eax, 3
and al, 0xfc
shl cl, 3
mov byte [edx - 4], al
mov byte [edx - 3], cl
cmp esi, ebx
jb 0x1022e700
jmp 0x1022e750
xor edx, edx
test ebx, ebx
je 0x1022e756
mov edi, dword [ebp - 0x1878]
movzx ecx, byte [edx + edi]
lea esi, [esi + 3]
mov eax, ecx
inc edx
shl cx, 8
or cx, ax
mov word [esi - 3], cx
mov byte [esi - 1], cl
cmp edx, ebx
jb 0x1022e734
mov edi, dword [ebp - 0x1884]
mov eax, dword [ebp - 0x189c]
add dword [ebp - 0x187c], eax
mov edx, dword [ebp - 0x18b0]
mov eax, dword [ebp - 0x1890]
cmp edx, eax
jb 0x1022e420
mov esi, dword [ebp - 0x1878]
push dword [ebp - 0x1894]
push eax
push ebx
push dword [edi + 0x60]
lea eax, [ebp - 0x1870]
push eax
call fcn.10200c10
mov bl, al
jmp 0x1022e7b1
lea eax, [ebp - 0x18bc]
push eax
push dword [edi]
call fcn.1019a6a0
mov esi, dword [ebp - 0x1878]
mov bl, byte [ebp - 0x1871]
mov eax, dword [ebp - 0x1948]
test eax, eax
je 0x1022e7c3
push eax
push dword [edi]
call fcn.1019ba60
push esi
call fcn.10450877
add esp, 4
push dword [ebp - 0x1894]
call fcn.10450877
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1045066c
mov esp, ebp
pop ebp
ret 8