Function at 0x408bb0
Capabilities:
Get hostname

Disassembly:
sub esp, 0x4e0
push ebx
mov ebx, dword [esp + 0x4e8]
push ebp
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 ebx
push eax
call fcn.00409b60
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 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
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 0x408c77
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]
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 0x413ec8
push edx
call fcn.00409684
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x94]
rep stosd dword es:[edi], eax
movsx ecx, word [esp + 0x40]
movsx edx, word [esp + 0x3e]
stosw word es:[edi], ax
movsx eax, word [esp + 0x42]
push eax
push ecx
movsx eax, word [esp + 0x44]
movsx ecx, word [esp + 0x42]
push edx
push eax
movsx edx, word [esp + 0x46]
movsx eax, word [esp + 0x44]
push ecx
push edx
push eax
lea ecx, [esp + 0xb0]
push 0x413f08
push ecx
call fcn.00409684
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0xec]
add esp, 0x48
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 ebx
push eax
lea edx, [esp + 0x4c]
push ecx
push edx
push str._s__s_fno_d__s__s__s
lea eax, [esp + 0x174]
push eax
call fcn.00409684
mov edx, dword [esp + 0x520]
add esp, 0x20
cmp byte [edx], 0
je 0x408e0a
mov edi, 0x413eac
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x158]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
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 ebx, [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, ebx
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, 0x4131ec
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 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
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 [0x4542e8]
lea eax, [esp + 0xa4]
add ecx, 0x1cb
push eax
push ecx
push str._sTUCFILE_fopen_log__s.txt
push edx
call fcn.00409684
lea eax, [esp + 0x104]
push 0x413358
push eax
call fcn.0040987e
mov esi, eax
add esp, 0x18
test esi, esi
je 0x408ea2
lea ecx, [esp + 0x158]
push esi
push ecx
call fcn.0040981b
push esi
call fcn.004097c5
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4e0
ret