Function at 0x4015c0
Capabilities:
Get common file path
Get hostname
Print debug messages

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c5588
push eax
mov dword fs:[0], esp
sub esp, 0x848
push str.ONacTimer_1________
push 0x4e81a4
push 0xf
push 0x4fe39c
call fcn.0040c300
push 0x4fa720
call fcn.004019e0
add esp, 0x14
test eax, eax
je 0x4019a8
mov eax, dword [0x4fa724]
push ebx
push ebp
push esi
push edi
push eax
call sub.WSOCK32.dll_htonl
push eax
push str.ONacTimer_2___08x_
push 0x4e81a4
push 0xf
push 0x4fe39c
mov dword [esp + 0x54], eax
call fcn.0040c300
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x46d]
mov byte [esp + 0x46c], 0
rep stosd dword es:[edi], eax
add esp, 0x14
lea ecx, [esp + 0x38]
stosw word es:[edi], ax
lea edx, [esp + 0x458]
push ecx
push edx
mov dword [esp + 0x40], 0x400
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test eax, eax
jne 0x40167a
push str.GetComputerName_error
call ebp
lea eax, [esp + 0x458]
lea ecx, [esp + 0x20]
push eax
call fcn.00431010
mov ecx, dword [eax]
xor ebx, ebx
push ecx
push str.ONacTimer_3___s_
push 0x4e81a4
push 0xf
push 0x4fe39c
mov dword [esp + 0x874], ebx
call fcn.0040c300
or esi, 0xffffffff
add esp, 0x14
lea ecx, [esp + 0x20]
mov dword [esp + 0x860], esi
call fcn.00431990
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x59]
mov byte [esp + 0x58], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x58]
push 0x400
push edx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x4016f2
push str.GetWindowsDirectory_error
call ebp
lea eax, [esp + 0x58]
mov byte [esp + 0x5b], 0
push eax
call fcn.00446a70
add esp, 4
lea ecx, [esp + 0x58]
mov edi, eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00431010
mov edx, dword [eax]
push edi
push edx
push 0x4e841c
push 0x4e81a4
push 0xf
push 0x4fe39c
mov dword [esp + 0x878], 1
call fcn.0040c300
add esp, 0x18
lea ecx, [esp + 0x20]
mov dword [esp + 0x860], esi
call fcn.00431990
lea eax, [esp + 0x24]
push eax
call fcn.004a89d0
mov ebp, dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov esi, ebp
lea ecx, [esp + 0x44]
sub esi, edx
call fcn.004a9b9b
lea edx, [esp + 0x44]
mov dword [esp + 0x860], 2
push edx
call fcn.00402260
mov eax, dword [0x4ea0ac]
add esp, 4
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x860], 3
test eax, eax
jle 0x4017dc
test ebx, ebx
je 0x4017bc
push 0x4e8418
lea ecx, [esp + 0x18]
call fcn.004ab801
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx + ebx*4]
push eax
call sub.WSOCK32.dll_inet_ntoa
push eax
lea ecx, [esp + 0x18]
call fcn.004ab801
mov eax, dword [esp + 0x4c]
inc ebx
cmp ebx, eax
jl 0x4017aa
mov edx, dword [0x4ea0ac]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x14]
mov bl, 4
push eax
mov byte [esp + 0x864], bl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x44]
push eax
push esi
push edi
push ecx
call sub.WSOCK32.dll_inet_ntoa
mov edx, dword [0x4fa730]
mov ecx, dword [0x4fa72c]
push eax
mov eax, dword [0x4fa728]
push edx
mov edx, dword [0x4fa720]
push eax
push ecx
lea eax, [esp + 0x478]
push edx
push eax
push ebp
lea ecx, [esp + 0x3c]
push str.Ver2_r_nTime_08x_r_nComputer_s_r_nAID_d_r_nPID_d_r_nGID_d_r_nBOffline_d_r_nSIP_s_r_nSysVol_08x_r_nBTime_08x_r_nBNum_08x_r_nAIP_s_r_n
push ecx
call fcn.004a84c5
mov edx, dword [esp + 0x44]
add esp, 0x34
lea ecx, [esp + 0x3c]
push edx
call fcn.00431010
mov eax, dword [eax]
mov byte [esp + 0x860], 5
push eax
push 0x4e8378
push 0x4e81a4
push 0xf
push 0x4fe39c
call fcn.0040c300
add esp, 0x14
lea ecx, [esp + 0x3c]
mov byte [esp + 0x860], bl
call fcn.00431990
xor ecx, ecx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x29], ecx
mov byte [esp + 0x28], 0
mov dword [esp + 0x2d], ecx
mov dword [esp + 0x31], ecx
mov word [esp + 0x35], cx
mov byte [esp + 0x37], cl
mov eax, dword [edx - 8]
lea ecx, [esp + 0x28]
push ecx
push eax
push 0
lea ecx, [esp + 0x1c]
call fcn.004ab855
push eax
mov edi, 0x4e8374
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4e8374
push 1
call fcn.00447930
mov edx, dword [0x4ea0ac]
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x1c]
mov byte [esp + 0x860], 6
push eax
push 0x10
lea ecx, [esp + 0x30]
push ecx
call fcn.00448f20
mov edx, dword [0x4ea0ac]
add esp, 0xc
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x20]
push str._sMHASH_s_r_n
push edx
mov byte [esp + 0x870], 7
call fcn.004a84c5
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x87c]
add esp, 0x10
mov eax, dword [eax - 8]
push ecx
push eax
push 0
lea ecx, [esp + 0x24]
call fcn.004ab855
mov ecx, dword [esp + 0x870]
push eax
call fcn.00403330
lea ecx, [esp + 0x18]
mov byte [esp + 0x860], 6
call fcn.004ab425
lea ecx, [esp + 0x1c]
mov byte [esp + 0x860], bl
call fcn.004ab425
lea ecx, [esp + 0x10]
mov byte [esp + 0x860], 3
call fcn.004ab425
lea ecx, [esp + 0x14]
mov byte [esp + 0x860], 2
call fcn.004ab425
lea ecx, [esp + 0x44]
mov dword [esp + 0x860], 0xffffffff
call fcn.004a9bce
pop edi
pop esi
pop ebp
pop ebx
push str.ONacTimer_6___
push 0x4e81a4
push 0xf
push 0x4fe39c
call fcn.0040c300
mov ecx, dword [esp + 0x858]
mov dword fs:[0], ecx
add esp, 0x864
ret