Function at 0x4775f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5acad5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x344
lea eax, [ebp - 0x350]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jbe 0x477aa7
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xe0], esp
push 0x5b9ed8
call fcn.00415e60
lea ecx, [ebp - 0x40]
push ecx
call fcn.00462850
add esp, 0x1c
mov dword [ebp - 0xe4], eax
mov dword [ebp - 4], 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xe8], esp
push str.__wsAutoUpdater.exe_
call fcn.00415e60
lea edx, [ebp - 0x3c]
push edx
call fcn.00462850
add esp, 0x1c
mov dword [ebp - 0xec], eax
mov byte [ebp - 4], 1
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xf0], esp
push 0x5b9f28
call fcn.00415e60
lea eax, [ebp - 0x38]
push eax
call fcn.00462850
add esp, 0x1c
mov dword [ebp - 0xf4], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00414580
mov byte [ebp - 4], 3
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xf8], esp
push str.PT18H
call fcn.00415e60
lea ecx, [ebp - 0x34]
push ecx
call fcn.00462850
add esp, 0x1c
mov dword [ebp - 0xfc], eax
mov byte [ebp - 4], 4
lea edx, [ebp - 0x350]
push edx
push ecx
mov ecx, esp
mov dword [ebp - 0x100], esp
lea eax, [ebp - 0x3c]
push eax
call fcn.00414330
lea ecx, [ebp - 0x60]
push ecx
call fcn.00462060
add esp, 8
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x5c], edx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x5c]
call fcn.0041afc0
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00422410
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x60]
call fcn.004185c0
push ecx
mov ecx, esp
mov dword [ebp - 0x104], esp
lea edx, [ebp - 0x34]
push edx
call fcn.00414330
lea eax, [ebp - 0x90]
push eax
call fcn.00462060
add esp, 8
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x68], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x7c], edx
push ecx
mov ecx, esp
mov dword [ebp - 0x108], esp
lea eax, [ebp - 0x38]
push eax
call fcn.00414330
lea ecx, [ebp - 0x8c]
push ecx
call fcn.00462060
add esp, 8
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x70], edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x80], eax
push ecx
mov ecx, esp
mov dword [ebp - 0x10c], esp
lea edx, [ebp - 0x40]
push edx
call fcn.00414330
lea eax, [ebp - 0x88]
push eax
call fcn.00462060
add esp, 8
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x78], ecx
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x84], edx
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x80]
push ecx
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x84]
push eax
call fcn.00478820
add esp, 0x10
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x88]
call fcn.004185c0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x8c]
call fcn.004185c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x90]
call fcn.004185c0
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
jne 0x477a63
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x110], esp
push 0x5b9f3c
call fcn.00415e60
lea edx, [ebp - 0x30]
push edx
call fcn.00462850
add esp, 0x1c
mov dword [ebp - 0x114], eax
mov byte [ebp - 4], 9
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x118], esp
push 0x5b9f4c
call fcn.00415e60
lea eax, [ebp - 0x2c]
push eax
call fcn.00462850
add esp, 0x1c
mov dword [ebp - 0x11c], eax
mov byte [ebp - 4], 0xa
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x120], esp
push str.tsh_creation_res_d
call fcn.00415e60
lea ecx, [ebp - 0x28]
push ecx
call fcn.00462850
add esp, 0x1c
mov dword [ebp - 0x124], eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x14]
call fcn.00414580
mov byte [ebp - 4], 0xc
movzx edx, byte [ebp - 0xd]
test edx, edx
je 0x4778ca
mov dword [ebp - 0x1c], 1
jmp 0x4778d1
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x128], esp
lea edx, [ebp - 0x28]
push edx
call fcn.00414330
lea eax, [ebp - 0x9c]
push eax
call fcn.00462060
add esp, 8
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x98], ecx
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x98]
call fcn.0041afc0
push eax
lea edx, [ebp - 0x14]
push edx
call fcn.00422410
add esp, 0xc
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x9c]
call fcn.004185c0
push 0x5b9fa0
lea ecx, [ebp - 0x24]
call fcn.00414470
mov byte [ebp - 4], 0xe
push 0x5b9fa4
lea ecx, [ebp - 0x20]
call fcn.00414470
mov byte [ebp - 4], 0xf
push ecx
mov ecx, esp
mov dword [ebp - 0x12c], esp
lea eax, [ebp - 0x2c]
push eax
call fcn.00414330
lea ecx, [ebp - 0xbc]
push ecx
call fcn.00462060
add esp, 8
mov dword [ebp - 0xa0], eax
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], edx
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xb0], eax
push ecx
mov ecx, esp
mov dword [ebp - 0x130], esp
lea edx, [ebp - 0x30]
push edx
call fcn.00414330
lea eax, [ebp - 0xb8]
push eax
call fcn.00462060
add esp, 8
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0xac], ecx
mov byte [ebp - 4], 0x11
mov edx, dword [ebp - 0xac]
mov dword [ebp - 0xb4], edx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0xb0]
push eax
mov ecx, dword [ebp - 0xb4]
push ecx
call fcn.004845b0
add esp, 0x14
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0xb8]
call fcn.004185c0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xbc]
call fcn.004185c0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x20]
call fcn.004185c0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x24]
call fcn.004185c0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x14]
call fcn.004185c0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x28]
call fcn.004185c0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2c]
call fcn.004185c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.004185c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
call fcn.004185c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.004185c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.004185c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.004185c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004185c0
jmp 0x477c38
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x134], esp
push 0x5b9fa8
call fcn.00415e60
lea edx, [ebp - 0x54]
push edx
call fcn.00462850
add esp, 0x1c
mov dword [ebp - 0x138], eax
mov dword [ebp - 4], 0x12
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x13c], esp
push str.GetCurrentDirectory_failed
call fcn.00415e60
lea eax, [ebp - 0x50]
push eax
call fcn.00462850
add esp, 0x1c
mov dword [ebp - 0x140], eax
mov byte [ebp - 4], 0x13
push 0x5b9ff0
lea ecx, [ebp - 0x4c]
call fcn.00414470
mov byte [ebp - 4], 0x14
push 0x5b9ff4
lea ecx, [ebp - 0x48]
call fcn.00414470
mov byte [ebp - 4], 0x15
push 0x5b9ff8
lea ecx, [ebp - 0x44]
call fcn.00414470
mov byte [ebp - 4], 0x16
push ecx
mov ecx, esp
mov dword [ebp - 0x144], esp
lea edx, [ebp - 0x50]
push edx
call fcn.00414330
lea eax, [ebp - 0xdc]
push eax
call fcn.00462060
add esp, 8
mov dword [ebp - 0xc0], eax
mov ecx, dword [ebp - 0xc0]
mov dword [ebp - 0xc4], ecx
mov byte [ebp - 4], 0x17
mov edx, dword [ebp - 0xc4]
mov dword [ebp - 0xd0], edx
push ecx
mov ecx, esp
mov dword [ebp - 0x148], esp
lea eax, [ebp - 0x54]
push eax
call fcn.00414330
lea ecx, [ebp - 0xd8]
push ecx
call fcn.00462060
add esp, 8
mov dword [ebp - 0xc8], eax
mov edx, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], edx
mov byte [ebp - 4], 0x18
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xd4], eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0xd0]
push ecx
mov edx, dword [ebp - 0xd4]
push edx
call fcn.004845b0
add esp, 0x14
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0xd8]
call fcn.004185c0
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0xdc]
call fcn.004185c0
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x44]
call fcn.004185c0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x48]
call fcn.004185c0
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x4c]
call fcn.004185c0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x50]
call fcn.004185c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.004185c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret