Function at 0x469270
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad3e6
mov eax, dword fs:[0]
push eax
mov eax, 0x126c
call fcn.00492790
mov eax, dword [0x4dc6e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0x1234], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x1270], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x1238], esi
mov dword [ebp - 0x1244], edi
mov dword [ebp - 0x1260], ebx
mov dword [ebp - 0x1264], eax
mov dword [ebp - 0x124c], ecx
test esi, esi
jne 0x4692fd
push dword [edi + 0x2c]
call fcn.00469930
mov esi, eax
add esp, 4
test esi, esi
cmove esi, ebx
mov dword [ebp - 0x1238], esi
push 0x4e56a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x104
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, dword [ebp - 0x1238]
add edi, 0x34
mov ebx, dword [ebp - 0x1264]
or eax, 0xffffffff
xor ecx, ecx
mov dword [ebp - 0x123c], eax
mov word [edi], cx
test ebx, ebx
je 0x4694e6
or ecx, 0xffffffff
mov dword [ebp - 0x1248], ecx
mov ecx, dword [ebx + 0x30]
xor ebx, ebx
mov dword [ebp - 0x1240], ecx
cmp dword [ecx], ebx
jbe 0x4694e6
lea esi, [ecx + 0xc]
mov edi, edi
mov ecx, dword [esi]
cmp edx, ecx
jbe 0x4693a3
mov eax, dword [esi + 4]
add eax, ecx
cmp edx, eax
jae 0x46939d
movzx eax, word [esi + 0x12]
add eax, 0x14
mov dword [ebp - 0x1248], ecx
add eax, esi
push eax
push 0x4bbce4
push edi
call fcn.00426350
mov edx, dword [ebp - 0x1238]
mov eax, ebx
add esp, 0xc
mov dword [ebp - 0x123c], eax
jmp 0x4693a3
mov eax, dword [ebp - 0x123c]
mov ecx, dword [ebp - 0x1240]
inc ebx
add esi, 0x11c
cmp ebx, dword [ecx]
jb 0x469360
cmp eax, 0xffffffff
je 0x4694e6
cmp byte [ebp + 8], 0
je 0x469789
imul eax, eax, 0x11c
add eax, ecx
lea ecx, [ebp - 0x1254]
mov dword [ebp - 0x1240], eax
lea ebx, [eax + 0x20]
push ebx
call fcn.00440730
push dword [eax]
call fcn.0048faa4
mov ecx, dword [ebp - 0x1244]
add esp, 4
mov edx, dword [ebp - 0x1254]
add edx, 0xfffffff0
mov dword [ecx + 0x23c], eax
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46941a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [0x4ea0d4], 0
je 0x469789
push ebx
lea ecx, [ebp - 0x125c]
call fcn.00440730
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0
push ecx
push 0
push dword [eax]
call dword [0x4ea108]
mov ebx, dword [ebp - 0x125c]
mov esi, eax
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or edx, 0xffffffff
lea ecx, [ebx + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x469474
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x1240]
lea ecx, [ebx + 0x20]
push ecx
lea ecx, [ebp - 0x1250]
call fcn.00440730
mov ecx, dword [eax]
mov eax, dword [ebx + 0xc]
mov ebx, dword [ebp - 0x1234]
push 0
cdq
push edx
push eax
push 0
push ecx
push esi
push ebx
mov dword [ebp - 4], 1
call dword [0x4ea0d4]
mov edx, dword [ebp - 0x1250]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4694d2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x46978f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x46978f
mov ecx, dword [ebp - 0x124c]
xor ebx, ebx
mov dword [ebp - 0x1248], 0xffffffff
cmp dword [ecx], ebx
jbe 0x469789
lea esi, [ecx + 0xc]
mov ecx, dword [esi]
cmp edx, ecx
jbe 0x46955e
mov eax, dword [esi + 4]
add eax, ecx
cmp edx, eax
jae 0x469558
lea eax, [esi + 0x14]
mov dword [ebp - 0x1248], ecx
push 0x5c
push eax
mov dword [ebp - 0x1240], eax
call fcn.00493320
add esp, 8
test eax, eax
je 0x469533
inc eax
jmp 0x469539
mov eax, dword [ebp - 0x1240]
push eax
push 0x4bbce4
push edi
call fcn.00426350
mov edx, dword [ebp - 0x1238]
mov eax, ebx
add esp, 0xc
mov dword [ebp - 0x123c], eax
jmp 0x46955e
mov eax, dword [ebp - 0x123c]
mov ecx, dword [ebp - 0x124c]
inc ebx
add esi, 0x11c
cmp ebx, dword [ecx]
jb 0x469503
cmp eax, 0xffffffff
je 0x469789
imul eax, eax, 0x11c
xor esi, esi
add ecx, eax
mov dword [ebp - 0x123c], ecx
mov ecx, dword [ebp - 0x124c]
add ecx, 0x20
add eax, ecx
lea ecx, [ebp - 0x126c]
push eax
mov dword [ebp - 0x1240], eax
call fcn.004653d0
push 0xc
push 0x4bc9cc
push dword [eax]
call fcn.004917b4
add esp, 0xc
lea ecx, [ebp - 0x126c]
test eax, eax
sete bl
call fcn.004654a0
test bl, bl
mov ebx, dword [ebp - 0x123c]
je 0x46961e
lea eax, [ebx + 0x2c]
push eax
lea ecx, [ebp - 0x1278]
call fcn.004653d0
push dword [eax]
lea eax, [ebp - 0x428]
push 0x4c0608
push eax
call fcn.00465290
add esp, 0xc
lea ecx, [ebp - 0x1278]
call fcn.004654a0
push 0x105
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x46972d
cmp byte [ebx + 0x21], 0x3a
jne 0x46965b
push dword [ebp - 0x1240]
lea ecx, [ebp - 0x1258]
call fcn.00440730
push dword [eax]
lea eax, [ebp - 0x21c]
push 0x105
push eax
call fcn.004911bd
add esp, 0xc
lea ecx, [ebp - 0x1258]
call fcn.004654a0
jmp 0x46972d
cmp byte [ebx + 0x25], 0x3a
jne 0x469696
lea eax, [ebx + 0x24]
push eax
lea ecx, [ebp - 0x1268]
call fcn.00440730
push dword [eax]
lea eax, [ebp - 0x21c]
push 0x105
push eax
call fcn.004911bd
add esp, 0xc
lea ecx, [ebp - 0x1268]
call fcn.004654a0
jmp 0x46972d
push edi
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x21c]
push 0x4c062c
push eax
call fcn.00465290
add esp, 0x10
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [0x4ea108]
mov esi, eax
test esi, esi
je 0x4696f4
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.00491646
add esp, 8
test eax, eax
je 0x46972d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x428]
push 0x4c062c
push eax
call fcn.00465290
add esp, 0x10
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x428]
push eax
call dword [0x4ea108]
mov esi, eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0048faa4
mov ecx, dword [ebp - 0x1244]
add esp, 4
mov dword [ecx + 0x23c], eax
mov ecx, dword [0x4ea0d4]
test ecx, ecx
je 0x469776
cmp byte [ebp + 8], 0
je 0x469776
push dword [ebx + 0x10]
mov eax, dword [ebx + 0xc]
mov ebx, dword [ebp - 0x1234]
cdq
push edx
push eax
push 0
lea eax, [ebp - 0x21c]
push eax
push esi
push ebx
call ecx
jmp 0x46977c
mov ebx, dword [ebp - 0x1234]
test esi, esi
je 0x46978f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x46978f
mov ebx, dword [ebp - 0x1234]
cmp byte [ebp + 8], 0
mov esi, dword [ebp - 0x1238]
mov dword [ebp - 0xa30], 0x58
mov dword [ebp - 0x9e0], 0x1d5
je 0x4697d3
mov ecx, dword [0x4ea0c4]
test ecx, ecx
je 0x4697d3
lea eax, [ebp - 0xa30]
push eax
lea eax, [ebp - 0x1274]
push eax
mov eax, esi
cdq
push edx
push eax
push ebx
call ecx
test eax, eax
jne 0x4697f8
cmp word [edi], 0
jne 0x4698d4
mov ebx, dword [ebp - 0x1260]
cmp esi, ebx
je 0x4698cc
mov edx, ebx
mov dword [ebp - 0x1238], edx
jmp 0x469323
mov eax, dword [ebp - 0x9e4]
mov ecx, edi
mov byte [ebp + eax*2 - 0x9dc], 0
mov edx, dword [ebp - 0x1274]
mov eax, edx
mov esi, dword [ebp - 0x1270]
or eax, esi
je 0x469873
lea ebx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x469820
sub ecx, ebx
lea ebx, [edi + 2]
sar ecx, 1
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x469832
push esi
push edx
lea eax, [ebp - 0x9dc]
sub edi, ebx
push eax
push 0x4c0648
mov eax, 0x104
sar edi, 1
sub eax, ecx
push 0xffffffffffffffff
push eax
mov eax, dword [ebp - 0x1244]
lea eax, [eax + edi*2]
add eax, 0x34
push eax
call fcn.00492140
add esp, 0x1c
jmp 0x469904
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x469876
sub ecx, edx
lea edx, [edi + 2]
sar ecx, 1
jmp 0x469890
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x469890
lea eax, [ebp - 0x9dc]
sub edi, edx
push eax
push 0x4c065c
mov eax, 0x104
sar edi, 1
sub eax, ecx
push 0xffffffffffffffff
push eax
mov eax, dword [ebp - 0x1244]
lea eax, [eax + edi*2]
add eax, 0x34
push eax
call fcn.00492140
add esp, 0x14
jmp 0x469904
push esi
push 0x4c0670
jmp 0x4698e0
sub esi, dword [ebp - 0x1248]
push esi
push 0x4c0664
lea eax, [ebp - 0x1230]
push eax
call fcn.0043c580
add esp, 0xc
lea eax, [ebp - 0x1230]
push eax
push 0x104
push edi
call fcn.00493457
add esp, 0xc
push 0x4e56a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret