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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
and dword [ebp - 4], 0
push 0x4397d0
call fcn.0041b768
pop ecx
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jne 0x412cf6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4397e0
push 1
call fcn.0041a819
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x412f16
push str.NetApiBufferFree
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x5c], eax
push str.NetServerEnum
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
push str.NetRemoteTOD
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x5c], 0
je 0x412d3b
cmp dword [ebp - 0x10], 0
je 0x412d3b
cmp dword [ebp - 0x1c], 0
jne 0x412d67
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 4]
push str.SetTime_:_Failed_to_get_API_pointers
push 1
call fcn.0041a819
add esp, 0xc
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 4]
jmp 0x412f16
push 0x439858
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
cmp eax, 0x5c
je 0x412e1e
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
cmp eax, 0x2a
je 0x412da7
push 0x200
push dword [ebp + 8]
lea eax, [ebp - 0x460]
push eax
call fcn.004201f5
add esp, 0xc
push 0
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
sub eax, 0x2a
neg eax
sbb eax, eax
lea ecx, [ebp - 0x460]
and eax, ecx
push eax
push 0x20
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x100
lea eax, [ebp - 0x18]
push eax
push 0x64
push 0
call dword [ebp - 0x10]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x412deb
cmp dword [ebp - 4], 0xea
jne 0x412e1c
movzx eax, word [ebp - 0x14]
test eax, eax
je 0x412e15
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push dword [eax + 4]
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
and dword [ebp - 4], 0
push dword [ebp - 0x18]
call dword [ebp - 0x5c]
jmp 0x412e1c
mov dword [ebp - 4], 0x35
jmp 0x412e46
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
cmp eax, 0x5c
jne 0x412e46
mov eax, dword [ebp + 8]
movsx eax, byte [eax + 1]
cmp eax, 0x5c
jne 0x412e46
push 0x1c
push dword [ebp + 8]
lea eax, [ebp - 0x58]
push eax
call fcn.004201f5
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x412f0a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x58]
push eax
call dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x412f0a
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x464], eax
push 0x10
push 0
lea eax, [ebp - 0x474]
push eax
call fcn.00420340
add esp, 0xc
mov eax, dword [ebp - 0x464]
mov ax, word [eax + 0x28]
mov word [ebp - 0x474], ax
mov eax, dword [ebp - 0x464]
mov ax, word [eax + 0x24]
mov word [ebp - 0x472], ax
mov eax, dword [ebp - 0x464]
mov ax, word [eax + 0x20]
mov word [ebp - 0x46e], ax
mov eax, dword [ebp - 0x464]
mov ax, word [eax + 8]
mov word [ebp - 0x46c], ax
mov eax, dword [ebp - 0x464]
mov ax, word [eax + 0xc]
mov word [ebp - 0x46a], ax
mov eax, dword [ebp - 0x464]
mov ax, word [eax + 0x10]
mov word [ebp - 0x468], ax
lea eax, [ebp - 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_SetSystemTime]
test eax, eax
jne 0x412f04
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 0x18]
call dword [ebp - 0x5c]
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 4]
leave
ret