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

Disassembly:
mov eax, 0x45ff38
call fcn.0042c2e0
sub esp, 0x30
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.0043c566
xor ebx, ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], ebx
mov dword [esi + 0x28], ebx
call fcn.0043c566
push 0x10
lea ecx, [esi + 0x14]
push 0x10
mov byte [ebp - 4], 1
call fcn.0041fd87
push 1
lea ecx, [ebp - 0x10]
call fcn.0043caa1
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push ebx
push eax
call edi
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.0043caa1
push dword [ebp - 0x14]
push eax
call edi
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.0043caf0
mov edi, 0xf09
push ebx
push edi
lea eax, [ebp - 0x10]
push ebx
push eax
mov ecx, esi
call fcn.0041b7a3
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x41d29b
mov ecx, dword [esi + 4]
push eax
mov edx, dword [ecx]
call dword [edx + 0x20]
mov ecx, eax
call fcn.0041e947
mov ecx, dword [eax + 4]
push 0xf07
call fcn.0041e117
mov eax, dword [esi + 0x28]
mov edx, dword [ebp - 0x18]
lea ecx, [eax + 1]
mov dword [esi + 0x28], ecx
mov ecx, dword [esi + 0x18]
mov dword [ecx + eax*4], edx
call fcn.00428f30
test eax, eax
je 0x41d349
lea eax, [ebp - 0x1c]
push 8
push eax
lea ecx, [ebp - 0x10]
call fcn.0043a83b
push str.System32
mov byte [ebp - 4], 2
push dword [ebp - 0x1c]
call fcn.0042c400
pop ecx
test eax, eax
pop ecx
jne 0x41d33d
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
add eax, 0xfffffffe
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0043a8b8
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0043c7aa
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0043c6b1
push ebx
push edi
lea eax, [ebp - 0x10]
push ebx
push eax
mov ecx, esi
call fcn.0041b7a3
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x41d33d
mov ecx, dword [esi + 4]
push eax
mov edx, dword [ecx]
call dword [edx + 0x20]
mov ecx, eax
call fcn.0041e947
mov ecx, dword [eax + 4]
push 0xf07
call fcn.0041e117
mov eax, dword [esi + 0x28]
mov edx, dword [ebp - 0x18]
lea ecx, [eax + 1]
mov dword [esi + 0x28], ecx
mov ecx, dword [esi + 0x18]
mov dword [ecx + eax*4], edx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0043c6b1
push 1
lea ecx, [ebp - 0x10]
call fcn.0043caa1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.0043caa1
push dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push eax
lea ecx, [ebp - 0x10]
call fcn.0043caf0
push ebx
push edi
lea eax, [ebp - 0x10]
push ebx
push eax
mov ecx, esi
call fcn.0041b7a3
mov edi, eax
cmp edi, ebx
je 0x41d3ba
mov ecx, dword [esi + 4]
push edi
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, eax
call fcn.0041e947
mov ecx, dword [eax + 4]
push 0xf07
call fcn.0041e117
mov eax, dword [esi + 0x28]
lea ecx, [eax + 1]
mov dword [esi + 0x28], ecx
mov ecx, dword [esi + 0x18]
mov dword [ecx + eax*4], edi
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
push dword [eax - 8]
call fcn.0043caa1
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push ebx
mov ebx, str.PATH
push eax
push ebx
call edi
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.0043caa1
push dword [ebp - 0x14]
push eax
push ebx
call edi
mov edi, eax
lea ecx, [ebp - 0x10]
push edi
call fcn.0043caf0
lea ecx, [ebp - 0x3c]
call fcn.0043b944
push 0x10
push 0x10
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 4
call fcn.0043b9dd
push 0x47a7cc
lea ecx, [ebp - 0x20]
call fcn.0043c71f
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
push edi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.0043caa1
test edi, edi
mov dword [ebp - 0x1c], eax
jle 0x41d48e
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
call fcn.0042c9d0
pop ecx
mov ebx, eax
pop ecx
lea eax, [ebp - 0x24]
push ebx
lea ecx, [ebp - 0x10]
push dword [ebp - 0x18]
push eax
call fcn.0043a7b0
push dword [eax]
mov ecx, dword [ebp - 0x14]
inc dword [ebp - 0x14]
mov byte [ebp - 4], 6
push ecx
lea ecx, [ebp - 0x3c]
call fcn.0043bb30
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.0043c6b1
inc ebx
add dword [ebp - 0x18], ebx
push ebx
push dword [ebp - 0x1c]
call fcn.0042ca80
cmp dword [ebp - 0x18], edi
pop ecx
pop ecx
mov dword [ebp - 0x1c], eax
jl 0x41d437
xor eax, eax
cmp dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
jle 0x41d512
mov ecx, dword [ebp - 0x38]
push 0
push 0xf09
push 0
lea eax, [ecx + eax*4]
mov ecx, esi
push eax
call fcn.0041b7a3
test eax, eax
mov dword [ebp - 0x18], eax
je 0x41d506
mov ecx, dword [esi + 4]
push eax
mov edx, dword [ecx]
call dword [edx + 0x20]
mov ecx, eax
call fcn.0041e947
mov edi, dword [eax + 4]
mov ecx, edi
call fcn.0041e123
mov ecx, 0xf07
cmp ax, cx
je 0x41d506
push ecx
mov ecx, edi
call fcn.0041e117
mov edi, dword [esi + 0x28]
lea ebx, [esi + 0x14]
lea eax, [edi + 1]
mov dword [esi + 0x28], eax
cmp edi, dword [ebx + 8]
jl 0x41d4fd
push 0xffffffffffffffff
push eax
mov ecx, ebx
call fcn.0041fd87
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + edi*4], ecx
mov eax, dword [ebp - 0x1c]
inc eax
cmp eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
jl 0x41d498
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.0043c6b1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.0043b977
and byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0043c6b1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0043c6b1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret