Function at 0x4093e0
Capabilities:
Create directory
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b94c
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x58dd10]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push esi
mov dword [ebp - 0x420], esi
call fcn.004049e0
mov dword [ebp - 4], 0
mov dword [esi], vtable.CInstallBrowserDlg.0
call fcn.00417006
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x409440
push 0x80004005
call fcn.00401a10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x180], eax
mov byte [ebp - 4], 1
call fcn.00417006
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x409470
push 0x80004005
call fcn.00401a10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x184], eax
mov byte [ebp - 4], 2
call fcn.00417006
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4094a0
push 0x80004005
call fcn.00401a10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x188], eax
mov byte [ebp - 4], 3
call fcn.00417006
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4094d0
push 0x80004005
call fcn.00401a10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x18c], eax
mov byte [ebp - 4], 4
call fcn.00417006
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x409500
push 0x80004005
call fcn.00401a10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x194], eax
lea ecx, [esi + 0x1cc]
mov byte [ebp - 4], 5
call fcn.0041afba
mov dword [esi + method.CEdit.virtual_0], vtable.CEdit.0
mov byte [ebp - 4], 6
call fcn.00420cd1
call fcn.00420cd1
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x5962cc
lea ecx, [esi + 0x180]
mov dword [esi + 0x1c8], eax
call fcn.00402d70
cmp dword [0x5962a8], 5
jbe 0x4095bb
push 0x100
lea ecx, [ebp - 0x418]
push ecx
push 0x569544
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x418]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409587
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x418]
push edx
lea ecx, [esi + 0x180]
call fcn.00401940
push 5
push str.Jwan
lea ecx, [esi + 0x180]
call fcn.00408ff0
push 0x206
xor ebx, ebx
lea ecx, [ebp - 0x216]
xor eax, eax
push ebx
push ecx
mov dword [esi + 0x190], 1
mov word [ebp - 0x218], ax
call fcn.00518460
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x409600
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x194]
call fcn.00401940
mov eax, dword [esi + 0x194]
push 0x5c
push eax
call fcn.005169fd
add esp, 8
cmp eax, ebx
je 0x40968e
sub eax, dword [esi + 0x194]
sar eax, 1
cmp eax, 0xffffffff
je 0x40968e
inc eax
push eax
lea ecx, [ebp - 0x41c]
push ecx
lea ecx, [esi + 0x194]
call fcn.00404870
push eax
lea ecx, [esi + 0x194]
mov byte [ebp - 4], 7
call fcn.00402d70
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x41c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40968e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0xe
push str.Program_Files_
lea ecx, [esi + 0x194]
call fcn.00408ff0
mov eax, dword [esi + 0x194]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4096bf
mov ecx, dword [esi + 0x194]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [esi + 0xa8], 0x226
mov dword [esi + 0xac], 0x190
cmp dword [0x5962c0], ebx
je 0x4096e7
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xac], ebx
mov word [esi + 0x132], 0x101
mov byte [esi + 0x11d], 1
mov dword [esi + 0x198], ebx
mov dword [esi + 0x19c], ebx
mov dword [esi + 0x1a0], ebx
mov dword [esi + 0x1a4], ebx
mov dword [esi + 0x1b4], ebx
mov dword [esi + 0x1b8], ebx
mov dword [esi + 0x1bc], ebx
mov dword [esi + 0x1c0], ebx
mov dword [esi + 0x1c4], ebx
mov dword [esi + 0x1a8], ebx
mov dword [esi + 0x1ac], ebx
mov dword [esi + 0x1b0], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051651d
mov esp, ebp
pop ebp
ret