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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59755c
mov eax, dword fs:[0]
push eax
sub esp, 0x64c
mov eax, dword [0x60dfd4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 0x658], edi
call fcn.00405050
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0056eeb0
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0056eeb0
add esp, 0x18
mov dword [ebp - 0x630], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x648]
movups xmmword [ebp - 0x648], xmm0
movq qword [ebp - 0x638], xmm0
call fcn.004310b0
push 0x103
push str._TEMP_
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push 0x104
push eax
call fcn.0057a249
add esp, 0x10
lea eax, [ebp - 0x218]
push 0x102
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x41b176
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
lfence
call fcn.0057a96e
add esp, 0xc
test eax, eax
je 0x41b176
push 0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x648]
call fcn.00431340
test eax, eax
je 0x41b176
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b160
lea eax, [ebp - 0x218]
jmp 0x41b245
push 0x103
push str._TMP_
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0057a249
add esp, 0x10
lea eax, [ebp - 0x218]
push 0x102
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x41b203
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
lfence
call fcn.0057a96e
add esp, 0xc
test eax, eax
je 0x41b203
push 0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x648]
call fcn.00431340
test eax, eax
je 0x41b203
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b1f0
lea eax, [ebp - 0x218]
jmp 0x41b245
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.0056eeb0
add esp, 0xc
lea eax, [ebp - 0x628]
push 0x103
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [ebp - 0x628]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b234
lea eax, [ebp - 0x628]
sub ecx, edx
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.004050e0
call fcn.00421571
mov dword [ebp - 0x650], eax
test eax, eax
je 0x41b512
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x5a72d4]
mov ecx, dword [ebp - 0x650]
call esi
lea esi, [eax + 0x10]
mov dword [ebp - 0x62c], esi
push 1
lea eax, [ebp - 0x654]
mov byte [ebp - 4], 1
push eax
mov ecx, edi
call fcn.0040bb10
mov eax, dword [eax]
mov ecx, 0x5eaa84
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41b2ce
test dx, dx
je 0x41b2c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41b2ce
add eax, 4
add ecx, 4
test dx, dx
jne 0x41b2a0
mov dword [ebp - 0x650], 0
jmp 0x41b2d9
sbb ecx, ecx
or ecx, 1
mov dword [ebp - 0x650], ecx
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov ecx, dword [ebp - 0x654]
mov eax, edi
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x41b319
lfence
mov eax, dword [ecx]
mov dword [ebp - 0x64c], eax
push ecx
mov eax, dword [eax]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x5a72d4]
mov ecx, dword [ebp - 0x64c]
call edi
or edi, 0xffffffff
cmp dword [ebp - 0x650], 0
mov ecx, dword [ebp - 0x658]
mov edx, dword [ecx]
jne 0x41b40f
mov eax, dword [edx - 0xc]
dec eax
push eax
lea eax, [ebp - 0x650]
push eax
call fcn.0040c1c0
mov byte [ebp - 4], 3
lea ecx, [esi - 0x10]
mov edx, dword [eax]
mov dword [ebp - 0x654], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x64c], eax
cmp eax, ecx
je 0x41b3cc
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x41b3b7
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x41b3b7
mov ecx, dword [ebp - 0x64c]
call fcn.00404fd0
mov dword [ebp - 0x64c], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x41b3ac
lfence
mov ecx, dword [ebp - 0x654]
push ecx
mov edi, dword [ecx]
mov edx, dword [edi]
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x5a72d4]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x64c]
or edi, 0xffffffff
lea esi, [eax + 0x10]
mov dword [ebp - 0x62c], esi
jmp 0x41b3cc
push dword [edx - 0xc]
lea ecx, [ebp - 0x62c]
push edx
call fcn.004050e0
mov esi, dword [ebp - 0x62c]
mov byte [ebp - 4], 1
mov eax, edi
mov ecx, dword [ebp - 0x650]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x41b4a5
lfence
mov eax, dword [ecx]
mov dword [ebp - 0x64c], eax
push ecx
mov eax, dword [eax]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x5a72d4]
mov ecx, dword [ebp - 0x64c]
call edi
jmp 0x41b4a5
lea eax, [edx - 0x10]
lea ecx, [esi - 0x10]
mov dword [ebp - 0x64c], eax
mov dword [ebp - 0x654], ecx
cmp eax, ecx
je 0x41b493
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x41b47e
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x41b47e
mov ecx, dword [ebp - 0x64c]
call fcn.00404fd0
mov dword [ebp - 0x64c], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x41b473
lfence
mov ecx, dword [ebp - 0x654]
push ecx
mov edi, dword [ecx]
mov edx, dword [edi]
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x5a72d4]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x64c]
lea esi, [eax + 0x10]
mov dword [ebp - 0x62c], esi
jmp 0x41b493
push dword [edx - 0xc]
lea ecx, [ebp - 0x62c]
push edx
call fcn.004050e0
mov esi, dword [ebp - 0x62c]
mov ecx, dword [ebp - 0x658]
push 1
push 0x5eaa84
call fcn.0040c2b0
push 0
push esi
lea ecx, [ebp - 0x648]
call fcn.00431340
mov dword [ebp - 0x64c], eax
add esi, 0xfffffff0
mov byte [ebp - 4], 0
or ecx, 0xffffffff
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x41b4e4
lfence
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x5a72d4]
mov ecx, edi
call esi
lea ecx, [ebp - 0x648]
call fcn.0043125c
mov eax, dword [ebp - 0x64c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056a6fa
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00403ba0
int3