Function at 0x491df0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5210c8
mov eax, dword fs:[0]
push eax
sub esp, 0x4b8
mov eax, dword [0x56fcac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
mov ecx, dword [0x571ffc]
add ecx, 0x500
call fcn.00471130
push eax
mov ecx, dword [0x571ffc]
call fcn.00479bf0
lea eax, [ebp - 0x244]
push eax
mov ecx, dword [ebp + 8]
call fcn.004689f0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x244]
call fcn.004059c0
movzx ecx, al
test ecx, ecx
je 0x491e86
mov byte [ebp - 0x47d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.00401e70
mov al, byte [ebp - 0x47d]
jmp 0x492202
lea edx, [ebp - 0x244]
push edx
call fcn.00406870
add esp, 4
movzx eax, al
test eax, eax
jne 0x491ec0
mov byte [ebp - 0x47e], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.00401e70
mov al, byte [ebp - 0x47e]
jmp 0x492202
lea ecx, [ebp - 0x21c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x1a8
call fcn.004aaa2e
add esp, 4
mov dword [ebp - 0x488], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x488], 0
je 0x491f0c
lea edx, [ebp - 0x244]
push edx
mov ecx, dword [ebp - 0x488]
call fcn.00425a40
mov dword [ebp - 0x4b0], eax
jmp 0x491f16
mov dword [ebp - 0x4b0], 0
mov eax, dword [ebp - 0x4b0]
mov dword [ebp - 0x484], eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x484]
mov dword [ebp - 0x478], ecx
cmp dword [0x571ffc], 0
je 0x491f4c
mov edx, dword [0x571ffc]
add edx, 0x78
mov dword [ebp - 0x4b4], edx
jmp 0x491f56
mov dword [ebp - 0x4b4], 0
mov eax, dword [ebp - 0x4b4]
push eax
mov ecx, dword [ebp - 0x478]
call fcn.00411c20
cmp dword [ebp - 0x478], 0
jne 0x491f95
mov byte [ebp - 0x489], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.00401e70
mov al, byte [ebp - 0x489]
jmp 0x492202
lea ecx, [ebp - 0x474]
push ecx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.LoginTool
lea edx, [ebp - 0x474]
push edx
call fcn.004ec86f
add esp, 8
lea eax, [ebp - 0x474]
push eax
lea ecx, [ebp - 0x268]
call fcn.00401e30
mov byte [ebp - 4], 2
push 4
call fcn.004aaa2e
add esp, 4
mov dword [ebp - 0x494], eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x494], 0
je 0x492012
lea ecx, [ebp - 0x268]
push ecx
mov edx, dword [ebp - 0x478]
push edx
mov ecx, dword [ebp - 0x494]
call fcn.00423500
mov dword [ebp - 0x4b8], eax
jmp 0x49201c
mov dword [ebp - 0x4b8], 0
mov eax, dword [ebp - 0x4b8]
mov dword [ebp - 0x490], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x490]
mov dword [ebp - 0x220], ecx
cmp dword [ebp - 0x220], 0
jne 0x492074
mov byte [ebp - 0x495], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x268]
call fcn.00401e70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.00401e70
mov al, byte [ebp - 0x495]
jmp 0x492202
mov ecx, dword [ebp - 0x220]
call fcn.004235f0
mov edx, dword [0x571ffc]
mov eax, dword [ebp - 0x220]
mov dword [edx + 0x69c], eax
mov byte [ebp - 0x221], 0
mov dword [ebp - 0x228], 2
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x24c], ecx
mov ecx, dword [ebp - 0x220]
call fcn.00423660
mov dword [ebp - 0x248], eax
push 0xffffffffffffffff
push 0
lea edx, [ebp - 0x24c]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 0x4bc], eax
cmp dword [ebp - 0x4bc], 0
je 0x4920f5
cmp dword [ebp - 0x4bc], 1
je 0x492155
jmp 0x492172
mov ecx, dword [ebp - 0x220]
call fcn.00423630
mov ecx, dword [ebp - 0x220]
call fcn.00423600
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0x4a0], ecx
mov edx, dword [ebp - 0x4a0]
mov dword [ebp - 0x49c], edx
cmp dword [ebp - 0x49c], 0
je 0x492141
push 1
mov ecx, dword [ebp - 0x49c]
call fcn.00493160
mov dword [ebp - 0x4c0], eax
jmp 0x49214b
mov dword [ebp - 0x4c0], 0
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]
mov ecx, dword [ebp - 0x220]
call fcn.00423680
movzx eax, al
test eax, eax
jne 0x492169
jmp 0x492186
mov byte [ebp - 0x221], 1
jmp 0x492186
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x47c], eax
push 1
call dword [sym.imp.KERNEL32.dll_ExitThread]
cmp dword [ebp - 0x220], 0
je 0x4921cf
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0x4a8], ecx
mov edx, dword [ebp - 0x4a8]
mov dword [ebp - 0x4a4], edx
cmp dword [ebp - 0x4a4], 0
je 0x4921c5
push 1
mov ecx, dword [ebp - 0x4a4]
call fcn.00493160
mov dword [ebp - 0x4c4], eax
jmp 0x4921cf
mov dword [ebp - 0x4c4], 0
mov al, byte [ebp - 0x221]
mov byte [ebp - 0x4a9], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x268]
call fcn.00401e70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.00401e70
mov al, byte [ebp - 0x4a9]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ead41
mov esp, ebp
pop ebp
ret