Function at 0x42e410
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4d5ba7
mov eax, dword fs:[0]
push eax
sub esp, 0x818
mov eax, dword [0x54d158]
xor eax, esp
mov dword [esp + 0x814], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x54d158]
xor eax, esp
push eax
lea eax, [esp + 0x82c]
mov dword fs:[0], eax
push 0x400
xor ebp, ebp
lea eax, [esp + 0x2c]
mov ebx, ecx
push ebp
push eax
mov dword [esp + 0x24], ebx
call fcn.004b0770
add esp, 0xc
lea edi, [esp + 0x28]
call fcn.0042f0a0
test eax, eax
lea esi, [ebp + 0x5c]
jle 0x42e4ca
mov eax, edi
lea edx, [eax + 2]
jmp 0x42e480
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x42e480
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x26], si
je 0x42e4a0
mov word [esp + eax*2 + 0x28], si
mov word [esp + eax*2 + 0x2a], bp
lea eax, [esp + 0x28]
lea ecx, [ebx + 4]
lea esi, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
cmp dx, bp
jne 0x42e4b0
sub eax, esi
sar eax, 1
push eax
lea edx, [esp + 0x2c]
push edx
call fcn.0040fe70
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x42e4d1
sub eax, edx
sar eax, 1
jne 0x42e4ff
call fcn.0042f600
test eax, eax
lea ecx, [ebx + 4]
je 0x42e4f5
push str.C:WinNT_
jmp 0x42e4fa
push str.C:Windows_
call fcn.00410090
push 2
lea eax, [esp + 0x20]
lea edi, [ebx + 4]
push eax
mov ecx, edi
call fcn.004315e0
lea esi, [ebx + 0xc]
push eax
mov ecx, esi
mov dword [esp + 0x838], ebp
call fcn.0040fdf0
mov dword [esp + 0x834], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e54d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
cmp ecx, ebp
jle 0x42e5bc
push 0x5c
push eax
call fcn.004ae2db
add esp, 8
cmp eax, ebp
je 0x42e5bc
sub eax, dword [esi]
sar eax, 1
cmp eax, 0xffffffff
je 0x42e5bc
add eax, 0xffffffff
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
call fcn.004315e0
push eax
mov ecx, esi
mov dword [esp + 0x838], 1
call fcn.0040fdf0
mov dword [esp + 0x834], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42e5bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x400
lea ecx, [esp + 0x2c]
push ecx
mov word [esp + 0x30], bp
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x42e62a
lea eax, [esp + 0x28]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x42e5e0
sub eax, edx
sar eax, 1
mov ecx, 0x5c
cmp word [esp + eax*2 + 0x26], cx
je 0x42e605
mov word [esp + eax*2 + 0x28], cx
mov word [esp + eax*2 + 0x2a], bp
lea eax, [esp + 0x28]
lea ecx, [ebx + 0x10]
lea esi, [eax + 2]
nop
mov dx, word [eax]
add eax, 2
cmp dx, bp
jne 0x42e610
sub eax, esi
sar eax, 1
push eax
lea edx, [esp + 0x2c]
push edx
call fcn.0040fe70
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x42e631
sub eax, edx
sar eax, 1
jne 0x42e66c
lea eax, [ebx + 4]
lea esi, [ebx + 0x10]
push eax
mov ecx, esi
call fcn.0040fdf0
call fcn.0042f500
test eax, eax
mov ecx, esi
je 0x42e662
push str.System_
jmp 0x42e667
push str.System32_
call fcn.0040da00
lea edi, [esp + 0x28]
mov word [esp + 0x28], bp
call fcn.0042f0f0
test eax, eax
je 0x42e6cc
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x42e683
sub eax, edx
sar eax, 1
mov ecx, 0x5c
cmp word [esp + eax*2 + 0x26], cx
je 0x42e6a8
mov word [esp + eax*2 + 0x28], cx
mov word [esp + eax*2 + 0x2a], bp
lea eax, [esp + 0x28]
lea ecx, [ebx + 0x14]
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bp
jne 0x42e6b2
sub eax, esi
sar eax, 1
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0040fe70
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x42e6d3
sub eax, edx
sar eax, 1
jne 0x42e700
lea eax, [ebx + 0xc]
lea esi, [ebx + 0x14]
push eax
mov ecx, esi
call fcn.0040fdf0
push 0xf
push str.Program_Files_
mov ecx, esi
call fcn.0040ee60
mov edx, dword [ebx + 0x38]
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [esp + 0x28]
push ecx
push ebp
push edx
push 0x1a
push ebp
mov word [esp + 0x3c], bp
call edi
test eax, eax
jne 0x42e77a
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x42e725
sub eax, edx
sar eax, 1
mov ecx, 0x5c
cmp word [esp + eax*2 + 0x26], cx
je 0x42e74a
mov word [esp + eax*2 + 0x28], cx
mov word [esp + eax*2 + 0x2a], bp
lea eax, [esp + 0x28]
lea esi, [ebx + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x42e754
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.0040fe70
push esi
mov ecx, ebx
call fcn.0042ddf0
jmp 0x42e7b9
mov edx, dword [ebx + 0x38]
lea ecx, [esp + 0x28]
push ecx
push ebp
push edx
push 0x28
push ebp
call edi
test eax, eax
jne 0x42e7b9
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x42e794
sub eax, edx
sar eax, 1
mov ecx, 0x5c
cmp word [esp + eax*2 + 0x26], cx
je 0x42e7b9
mov word [esp + eax*2 + 0x28], cx
mov word [esp + eax*2 + 0x2a], bp
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x42e7c0
sub eax, edx
sar eax, 1
jne 0x42e832
call fcn.0042f480
test eax, eax
je 0x42e7f5
mov eax, dword [ebx + 0x34]
mov ecx, dword [ebx + 0xc]
push eax
push ecx
lea esi, [ebx + 0x1c]
push str._sUsers_sAppDataLocal_
push esi
call fcn.00410070
add esp, 0x10
jmp 0x42e85c
call fcn.0042f580
test eax, eax
lea esi, [ebx + 0x1c]
je 0x42e819
mov edx, dword [ebx + 0x34]
mov eax, dword [ebx + 0xc]
push edx
push eax
push str._sDocuments_and_Settings_sApplication_Data_
push esi
call fcn.00410070
add esp, 0x10
jmp 0x42e85c
lea eax, [ebx + 4]
push eax
mov ecx, esi
call fcn.0040fdf0
push str.Application_Data_
mov ecx, esi
call fcn.0040da00
jmp 0x42e85c
lea eax, [esp + 0x28]
lea esi, [ebx + 0x1c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x42e840
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.0040fe70
mov eax, dword [ebx + 0x38]
lea edx, [esp + 0x28]
push edx
push ebp
push eax
push 0x1c
push ebp
mov word [esp + 0x3c], bp
call edi
test eax, eax
jne 0x42e8d9
lea eax, [esp + 0x28]
lea edx, [eax + 2]
jmp 0x42e880
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x42e880
sub eax, edx
sar eax, 1
mov ecx, 0x5c
cmp word [esp + eax*2 + 0x26], cx
je 0x42e8a5
mov word [esp + eax*2 + 0x28], cx
mov word [esp + eax*2 + 0x2a], bp
lea eax, [esp + 0x28]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x42e8b0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.0040fe70
push esi
mov ecx, ebx
call fcn.0042ddf0
jmp 0x42e98a
mov eax, dword [ebx + 0x38]
lea edx, [esp + 0x28]
push edx
push ebp
push eax
push 0x28
push ebp
call edi
test eax, eax
jne 0x42e98a
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x42e8f7
sub eax, edx
sar eax, 1
mov ecx, 0x5c
cmp word [esp + eax*2 + 0x26], cx
je 0x42e91c
mov word [esp + eax*2 + 0x28], cx
mov word [esp + eax*2 + 0x2a], bp
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x20]
call fcn.00410140
mov dword [esp + 0x834], 2
call fcn.0042f480
test eax, eax
lea ecx, [esp + 0x1c]
je 0x42e949
push 0x51e134
jmp 0x42e94e
push 0x51e148
call fcn.0040da00
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.0040fdf0
mov dword [esp + 0x834], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e98a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x42e991
sub eax, edx
sar eax, 1
jne 0x42e9fb
call fcn.0042f480
test eax, eax
je 0x42e9c3
mov ecx, dword [ebx + 0x34]
mov edx, dword [ebx + 0xc]
push ecx
push edx
push str._sUsers_sAppDataLocal_
push esi
call fcn.00410070
add esp, 0x10
jmp 0x42e9fb
call fcn.0042f580
test eax, eax
je 0x42e9e4
mov eax, dword [ebx + 0x34]
mov ecx, dword [ebx + 0xc]
push eax
push ecx
push str._sDocuments_and_Settings_sLocal_SettingsApplication_Data_
push esi
call fcn.00410070
add esp, 0x10
jmp 0x42e9fb
lea eax, [ebx + 4]
push eax
mov ecx, esi
call fcn.0040fdf0
push 0x51e148
mov ecx, esi
call fcn.0040da00
mov esi, dword [esi]
sub esi, 0x10
push esi
mov word [esp + 0x2c], bp
call fcn.0040ff10
add eax, 0x10
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x834], 3
call fcn.0042f480
test eax, eax
je 0x42eab7
mov edx, dword [ebx + 0x38]
push edx
lea edi, [esp + 0x2c]
call fcn.0042f390
mov eax, edi
add esp, 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x42ea42
sub eax, edx
sar eax, 1
mov ecx, 0x5c
cmp word [esp + eax*2 + 0x26], cx
je 0x42ea67
mov word [esp + eax*2 + 0x28], cx
mov word [esp + eax*2 + 0x2a], bp
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x42ea70
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x24]
call fcn.0040fe70
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x42ea95
sub eax, edx
sar eax, 1
jne 0x42eacb
push str.LocalLow_
push str.Local_
lea ecx, [esp + 0x24]
push ecx
jmp 0x42eac6
push str.Compatible_LocalLow_
push 0x51d84c
lea edx, [esp + 0x24]
push edx
call fcn.004312b0
lea eax, [esp + 0x1c]
lea ecx, [ebx + 0x20]
push eax
call fcn.0040fdf0
push 0xc
mov word [esp + 0x2c], bp
call fcn.004a08b1
add esp, 4
cmp eax, ebp
mov dword [esp + 0x24], eax
je 0x42f03e
lea edi, [eax + 8]
mov dword [eax], vtable.Cy_Registry.0
mov dword [edi], ebp
call fcn.004a08e6
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x42eb18
push 0x80004005
call fcn.004103e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x834], 4
mov edx, dword [ecx + 0x3c]
push edx
lea eax, [esp + 0x24]
push str._sSoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push eax
call fcn.00410070
mov eax, dword [edi]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
add esp, 0xc
cmp eax, esi
je 0x42eb75
push eax
call ebx
mov ecx, dword [edi]
push ecx
call ebp
xor edx, edx
cmp eax, esi
sete dl
mov dword [edi], esi
mov eax, edx
cmp eax, esi
je 0x42ebcb
mov eax, dword [esp + 0x20]
push edi
push 0x20019
push esi
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x42ebcb
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x2c]
push edx
push str.Desktop
push esi
mov dword [esp + 0x24], 0x400
call fcn.0042acc0
call fcn.0042ac90
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
add ecx, 0x24
call fcn.00410090
xor esi, esi
jmp 0x42ec1b
push 1
push esi
lea ecx, [esp + 0x30]
push ecx
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x42ec1b
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x42ebe5
sub eax, edx
sar eax, 1
mov ecx, 0x5c
cmp word [esp + eax*2 + 0x26], cx
je 0x42ec0a
mov word [esp + eax*2 + 0x28], cx
mov word [esp + eax*2 + 0x2a], si
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x28]
push edx
add ecx, 0x24
call fcn.00410090
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x42ec22
sub eax, edx
sar eax, 1
jne 0x42ec70
call fcn.0042f580
test eax, eax
mov eax, dword [esp + 0x18]
je 0x42ec5b
mov ecx, dword [eax + 0x34]
mov edx, dword [eax + 0xc]
push ecx
push edx
add eax, 0x24
push str._sDocuments_And_Settings_sDesktop_
push eax
call fcn.00410070
add esp, 0x10
jmp 0x42ec70
mov ecx, dword [eax + 4]
push ecx
add eax, 0x24
push str._sDesktop_
push eax
call fcn.00410070
add esp, 0xc
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x3c]
push eax
lea ecx, [esp + 0x24]
push str._sSoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push ecx
mov word [esp + 0x34], si
call fcn.00410070
mov eax, dword [edi]
add esp, 0xc
cmp eax, esi
je 0x42ecac
push eax
call ebx
mov edx, dword [edi]
push edx
call ebp
xor ecx, ecx
cmp eax, esi
sete cl
mov dword [edi], esi
mov eax, ecx
cmp eax, esi
je 0x42ed02
mov edx, dword [esp + 0x20]
push edi
push 0x20019
push esi
push edx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x42ed02
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
push str.Start_Menu
push esi
mov dword [esp + 0x24], 0x400
call fcn.0042acc0
call fcn.0042ac90
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x28]
push edx
add ecx, 0x28
call fcn.00410090
xor esi, esi
jmp 0x42ed56
push 1
push 0xb
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x42ed56
lea eax, [esp + 0x28]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x42ed20
sub eax, edx
sar eax, 1
mov ecx, 0x5c
cmp word [esp + eax*2 + 0x26], cx
je 0x42ed45
mov word [esp + eax*2 + 0x28], cx
mov word [esp + eax*2 + 0x2a], si
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x1c]
add ecx, 0x28
call fcn.00410090
lea eax, [esp + 0x28]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x42ed60
sub eax, edx
sar eax, 1
jne 0x42edae
call fcn.0042f580
test eax, eax
mov eax, dword [esp + 0x18]
je 0x42ed99
mov edx, dword [eax + 0x34]
mov ecx, dword [eax + 0xc]
push edx
push ecx
add eax, 0x28
push str._sDocuments_And_Settings_sStart_Menu_
push eax
call fcn.00410070
add esp, 0x10
jmp 0x42edae
mov edx, dword [eax + 4]
push edx
add eax, 0x28
push str._sStart_Menu_
push eax
call fcn.00410070
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x3c]
push ecx
lea edx, [esp + 0x24]
push str._sSoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push edx
mov word [esp + 0x34], si
call fcn.00410070
mov eax, dword [edi]
add esp, 0xc
cmp eax, esi
je 0x42edea
push eax
call ebx
mov eax, dword [edi]
push eax
call ebp
xor ecx, ecx
cmp eax, esi
sete cl
mov dword [edi], esi
mov eax, ecx
cmp eax, esi
je 0x42ee40
mov edx, dword [esp + 0x20]
push edi
push 0x20019
push esi
push edx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x42ee40
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
push str.Programs
push esi
mov dword [esp + 0x24], 0x400
call fcn.0042acc0
call fcn.0042ac90
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x28]
push edx
add ecx, 0x2c
call fcn.00410090
xor esi, esi
jmp 0x42ee96
push 1
push 2
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x42ee96
lea eax, [esp + 0x28]
lea edx, [eax + 2]
jmp 0x42ee60
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x42ee60
sub eax, edx
sar eax, 1
mov ecx, 0x5c
cmp word [esp + eax*2 + 0x26], cx
je 0x42ee85
mov word [esp + eax*2 + 0x28], cx
mov word [esp + eax*2 + 0x2a], si
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x1c]
add ecx, 0x2c
call fcn.00410090
lea eax, [esp + 0x28]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x42eea0
sub eax, edx
sar eax, 1
jne 0x42eeca
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0x28]
push edx
add eax, 0x2c
push str._sPrograms_
push eax
call fcn.00410070
add esp, 0xc
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x3c]
push eax
lea ecx, [esp + 0x24]
push str._sSoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push ecx
mov word [esp + 0x34], 0
call fcn.00410070
mov eax, dword [edi]
mov ebp, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
je 0x42ef14
push eax
call ebx
mov edx, dword [edi]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
test eax, eax
sete cl
mov dword [edi], 0
mov eax, ecx
test eax, eax
je 0x42ef6b
push edi
push 0x20019
push 0
push ebp
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42ef6b
mov edi, dword [esp + 0x24]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x2c]
push eax
push str.Personal
push edi
mov dword [esp + 0x24], 0x400
call fcn.0042acc0
mov esi, edi
call fcn.0042ac90
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x1c]
add ecx, 0x30
call fcn.00410090
mov esi, dword [esp + 0x18]
jmp 0x42efbf
push 1
push 5
lea edx, [esp + 0x30]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x42efbb
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42ef87
sub eax, edx
sar eax, 1
mov ecx, 0x5c
cmp word [esp + eax*2 + 0x26], cx
je 0x42efae
mov word [esp + eax*2 + 0x28], cx
mov word [esp + eax*2 + 0x2a], 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esi + 0x30]
call fcn.00410090
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42efc6
sub eax, edx
sar eax, 1
jne 0x42f010
call fcn.0042f580
test eax, eax
je 0x42effb
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0xc]
push ecx
push edx
push str._sDocuments_And_Settings_sMy_Documents_
add esi, 0x30
push esi
call fcn.00410070
add esp, 0x10
jmp 0x42f010
mov eax, dword [esi + 0xc]
push eax
push str._sMy_Documents_
add esi, 0x30
push esi
call fcn.00410070
add esp, 0xc
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x834], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f03e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x834], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f069
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x82c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x814]
xor ecx, esp
call fcn.004ac89d
add esp, 0x824
ret