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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c7738
push eax
mov dword fs:[0], esp
sub esp, 0x848
push str.ONacTimer_1________
push 0x4ea168
push 0xf
push 0x5000bc
call fcn.0040c110
push 0x4fc448
call fcn.004016f0
add esp, 0x14
test eax, eax
je 0x4023e8
mov eax, dword [0x4fc44c]
push ebx
push ebp
push esi
push edi
push eax
call sub.WSOCK32.dll_htonl
push eax
push str.ONacTimer_2___08x_
push 0x4ea168
push 0xf
push 0x5000bc
mov dword [esp + 0x54], eax
call fcn.0040c110
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 0x4020ba
push str.GetComputerName_error
call ebp
lea eax, [esp + 0x458]
lea ecx, [esp + 0x20]
push eax
call fcn.00430e30
mov ecx, dword [eax]
xor ebx, ebx
push ecx
push str.ONacTimer_3___s_
push 0x4ea168
push 0xf
push 0x5000bc
mov dword [esp + 0x874], ebx
call fcn.0040c110
or esi, 0xffffffff
add esp, 0x14
lea ecx, [esp + 0x20]
mov dword [esp + 0x860], esi
call fcn.004317b0
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 0x402132
push str.GetWindowsDirectory_error
call ebp
lea eax, [esp + 0x58]
mov byte [esp + 0x5b], 0
push eax
call fcn.00446890
add esp, 4
lea ecx, [esp + 0x58]
mov edi, eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00430e30
mov edx, dword [eax]
push edi
push edx
push 0x4ea9d4
push 0x4ea168
push 0xf
push 0x5000bc
mov dword [esp + 0x878], 1
call fcn.0040c110
add esp, 0x18
lea ecx, [esp + 0x20]
mov dword [esp + 0x860], esi
call fcn.004317b0
lea eax, [esp + 0x24]
push eax
call fcn.004aaaa0
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.004abc6b
lea edx, [esp + 0x44]
mov dword [esp + 0x860], 2
push edx
call fcn.00401720
mov eax, dword [0x4ebc94]
add esp, 4
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x860], 3
test eax, eax
jle 0x40221c
test ebx, ebx
je 0x4021fc
push 0x4ea9d0
lea ecx, [esp + 0x18]
call fcn.004ad8d1
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.004ad8d1
mov eax, dword [esp + 0x4c]
inc ebx
cmp ebx, eax
jl 0x4021ea
mov edx, dword [0x4ebc94]
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 [0x4fc458]
mov ecx, dword [0x4fc454]
push eax
mov eax, dword [0x4fc450]
push edx
mov edx, dword [0x4fc448]
push eax
push ecx
lea eax, [esp + 0x478]
push edx
push eax
push ebp
lea ecx, [esp + 0x3c]
push str.Ver1_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.004aa595
mov edx, dword [esp + 0x44]
add esp, 0x34
lea ecx, [esp + 0x3c]
push edx
call fcn.00430e30
mov eax, dword [eax]
mov byte [esp + 0x860], 5
push eax
push 0x4ea930
push 0x4ea168
push 0xf
push 0x5000bc
call fcn.0040c110
add esp, 0x14
lea ecx, [esp + 0x3c]
mov byte [esp + 0x860], bl
call fcn.004317b0
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.004ad925
push eax
mov edi, 0x4ea92c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4ea92c
push 1
call fcn.00447750
mov edx, dword [0x4ebc94]
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.0044a500
mov edx, dword [0x4ebc94]
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.004aa595
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.004ad925
mov ecx, dword [esp + 0x870]
push eax
call fcn.004030a0
lea ecx, [esp + 0x18]
mov byte [esp + 0x860], 6
call fcn.004ad4f5
lea ecx, [esp + 0x1c]
mov byte [esp + 0x860], bl
call fcn.004ad4f5
lea ecx, [esp + 0x10]
mov byte [esp + 0x860], 3
call fcn.004ad4f5
lea ecx, [esp + 0x14]
mov byte [esp + 0x860], 2
call fcn.004ad4f5
lea ecx, [esp + 0x44]
mov dword [esp + 0x860], 0xffffffff
call fcn.004abc9e
pop edi
pop esi
pop ebp
pop ebx
push str.ONacTimer_6___
push 0x4ea168
push 0xf
push 0x5000bc
call fcn.0040c110
mov ecx, dword [esp + 0x858]
mov dword fs:[0], ecx
add esp, 0x864
ret