Function at 0x458180
Capabilities:
Get common file path
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585aa2
mov eax, dword fs:[0]
push eax
mov eax, 0x633c
call fcn.0055d880
mov eax, dword [0x5eb770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6348], 0x60ac68
call fcn.00458a90
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, 7
xor ecx, ecx
mov dword [0x60ac68], 0x5c0910
mov dword [0x60adf0], eax
mov dword [0x60adec], ebx
mov word [0x60addc], cx
xor edx, edx
mov dword [0x60ae0c], eax
mov dword [0x60ae08], ebx
mov word [0x60adf8], dx
mov dword [0x60ae28], eax
mov dword [0x60ae24], ebx
mov word [0x60ae14], cx
mov dword [0x60ae44], eax
mov dword [0x60ae40], ebx
mov word [0x60ae30], dx
mov dword [0x60ae60], eax
mov dword [0x60ae5c], ebx
mov word [0x60ae4c], cx
mov dword [0x60ae7c], eax
mov dword [0x60ae78], ebx
mov word [0x60ae68], dx
mov dword [0x60ae98], eax
mov dword [0x60ae94], ebx
mov word [0x60ae84], cx
mov byte [ebp - 4], al
or eax, 0xffffffff
mov esi, 0x60addc
call fcn.00401e80
or eax, 0xffffffff
xor ecx, ecx
mov esi, 0x60adf8
call fcn.00401e80
or eax, 0xffffffff
xor ecx, ecx
mov esi, 0x60ae14
call fcn.00401e80
or eax, 0xffffffff
xor ecx, ecx
mov esi, 0x60ae30
call fcn.00401e80
or eax, 0xffffffff
xor ecx, ecx
mov esi, 0x60ae4c
call fcn.00401e80
or eax, 0xffffffff
xor ecx, ecx
mov esi, 0x60ae68
call fcn.00401e80
or eax, 0xffffffff
xor ecx, ecx
mov esi, 0x60ae84
call fcn.00401e80
push 0xffe
lea eax, [ebp - 0x533e]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x5340], dx
call fcn.0055ca80
add esp, 0xc
push 0xffe
lea edx, [ebp - 0x232e]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x2330], cx
call fcn.0055ca80
add esp, 0xc
push 0xffe
lea ecx, [ebp - 0x132e]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x1330], ax
call fcn.0055ca80
add esp, 0xc
push 0xffe
lea eax, [ebp - 0x332e]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x3330], dx
call fcn.0055ca80
add esp, 0xc
push 0x800
lea ecx, [ebp - 0x5340]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x45865d
push 0x800
lea edx, [ebp - 0x2330]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x45865d
lea eax, [ebp - 0x1330]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x45865d
mov edx, dword [0x60a368]
push 0x800
lea ecx, [ebp - 0x3330]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x45865d
lea eax, [ebp - 0x5340]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4583b1
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x5340]
mov esi, 0x60addc
call fcn.00401d90
lea eax, [ebp - 0x2330]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4583e0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x2330]
mov esi, 0x60adf8
call fcn.00401d90
lea eax, [ebp - 0x3330]
lea ecx, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x458410
sub eax, ecx
sar eax, 1
push eax
lea eax, [ebp - 0x3330]
mov esi, 0x60ae4c
call fcn.00401d90
lea eax, [ebp - 0x1330]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x103
lea ecx, [ebp - 0x22f]
push ebx
push ecx
lea esi, [ebp + eax*2 - 0x1332]
mov byte [ebp - 0x230], bl
call fcn.0055ca80
add esp, 0xc
push 0x103
lea edx, [ebp - 0x127]
push ebx
push edx
mov byte [ebp - 0x128], bl
call fcn.0055ca80
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esp, 0xc
lea eax, [ebp - 0x6344]
push eax
push 0x5be3a5
push 0x104
lea ecx, [ebp - 0x230]
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0x1330]
push edx
push ebx
push ebx
mov dword [ebp - 0x6344], ebx
call edi
lea eax, [ebp - 0x6344]
push eax
push 0x5be3a5
push 0x104
lea ecx, [ebp - 0x128]
push ecx
push 0xffffffffffffffff
push esi
push ebx
push ebx
call edi
lea edx, [ebp - 0x128]
push edx
lea eax, [ebp - 0x230]
push eax
call fcn.0055aa94
add esp, 8
cmp word [esi], 0x5c
jne 0x4584f0
cmp eax, 0xffffffff
je 0x4584f0
xor ecx, ecx
mov word [esi], cx
push 0x60ae30
lea eax, [ebp - 0x1330]
call fcn.00401a80
push ebx
push ebx
push ebx
push ebx
push 0x800
lea edx, [ebp - 0x6340]
push edx
push 5
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x3330]
push ecx
call fcn.00557258
add esp, 0x24
lea edx, [ebp - 0x6340]
push edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x4340]
push 0x5b7940
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [ebp - 0x4340]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x103
mov esi, eax
lea eax, [ebp - 0x127]
push ebx
push eax
mov byte [ebp - 0x128], bl
call fcn.0055ca80
add esp, 0xc
push 0x103
lea ecx, [ebp - 0x22f]
push ebx
push ecx
mov byte [ebp - 0x230], bl
call fcn.0055ca80
add esp, 0xc
lea edx, [ebp - 0x6344]
push edx
push 0x5be3a5
push 0x104
lea eax, [ebp - 0x128]
push eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x1330]
push ecx
push ebx
push ebx
mov dword [ebp - 0x6344], ebx
call edi
lea edx, [ebp - 0x6344]
push edx
push 0x5be3a5
push 0x104
lea eax, [ebp - 0x230]
push eax
push 0xffffffffffffffff
lea ecx, [ebp + esi*2 - 0x1332]
push ecx
push ebx
push ebx
call edi
lea edx, [ebp - 0x230]
push edx
lea eax, [ebp - 0x128]
push eax
call fcn.0055aa94
lea ecx, [ebp + esi*2 - 0x4342]
add esp, 8
cmp word [ecx], 0x5c
jne 0x458608
cmp eax, 0xffffffff
je 0x458608
xor edx, edx
mov word [ecx], dx
push 0x60ae68
lea eax, [ebp - 0x4340]
call fcn.00401a80
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 5
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2330]
push ecx
call fcn.00557258
lea eax, [ebp - 0x1c]
add esp, 0x24
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x458640
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x1c]
mov esi, 0x60ae14
call fcn.00401d90
push 0x206
lea eax, [ebp - 0x32e]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x330], dx
call fcn.0055ca80
add esp, 0xc
lea ecx, [ebp - 0x6344]
push ecx
lea edx, [ebp - 0x330]
push edx
mov dword [ebp - 0x6344], 0x104
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x4586c6
lea eax, [ebp - 0x330]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4586a6
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x330]
mov esi, 0x60ae84
call fcn.00401d90
mov eax, 0x60ac68
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055649d
mov esp, ebp
pop ebp
ret