Function at 0x4177d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4d2eaa
mov eax, dword fs:[0]
push eax
sub esp, 0x830
mov eax, dword [0x54d158]
xor eax, esp
mov dword [esp + 0x828], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x54d158]
xor eax, esp
push eax
lea eax, [esp + 0x844]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x854]
mov eax, dword [esp + 0x858]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], eax
xor ebx, ebx
lea edi, [esp + 0x3c]
mov dword [esp + 0x84c], ebx
call fcn.0042f0a0
test eax, eax
lea esi, [ebx + 0x5c]
jle 0x41786f
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x417840
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x3a], si
je 0x417860
mov word [esp + eax*2 + 0x3c], si
mov word [esp + eax*2 + 0x3e], bx
push 0xffffffffffffffff
lea ecx, [esp + 0x40]
push ecx
lea ecx, [ebp + 0xc]
call fcn.00473ec0
lea eax, [esp + 0x3c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x417876
sub eax, edx
sar eax, 1
jne 0x4178a6
call fcn.0042f600
test eax, eax
push 0xffffffffffffffff
lea ecx, [ebp + 0xc]
je 0x41789c
push str.C:WinNT_
jmp 0x4178a1
push str.C:Windows_
call fcn.00473ec0
push 2
lea edx, [esp + 0x18]
lea edi, [ebp + 0xc]
push edx
mov ecx, edi
call fcn.004743b0
lea esi, [ebp + 8]
push eax
mov ecx, esi
mov byte [esp + 0x850], 1
call fcn.00474c20
lea ecx, [esp + 0x14]
mov byte [esp + 0x84c], bl
call fcn.004732d0
push ebx
push 0x5c
mov ecx, esi
call fcn.004734b0
cmp eax, 0xffffffff
je 0x417919
add eax, 0xffffffff
push eax
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.004743b0
push eax
mov ecx, esi
mov byte [esp + 0x850], 2
call fcn.00474c20
lea ecx, [esp + 0x14]
mov byte [esp + 0x84c], bl
call fcn.004732d0
mov word [esp + 0x3c], bx
call fcn.00413e00
test eax, eax
je 0x417940
lea esi, [ebp + 0x10]
push edi
mov ecx, esi
call fcn.00474c20
push str.SysWOW64_
mov ecx, esi
call fcn.00473fc0
jmp 0x417994
push 0x400
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x417994
lea eax, [esp + 0x3c]
lea edx, [eax + 2]
jmp 0x417960
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x417960
sub eax, edx
sar eax, 1
mov ecx, 0x5c
cmp word [esp + eax*2 + 0x3a], cx
je 0x417985
mov word [esp + eax*2 + 0x3c], cx
mov word [esp + eax*2 + 0x3e], bx
push 0xffffffffffffffff
lea edx, [esp + 0x40]
push edx
lea ecx, [ebp + 0x10]
call fcn.00473ec0
lea eax, [esp + 0x3c]
lea edx, [eax + 2]
jmp 0x4179a0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4179a0
sub eax, edx
sar eax, 1
jne 0x4179eb
lea eax, [ebp + 0xc]
lea esi, [ebp + 0x10]
push eax
mov ecx, esi
call fcn.00474c20
call fcn.0042f500
test eax, eax
je 0x4179cf
push str.System_
jmp 0x4179e4
call fcn.00413e00
test eax, eax
je 0x4179df
push str.SysWOW64_
jmp 0x4179e4
push str.System32_
mov ecx, esi
call fcn.00473fc0
lea edi, [esp + 0x3c]
mov word [esp + 0x3c], bx
call fcn.0042f0f0
test eax, eax
je 0x417a36
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x417a02
sub eax, edx
sar eax, 1
mov ecx, 0x5c
cmp word [esp + eax*2 + 0x3a], cx
je 0x417a27
mov word [esp + eax*2 + 0x3c], cx
mov word [esp + eax*2 + 0x3e], bx
push 0xffffffffffffffff
lea eax, [esp + 0x40]
push eax
lea ecx, [ebp + 0x14]
call fcn.00473ec0
lea eax, [esp + 0x3c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x417a40
sub eax, edx
sar eax, 1
jne 0x417a6b
lea eax, [ebp + 8]
lea esi, [ebp + 0x14]
push eax
mov ecx, esi
call fcn.00474c20
push str.Program_Files_
mov ecx, esi
call fcn.00473fc0
mov esi, dword [esp + 0x20]
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [esp + 0x3c]
push ecx
push ebx
push esi
push 0x1a
push ebx
mov word [esp + 0x50], bx
call edi
test eax, eax
lea eax, [esp + 0x3c]
jne 0x417aca
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x417a91
sub eax, edx
sar eax, 1
mov ecx, 0x5c
cmp word [esp + eax*2 + 0x3a], cx
je 0x417ab6
mov word [esp + eax*2 + 0x3c], cx
mov word [esp + eax*2 + 0x3e], bx
push 0xffffffffffffffff
lea edx, [esp + 0x40]
push edx
lea ecx, [ebp + 0x18]
call fcn.00473ec0
jmp 0x417b59
push eax
push ebx
push esi
push 0x28
push ebx
call edi
test eax, eax
jne 0x417b59
lea eax, [esp + 0x3c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x417ae1
sub eax, edx
sar eax, 1
mov ecx, 0x5c
cmp word [esp + eax*2 + 0x3a], cx
je 0x417b06
mov word [esp + eax*2 + 0x3c], cx
mov word [esp + eax*2 + 0x3e], bx
push 0xffffffffffffffff
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x24]
call fcn.004748c0
mov byte [esp + 0x84c], 3
call fcn.0042f480
test eax, eax
lea ecx, [esp + 0x1c]
je 0x417b32
push str.Romaing_
jmp 0x417b37
push str.Application_Data_
call fcn.00473fc0
lea edx, [esp + 0x1c]
push edx
lea ecx, [ebp + 0x18]
call fcn.00474c20
lea ecx, [esp + 0x1c]
mov byte [esp + 0x84c], bl
call fcn.004732d0
lea eax, [esp + 0x3c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x417b60
sub eax, edx
sar eax, 1
jne 0x417be3
call fcn.0042f480
test eax, eax
je 0x417b98
mov eax, dword [ebp + 0x5fc]
mov ecx, dword [ebp + 8]
push eax
push ecx
lea edx, [ebp + 0x18]
push str._sUsers_sAppDataLocal_
push edx
call fcn.00473270
add esp, 0x10
jmp 0x417be3
call fcn.0042f580
test eax, eax
je 0x417bbf
mov eax, dword [ebp + 0x5fc]
mov ecx, dword [ebp + 8]
push eax
push ecx
lea edx, [ebp + 0x18]
push str._sDocuments_and_Settings_sApplication_Data_
push edx
call fcn.00473270
add esp, 0x10
jmp 0x417be3
lea eax, [ebp + 0xc]
lea esi, [ebp + 0x18]
push eax
mov ecx, esi
call fcn.00474c20
push str.Application_Data_
mov ecx, esi
call fcn.00473fc0
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x3c]
push eax
push ebx
push esi
push 0x1c
push ebx
mov word [esp + 0x50], bx
call edi
test eax, eax
jne 0x417c39
lea eax, [esp + 0x3c]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x417c00
sub eax, edx
sar eax, 1
mov ecx, 0x5c
cmp word [esp + eax*2 + 0x3a], cx
je 0x417c25
mov word [esp + eax*2 + 0x3c], cx
mov word [esp + eax*2 + 0x3e], bx
push 0xffffffffffffffff
lea ecx, [esp + 0x40]
push ecx
lea ecx, [ebp + 0x1c]
call fcn.00473ec0
jmp 0x417ccc
lea edx, [esp + 0x3c]
push edx
push ebx
push esi
push 0x28
push ebx
call edi
test eax, eax
jne 0x417ccc
lea eax, [esp + 0x3c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x417c54
sub eax, edx
sar eax, 1
mov ecx, 0x5c
cmp word [esp + eax*2 + 0x3a], cx
je 0x417c79
mov word [esp + eax*2 + 0x3c], cx
mov word [esp + eax*2 + 0x3e], bx
push 0xffffffffffffffff
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x24]
call fcn.004748c0
mov byte [esp + 0x84c], 4
call fcn.0042f480
test eax, eax
lea ecx, [esp + 0x1c]
je 0x417ca5
push 0x51e134
jmp 0x417caa
push 0x51e148
call fcn.00473fc0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [ebp + 0x1c]
call fcn.00474c20
lea ecx, [esp + 0x1c]
mov byte [esp + 0x84c], bl
call fcn.004732d0
lea eax, [esp + 0x3c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x417cd3
sub eax, edx
sar eax, 1
jne 0x417d50
call fcn.0042f480
test eax, eax
je 0x417d0b
mov edx, dword [ebp + 0x5fc]
mov eax, dword [ebp + 8]
push edx
push eax
lea ecx, [ebp + 0x1c]
push str._sUsers_sAppDataLocal_
push ecx
call fcn.00473270
add esp, 0x10
jmp 0x417d50
call fcn.0042f580
test eax, eax
je 0x417d32
mov edx, dword [ebp + 0x5fc]
mov eax, dword [ebp + 8]
push edx
push eax
lea ecx, [ebp + 0x1c]
push str._sDocuments_and_Settings_sLocal_SettingsApplication_Data_
push ecx
call fcn.00473270
add esp, 0x10
jmp 0x417d50
lea eax, [ebp + 0xc]
lea esi, [ebp + 0x1c]
push eax
mov ecx, esi
call fcn.00474c20
push 0x51e148
mov ecx, esi
call fcn.00473fc0
mov esi, dword [esp + 0x20]
lea edx, [ebp + 0x1c]
push edx
lea ecx, [esp + 0x28]
mov word [esp + 0x40], bx
call fcn.004755e0
mov byte [esp + 0x84c], 5
call fcn.0042f480
test eax, eax
je 0x417dde
push esi
lea edi, [esp + 0x40]
call fcn.0042f390
mov eax, edi
add esp, 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x417d85
sub eax, edx
sar eax, 1
mov ecx, 0x5c
cmp word [esp + eax*2 + 0x3a], cx
je 0x417daa
mov word [esp + eax*2 + 0x3c], cx
mov word [esp + eax*2 + 0x3e], bx
push 0xffffffffffffffff
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x2c]
call fcn.00473ec0
lea eax, [esp + 0x3c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x417dc1
sub eax, edx
sar eax, 1
jne 0x417df1
push str.LocalLow_
push str.Local_
jmp 0x417de8
push str.Compatible_LocalLow_
push 0x51d84c
lea ecx, [esp + 0x2c]
call fcn.004737b0
lea ecx, [esp + 0x24]
push ecx
lea ecx, [ebp + 0x20]
call fcn.00474c20
push 0xc
mov word [esp + 0x40], bx
call fcn.004a08b1
add esp, 4
cmp eax, ebx
mov dword [esp + 0x1c], eax
je 0x418423
lea edi, [eax + 8]
lea ecx, [esp + 0x28]
mov dword [eax], vtable.Cy_Registry.0
mov dword [edi], ebx
call fcn.00474bb0
mov byte [esp + 0x84c], 6
mov edx, dword [esp + 0x85c]
push edx
lea eax, [esp + 0x2c]
push str._sSoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push eax
call fcn.00473270
add esp, 0xc
call fcn.0042f480
test eax, eax
je 0x417f1a
push 0x51d1c0
mov dword [esp + 0x30], 0xb4bfcc3a
mov word [esp + 0x34], 0xdb2c
mov word [esp + 0x36], 0x424c
mov byte [esp + 0x38], 0xb0
mov byte [esp + 0x39], 0x29
mov byte [esp + 0x3a], 0x7f
mov byte [esp + 0x3b], 0xe9
mov byte [esp + 0x3c], 0x9a
mov byte [esp + 0x3d], 0x87
mov byte [esp + 0x3e], 0xc6
mov byte [esp + 0x3f], 0x41
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebx
je 0x417fbe
push str.SHGetKnownFolderPath
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x417f0e
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push edx
push ebx
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x24], ebx
call eax
cmp eax, ebx
jl 0x417f0e
mov ebp, dword [esp + 0x14]
lea edx, [esp + 0x3c]
mov eax, ebp
sub edx, ebp
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x417ee5
push ebp
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
lea edx, [esp + 0x40]
push edx
add ecx, 0x24
call fcn.00473ec0
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x417fbe
lea eax, [esp + 0x3c]
push eax
push ebx
push esi
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x417f45
lea edx, [esp + 0x3c]
call fcn.0042f690
lea ecx, [esp + 0x3c]
push 0xffffffffffffffff
push ecx
lea ecx, [ebp + 0x24]
jmp 0x417fb9
mov eax, dword [edi]
cmp eax, ebx
mov ebp, dword [esp + 0x28]
je 0x417f6e
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov edx, dword [edi]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
cmp eax, ebx
sete cl
mov dword [edi], ebx
mov eax, ecx
cmp eax, ebx
je 0x417fbe
push edi
push 0x20019
push ebx
push ebp
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x417fbe
mov esi, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x40]
push eax
push str.Desktop
push esi
mov dword [esp + 0x24], 0x400
call fcn.0042acc0
call fcn.0042ac90
lea ecx, [esp + 0x3c]
push 0xffffffffffffffff
push ecx
mov ecx, dword [esp + 0x20]
add ecx, 0x24
call fcn.00473ec0
lea eax, [esp + 0x3c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x417fc5
sub eax, edx
sar eax, 1
jne 0x418047
call fcn.0042f480
test eax, eax
je 0x418005
mov esi, dword [esp + 0x18]
mov edx, dword [esi + 0x5fc]
mov eax, dword [esi + 8]
push edx
push eax
lea ecx, [esi + 0x24]
push str._sUsers_sDesktop_
push ecx
call fcn.00473270
add esp, 0x10
jmp 0x41804b
call fcn.0042f580
test eax, eax
mov esi, dword [esp + 0x18]
je 0x418030
mov edx, dword [esi + 0x5fc]
mov eax, dword [esi + 8]
push edx
push eax
lea ecx, [esi + 0x24]
push str._sDocuments_And_Settings_sDesktop_
push ecx
call fcn.00473270
add esp, 0x10
jmp 0x41804b
mov edx, dword [esi + 0xc]
push edx
lea eax, [esi + 0x24]
push str._sDesktop_
push eax
call fcn.00473270
add esp, 0xc
jmp 0x41804b
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x3c]
push ecx
push ebx
push edx
push 0xb
push ebx
mov word [esp + 0x50], bx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4180a4
lea eax, [esp + 0x3c]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x418070
sub eax, edx
sar eax, 1
mov ecx, 0x5c
cmp word [esp + eax*2 + 0x3a], cx
je 0x418095
mov word [esp + eax*2 + 0x3c], cx
mov word [esp + eax*2 + 0x3e], bx
push 0xffffffffffffffff
lea eax, [esp + 0x40]
push eax
lea ecx, [esi + 0x28]
jmp 0x418118
mov eax, dword [edi]
cmp eax, ebx
mov ebp, dword [esp + 0x28]
je 0x4180cd
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [edi]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
cmp eax, ebx
sete dl
mov dword [edi], ebx
mov eax, edx
cmp eax, ebx
je 0x41811d
push edi
push 0x20019
push ebx
push ebp
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x41811d
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x40]
push ecx
push str.Start_Menu
push esi
mov dword [esp + 0x24], 0x400
call fcn.0042acc0
call fcn.0042ac90
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
lea edx, [esp + 0x40]
push edx
add ecx, 0x28
call fcn.00473ec0
lea eax, [esp + 0x3c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x418124
sub eax, edx
sar eax, 1
jne 0x4181a6
call fcn.0042f480
test eax, eax
je 0x418164
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x5fc]
mov ecx, dword [esi + 8]
push eax
push ecx
lea edx, [esi + 0x28]
push str._sUsers_sStart_Menu_
push edx
call fcn.00473270
add esp, 0x10
jmp 0x4181aa
call fcn.0042f580
test eax, eax
mov esi, dword [esp + 0x18]
je 0x41818f
mov eax, dword [esi + 0x5fc]
mov ecx, dword [esi + 8]
push eax
push ecx
lea edx, [esi + 0x28]
push str._sDocuments_And_Settings_sStart_Menu_
push edx
call fcn.00473270
add esp, 0x10
jmp 0x4181aa
mov eax, dword [esi + 0xc]
push eax
lea ecx, [esi + 0x28]
push str._sStart_Menu_
push ecx
call fcn.00473270
add esp, 0xc
jmp 0x4181aa
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x3c]
push edx
push ebx
push eax
push 2
push ebx
mov word [esp + 0x50], bx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x418204
lea eax, [esp + 0x3c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4181d0
sub eax, edx
sar eax, 1
mov ecx, 0x5c
cmp word [esp + eax*2 + 0x3a], cx
je 0x4181f5
mov word [esp + eax*2 + 0x3c], cx
mov word [esp + eax*2 + 0x3e], bx
lea ecx, [esp + 0x3c]
push 0xffffffffffffffff
push ecx
lea ecx, [esi + 0x2c]
jmp 0x418278
mov eax, dword [edi]
cmp eax, ebx
mov ebp, dword [esp + 0x28]
je 0x41822d
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov edx, dword [edi]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
cmp eax, ebx
sete cl
mov dword [edi], ebx
mov eax, ecx
cmp eax, ebx
je 0x41827d
push edi
push 0x20019
push ebx
push ebp
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x41827d
mov esi, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x40]
push eax
push str.Programs
push esi
mov dword [esp + 0x24], 0x400
call fcn.0042acc0
call fcn.0042ac90
lea ecx, [esp + 0x3c]
push 0xffffffffffffffff
push ecx
mov ecx, dword [esp + 0x20]
add ecx, 0x2c
call fcn.00473ec0
lea eax, [esp + 0x3c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x418284
mov esi, dword [esp + 0x18]
sub eax, edx
sar eax, 1
jne 0x4182ae
mov edx, dword [esi + 0x28]
push edx
lea eax, [esi + 0x2c]
push str._sPrograms_
push eax
call fcn.00473270
add esp, 0xc
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x3c]
push ecx
push ebx
push edx
push 5
push ebx
mov word [esp + 0x50], bx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x418306
lea eax, [esp + 0x3c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4182d2
sub eax, edx
sar eax, 1
mov ecx, 0x5c
cmp word [esp + eax*2 + 0x3a], cx
je 0x4182f7
mov word [esp + eax*2 + 0x3c], cx
mov word [esp + eax*2 + 0x3e], bx
push 0xffffffffffffffff
lea eax, [esp + 0x40]
push eax
lea ecx, [esi + 0x30]
jmp 0x41837a
mov eax, dword [edi]
cmp eax, ebx
mov ebp, dword [esp + 0x28]
je 0x41832f
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [edi]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
cmp eax, ebx
sete dl
mov dword [edi], ebx
mov eax, edx
cmp eax, ebx
je 0x41837f
push edi
push 0x20019
push ebx
push ebp
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x41837f
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x40]
push ecx
push str.Personal
push esi
mov dword [esp + 0x24], 0x400
call fcn.0042acc0
call fcn.0042ac90
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
lea edx, [esp + 0x40]
push edx
add ecx, 0x30
call fcn.00473ec0
lea eax, [esp + 0x3c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x418386
sub eax, edx
sar eax, 1
jne 0x418406
call fcn.0042f480
test eax, eax
je 0x4183c6
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x5fc]
mov edx, dword [eax + 8]
push ecx
push edx
add eax, 0x30
push str._sUsers_sMy_Documents_
push eax
call fcn.00473270
add esp, 0x10
jmp 0x418406
call fcn.0042f580
test eax, eax
mov eax, dword [esp + 0x18]
je 0x4183f1
mov ecx, dword [eax + 0x5fc]
mov edx, dword [eax + 8]
push ecx
push edx
add eax, 0x30
push str._sDocuments_And_Settings_sMy_Documents_
push eax
call fcn.00473270
add esp, 0x10
jmp 0x418406
mov ecx, dword [eax + 8]
push ecx
add eax, 0x30
push str._sMy_Documents_
push eax
call fcn.00473270
add esp, 0xc
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x84c], 5
call fcn.004732d0
lea ecx, [esp + 0x24]
mov byte [esp + 0x84c], bl
call fcn.004732d0
lea ecx, [esp + 0x85c]
mov dword [esp + 0x84c], 0xffffffff
call fcn.004732d0
mov ecx, dword [esp + 0x844]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x828]
xor ecx, esp
call fcn.004ac89d
add esp, 0x83c
ret 0xc