Function at 0x421400
Capabilities:
Get hostname

Disassembly:
sub esp, 0x4e0
push ebx
push ebp
mov ebp, dword [esp + 0x4ec]
push esi
push edi
mov ecx, 0x4b
xor eax, eax
lea edi, [esp + 0x284]
rep stosd dword es:[edi], eax
push 0x127
lea eax, [esp + 0x288]
push ebp
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
mov edi, str..idx
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x284]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov dword [esp + 0x30], eax
and ecx, 3
mov dword [esp + 0x34], eax
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
lea edx, [esp + 0x3b0]
mov dword [esp + 0x10], ecx
lea eax, [esp + 0x284]
mov dword [esp + 0x14], ecx
push edx
mov dword [esp + 0x1c], ecx
push eax
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4214c8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x30]
lea edx, [esp + 0x3c4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
xor edx, edx
lea eax, [esp + 0x20]
mov dword [esp + 0x20], edx
push eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x3c]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
movsx edx, word [esp + 0x2c]
rep stosd dword es:[edi], eax
movsx ecx, word [esp + 0x2e]
stosw word es:[edi], ax
movsx eax, word [esp + 0x2a]
push ecx
push edx
movsx ecx, word [esp + 0x30]
movsx edx, word [esp + 0x2e]
push eax
push ecx
movsx eax, word [esp + 0x32]
movsx ecx, word [esp + 0x30]
push edx
push eax
push ecx
lea edx, [esp + 0x58]
push 0x42f0fc
push edx
call ebx
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x94]
add esp, 0x24
rep stosd dword es:[edi], eax
movsx ecx, word [esp + 0x1c]
movsx edx, word [esp + 0x1a]
stosw word es:[edi], ax
movsx eax, word [esp + 0x1e]
push eax
push ecx
movsx eax, word [esp + 0x20]
movsx ecx, word [esp + 0x1e]
push edx
push eax
movsx edx, word [esp + 0x22]
movsx eax, word [esp + 0x20]
push ecx
push edx
push eax
lea ecx, [esp + 0x8c]
push 0x42f13c
push ecx
call ebx
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0xc8]
add esp, 0x24
rep stosd dword es:[edi], eax
lea edx, [esp + 0x38]
lea eax, [esp + 0xa4]
push edx
push eax
mov dword [esp + 0x40], 0x28
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov ecx, 0x4b
xor eax, eax
lea edi, [esp + 0x158]
lea edx, [esp + 0x70]
rep stosd dword es:[edi], eax
movsx eax, word [esp + 0x4f8]
lea ecx, [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0x500]
push edx
push ebp
push eax
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x170]
push str._s__s_fno_d__s__s__s
push eax
call ebx
mov edx, dword [esp + 0x520]
add esp, 0x20
cmp byte [edx], 0
je 0x42165b
mov edi, 0x4274e4
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x158]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebp
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea ebp, [esp + 0x158]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x427458
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x158]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0xf4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x19
lea edi, [esp + 0xf4]
rep stosd dword es:[edi], eax
mov ecx, dword [0x96b390]
lea eax, [esp + 0xa4]
add ecx, 0x1cb
push eax
push ecx
push str._sTUCFILE_fopen_log__s.txt
push edx
call ebx
lea eax, [esp + 0x104]
push 0x4274b0
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0x18
test esi, esi
je 0x4216f3
lea ecx, [esp + 0x158]
push esi
push ecx
call dword [sym.imp.MSVCRT.dll_fputs]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4e0
ret