Function at 0x411610
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4bb46a
mov eax, dword fs:[0]
push eax
sub esp, 0x49c
mov eax, dword [0x4fcc8c]
xor eax, esp
mov dword [esp + 0x498], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4fcc8c]
xor eax, esp
push eax
lea eax, [esp + 0x4b0]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4c0]
xor esi, esi
mov dword [esp + 0x58], ebp
mov dword [esp + 0x38], esi
mov ebx, 1
mov dword [esp + 0x4b8], ebx
xor eax, eax
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], esi
push 0xffffffffffffffff
mov word [ebp + 4], ax
push esi
lea eax, [esp + 0x4cc]
mov ecx, ebp
call fcn.00401370
push 0x206
lea edx, [esp + 0xa2]
xor ecx, ecx
push esi
push edx
mov dword [esp + 0x44], ebx
mov word [esp + 0xa8], cx
call fcn.004982b0
lea eax, [esp + 0x68]
add esp, 0xc
push eax
lea ecx, [esp + 0x4c8]
call fcn.0042f420
add esp, 4
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x4cc]
mov byte [esp + 0x4c0], 2
call fcn.00401370
mov byte [esp + 0x4b8], bl
cmp dword [esp + 0x74], 8
jb 0x4116f3
mov ecx, dword [esp + 0x60]
push ecx
call fcn.004913b3
add esp, 4
mov eax, str._WINDOW_
lea edx, [eax + 2]
jmp 0x411700
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x411700
sub eax, edx
sar eax, 1
mov ebx, eax
push str._WINDOW_
xor eax, eax
lea edx, [esp + 0x4c8]
call fcn.00408290
cmp eax, 0xffffffff
je 0x411860
push 0x104
lea edx, [esp + 0xa0]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor edi, edi
xor eax, eax
mov word [esp + 0x7c], ax
mov ebx, 7
lea eax, [esp + 0x9c]
mov dword [esp + 0x90], ebx
mov dword [esp + 0x8c], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x411766
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xa0]
lea esi, [esp + 0x7c]
call fcn.004012c0
mov byte [esp + 0x4b8], 3
xor ecx, ecx
mov eax, str._WINDOW_
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edi
mov word [esp + 0x18], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4117a5
sub eax, edx
sar eax, 1
push eax
mov eax, str._WINDOW_
lea esi, [esp + 0x18]
call fcn.004012c0
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x4c8]
push eax
mov edx, esi
lea ecx, [esp + 0x64]
mov byte [esp + 0x4c0], 4
call fcn.0042eb90
add esp, 8
push 0xffffffffffffffff
push edi
mov ecx, ebp
mov byte [esp + 0x4c0], 5
call fcn.00401370
mov esi, 8
cmp dword [esp + 0x74], esi
jb 0x411810
mov ecx, dword [esp + 0x60]
push ecx
call fcn.004913b3
add esp, 4
xor edx, edx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], edi
mov word [esp + 0x60], dx
cmp dword [esp + 0x2c], esi
jb 0x411832
mov eax, dword [esp + 0x18]
push eax
call fcn.004913b3
add esp, 4
xor ecx, ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edi
mov word [esp + 0x18], cx
cmp dword [esp + 0x90], esi
jb 0x411fb0
mov edx, dword [esp + 0x7c]
push edx
call fcn.004913b3
add esp, 4
jmp 0x411fb0
mov eax, str._SYSTEM_
lea edx, [eax + 2]
jmp 0x411870
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411870
sub eax, edx
sar eax, 1
mov ebx, eax
push str._SYSTEM_
xor eax, eax
lea edx, [esp + 0x4c8]
call fcn.00408290
cmp eax, 0xffffffff
je 0x4119d4
push 0x104
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor edi, edi
mov ebx, 7
xor ecx, ecx
lea eax, [esp + 0x9c]
mov dword [esp + 0x90], ebx
mov dword [esp + 0x8c], edi
mov word [esp + 0x7c], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4118d6
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xa0]
lea esi, [esp + 0x7c]
call fcn.004012c0
mov byte [esp + 0x4b8], 6
xor edx, edx
mov eax, str._SYSTEM_
mov word [esp + 0x18], dx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x411915
sub eax, edx
sar eax, 1
push eax
mov eax, str._SYSTEM_
lea esi, [esp + 0x18]
call fcn.004012c0
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x4c8]
push ecx
mov edx, esi
lea ecx, [esp + 0x64]
mov byte [esp + 0x4c0], 7
call fcn.0042eb90
add esp, 8
push 0xffffffffffffffff
mov ebx, 8
push edi
mov ecx, ebp
mov byte [esp + 0x4c0], bl
call fcn.00401370
cmp dword [esp + 0x74], ebx
jb 0x41197f
mov edx, dword [esp + 0x60]
push edx
call fcn.004913b3
add esp, 4
xor eax, eax
mov esi, 7
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], edi
mov word [esp + 0x60], ax
cmp dword [esp + 0x2c], ebx
jb 0x4119a6
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004913b3
add esp, 4
xor edx, edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], edi
mov word [esp + 0x18], dx
cmp dword [esp + 0x90], ebx
jb 0x411fb0
mov eax, dword [esp + 0x7c]
push eax
call fcn.004913b3
add esp, 4
jmp 0x411fb0
mov eax, str._PROGRAM_
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4119e0
sub eax, edx
sar eax, 1
mov ebx, eax
push str._PROGRAM_
xor eax, eax
lea edx, [esp + 0x4c8]
call fcn.00408290
cmp eax, 0xffffffff
je 0x411ca0
xor edi, edi
xor bl, bl
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov eax, 0x20019
mov ecx, str.SOFTWAREMicrosoftWindowsCurrentVersion
mov edx, closesocket
lea esi, [esp + 0x30]
mov byte [esp + 0x4b8], 9
call fcn.0040f660
test eax, eax
jne 0x411b1c
push 0x206
lea edx, [esp + 0x2aa]
xor ecx, ecx
push edi
push edx
mov word [esp + 0x2b0], cx
call fcn.004982b0
add esp, 0xc
mov eax, esi
push str.ProgramFilesDir
push eax
lea edi, [esp + 0x9c]
lea esi, [esp + 0x2ac]
mov dword [esp + 0x9c], 0x104
call fcn.0040f5e0
test eax, eax
jne 0x411b09
mov eax, esi
lea ecx, [esp + 0x78]
call fcn.004074d0
mov eax, str._PROGRAM_
lea ecx, [esp + 0x5c]
mov byte [esp + 0x4b8], 0xa
call fcn.004074d0
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x4c8]
push edx
lea edx, [esp + 0x64]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c0], 0xb
call fcn.0042eb90
add esp, 8
push 0xffffffffffffffff
push 0
mov ecx, ebp
mov byte [esp + 0x4c0], 0xc
call fcn.00401370
lea esi, [esp + 0x14]
call fcn.0040d2c0
lea esi, [esp + 0x5c]
call fcn.0040d2c0
lea esi, [esp + 0x78]
mov byte [esp + 0x4b8], 9
call fcn.0040d2c0
mov bl, 1
lea esi, [esp + 0x30]
call fcn.0040f6b0
xor edi, edi
test bl, bl
jne 0x411c88
xor eax, eax
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], edi
mov word [esp + 0x60], ax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x4b8], 0xd
call fcn.0042e450
test al, al
je 0x411b9e
mov eax, str._PROGRAM_
lea ecx, [esp + 0x78]
call fcn.004074d0
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x4c8]
push edx
lea edx, [esp + 0x80]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c0], 0xe
call fcn.0042eb90
add esp, 8
push 0xffffffffffffffff
push edi
mov ecx, ebp
mov byte [esp + 0x4c0], 0xf
call fcn.00401370
lea esi, [esp + 0x14]
call fcn.0040d2c0
lea esi, [esp + 0x78]
jmp 0x411c7a
push 0x104
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push edi
push edi
push edi
push edi
push edi
push edi
push 3
lea edx, [esp + 0xb0]
push edx
lea eax, [esp + 0xbc]
xor ecx, ecx
push eax
mov word [esp + 0xb8], cx
mov dword [esp + 0xba], edi
call fcn.004922f6
add esp, 0x24
lea ecx, [esp + 0x94]
push ecx
push str._sProgram_Files
lea edx, [esp + 0xa4]
push 0x104
push edx
call fcn.00491e56
add esp, 0x10
lea eax, [esp + 0x9c]
lea ecx, [esp + 0x14]
call fcn.004074d0
mov eax, str._PROGRAM_
lea ecx, [esp + 0x78]
mov byte [esp + 0x4b8], 0x10
call fcn.004074d0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x4c8]
push ecx
lea edx, [esp + 0x80]
lea ecx, [esp + 0x44]
mov byte [esp + 0x4c0], 0x11
call fcn.0042eb90
add esp, 8
push 0xffffffffffffffff
push edi
mov ecx, ebp
mov byte [esp + 0x4c0], 0x12
call fcn.00401370
lea esi, [esp + 0x3c]
call fcn.0040d2c0
lea esi, [esp + 0x78]
call fcn.0040d2c0
lea esi, [esp + 0x14]
call fcn.0040d2c0
lea esi, [esp + 0x5c]
call fcn.0040d2c0
mov eax, dword [esp + 0x30]
cmp eax, edi
je 0x411fb0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x411fb0
mov eax, str._TEMP_
lea edx, [eax + 2]
jmp 0x411cb0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411cb0
sub eax, edx
sar eax, 1
mov ebx, eax
push str._TEMP_
xor eax, eax
lea edx, [esp + 0x4c8]
call fcn.00408290
cmp eax, 0xffffffff
je 0x411d69
lea edx, [esp + 0x9c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x9c]
lea ecx, [esp + 0x78]
call fcn.004074d0
mov eax, str._TEMP_
lea ecx, [esp + 0x5c]
mov byte [esp + 0x4b8], 0x13
call fcn.004074d0
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x4c8]
push ecx
lea edx, [esp + 0x64]
lea ecx, [esp + 0x44]
mov byte [esp + 0x4c0], 0x14
call fcn.0042eb90
add esp, 8
mov byte [esp + 0x4b8], 0x15
push 0xffffffffffffffff
push 0
mov ecx, ebp
call fcn.00401370
lea esi, [esp + 0x3c]
call fcn.0040d2c0
lea esi, [esp + 0x5c]
call fcn.0040d2c0
lea esi, [esp + 0x78]
jmp 0x411fab
mov eax, str._SELF_
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411d71
sub eax, edx
sar eax, 1
mov ebx, eax
push str._SELF_
xor eax, eax
lea edx, [esp + 0x4c8]
call fcn.00408290
cmp eax, 0xffffffff
je 0x411deb
lea ecx, [esp + 0x78]
call fcn.0042e7c0
mov eax, str._SELF_
lea ecx, [esp + 0x5c]
mov byte [esp + 0x4b8], 0x16
call fcn.004074d0
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x4c8]
push eax
lea edx, [esp + 0x64]
lea ecx, [esp + 0x44]
mov byte [esp + 0x4c0], 0x17
call fcn.0042eb90
add esp, 8
mov byte [esp + 0x4b8], 0x18
jmp 0x411d43
lea ecx, [esp + 0x4c4]
push ecx
mov edx, str._COMMONAPP_
call fcn.00413c10
cmp eax, 0xffffffff
je 0x411e7b
xor edx, edx
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], 0
mov word [esp + 0x60], dx
lea eax, [esp + 0x5c]
push 0x23
push eax
mov byte [esp + 0x4c0], 0x19
call fcn.0042e1e0
add esp, 8
test al, al
je 0x411fa7
mov eax, str._COMMONAPP_
lea ecx, [esp + 0x78]
call fcn.004074d0
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x4c8]
push edx
lea edx, [esp + 0x80]
lea ecx, [esp + 0x44]
mov byte [esp + 0x4c0], 0x1a
call fcn.0042eb90
add esp, 8
mov byte [esp + 0x4b8], 0x1b
jmp 0x411f8a
lea eax, [esp + 0x4c4]
push eax
mov edx, str._USERAPP_
call fcn.00413c10
cmp eax, 0xffffffff
je 0x411f05
xor ecx, ecx
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], 0
mov word [esp + 0x60], cx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x4b8], 0x1c
call fcn.0042e430
test al, al
je 0x411fa7
mov eax, str._USERAPP_
lea ecx, [esp + 0x78]
call fcn.004074d0
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x4c8]
push eax
lea edx, [esp + 0x80]
lea ecx, [esp + 0x44]
mov byte [esp + 0x4c0], 0x1d
call fcn.0042eb90
add esp, 8
mov byte [esp + 0x4b8], 0x1e
jmp 0x411f8a
lea ecx, [esp + 0x4c4]
push ecx
mov edx, str._LOCALLOW_
call fcn.00413c10
cmp eax, 0xffffffff
je 0x411fb0
xor edx, edx
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], 0
mov word [esp + 0x60], dx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x4b8], 0x1f
call fcn.0042e2f0
test al, al
je 0x411fa7
mov eax, str._LOCALLOW_
lea ecx, [esp + 0x78]
call fcn.004074d0
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x4c8]
push ecx
lea edx, [esp + 0x80]
lea ecx, [esp + 0x44]
mov byte [esp + 0x4c0], 0x20
call fcn.0042eb90
add esp, 8
mov byte [esp + 0x4b8], 0x21
push 0xffffffffffffffff
push 0
mov ecx, ebp
call fcn.00401370
lea esi, [esp + 0x3c]
call fcn.0040d2c0
lea esi, [esp + 0x78]
call fcn.0040d2c0
lea esi, [esp + 0x5c]
call fcn.0040d2c0
cmp dword [esp + 0x4dc], 8
jb 0x411fca
mov edx, dword [esp + 0x4c8]
push edx
call fcn.004913b3
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x4b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x498]
xor ecx, esp
call fcn.004913be
add esp, 0x4a8
ret 0x20