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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4672b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x1c]
push 0x208
push 0
push eax
call fcn.0042a3f0
mov eax, dword [ebp + 0x10]
add esp, 0xc
cmp eax, 0xf
ja case.default.0x41ef31
jmp dword [eax*4 + 0x41f2b0]
lea eax, [ebp - 0x20c]
push eax
push 0x19
jmp 0x41f163
lea eax, [ebp - 0x20c]
push eax
push 0x23
jmp 0x41f163
lea eax, [ebp - 0x20c]
push eax
push 0x1c
jmp 0x41f163
lea eax, [ebp - 0x20c]
push eax
push 0x2e
jmp 0x41f163
lea eax, [ebp - 0x20c]
push eax
push 0x1a
jmp 0x41f163
lea eax, [ebp - 0x20c]
push eax
push 0x28
jmp 0x41f163
lea eax, [ebp - 0x20c]
push eax
push 0x2e
push 0
call fcn.0041fd10
add esp, 0xc
test eax, eax
je case.default.0x41ef31
lea eax, [ebp - 0x20c]
push eax
call fcn.0041fe30
add esp, 4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
jmp 0x41f171
lea eax, [ebp - 0x20c]
push eax
push 0x26
jmp 0x41f163
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x41f16d
cmp byte [0x4a508c], 0
je 0x41f040
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], 0
push eax
push str.GetSystemWow64DirectoryW
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.00423070
mov eax, dword [ebp - 0x418]
add esp, 0xc
test eax, eax
je 0x41f040
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
call eax
test eax, eax
je case.default.0x41ef31
cmp word [ebp - 0x20c], 0
jne 0x41f171
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je case.default.0x41ef31
cmp word [ebp - 0x20c], 0
jmp 0x41f16f
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je case.default.0x41ef31
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x18]
push esi
call fcn.0042f9f7
lea eax, [ebp - 0x20c]
push 0x469cda
push eax
push eax
call fcn.00421dd0
add esp, 0x18
jmp 0x41f19f
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je case.default.0x41ef31
xor eax, eax
mov word [ebp - 0x206], ax
jmp 0x41f171
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je case.default.0x41ef31
lea eax, [ebp - 0x20c]
push eax
call fcn.0041fe90
add esp, 4
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
jmp 0x41f171
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0042f9f7
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x18]
push esi
call fcn.0042f9f7
add esp, 0xc
jmp 0x41f229
lea eax, [ebp - 0x20c]
push eax
push 0x10
push 0
call fcn.0041fd10
add esp, 0xc
test eax, eax
je case.default.0x41ef31
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x18]
push esi
call fcn.0042f9f7
add esp, 0xc
cmp byte [ebp + 0x20], 0
je 0x41f1a3
lea eax, [ebp - 0x20c]
push 0x469cda
push eax
push eax
call fcn.00421dd0
add esp, 0xc
test al, al
je case.default.0x41ef31
lea eax, [ebp - 0x20c]
push edi
push eax
push eax
call fcn.00421dd0
add esp, 0xc
test al, al
jne 0x41f229
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428d9d
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20c]
push eax
push 5
push 0
call fcn.0041fd10
add esp, 0xc
test eax, eax
je case.default.0x41ef31
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x18]
push esi
call fcn.0042f9f7
add esp, 0xc
cmp byte [ebp + 0x20], 0
je 0x41f214
lea eax, [ebp - 0x20c]
push 0x469cda
push eax
push eax
call fcn.00421dd0
add esp, 0xc
test al, al
je case.default.0x41ef31
lea eax, [ebp - 0x20c]
push edi
push eax
push eax
call fcn.00421dd0
add esp, 0xc
test al, al
je case.default.0x41ef31
push 0x104
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, 0x104
ja 0x41f264
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0042f9f7
add esp, 0xc
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f270
mov eax, dword [ebp + 0xc]
sub ecx, edx
sar ecx, 1
cmp ecx, eax
jae case.default.0x41ef31
lea ecx, [ebp - 0x20c]
push ecx
push eax
push ebx
call fcn.0042f9f7
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.00428d9d
mov esp, ebp
pop ebp
ret