Function at 0x41f9e0
Capabilities:
Get hostname

Disassembly:
mov eax, dword [0x968af8]
sub esp, 0x2f0
test eax, eax
jne 0x41f9f6
add esp, 0x2f0
ret
add eax, 0x66
push eax
call fcn.0041f990
add esp, 4
cmp eax, 1
jne 0x41fa10
xor eax, eax
add esp, 0x2f0
ret
xor eax, eax
push ebx
mov dword [esp + 4], eax
push ebp
mov dword [esp + 0xc], eax
push esi
lea ecx, [esp + 0xc]
push edi
mov dword [esp + 0x18], eax
push ecx
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movsx edx, word [esp + 0x1e]
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x24]
push edx
rep stosd dword es:[edi], eax
movsx ecx, word [esp + 0x1e]
movsx edx, word [esp + 0x1c]
stosw word es:[edi], ax
movsx eax, word [esp + 0x20]
push eax
push ecx
movsx eax, word [esp + 0x22]
movsx ecx, word [esp + 0x1e]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
push edx
movsx edx, word [esp + 0x20]
push eax
push ecx
push edx
lea eax, [esp + 0x40]
push 0x42e104
push eax
call ebx
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0x7c]
add esp, 0x24
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
lea edx, [esp + 0x58]
push ecx
push edx
mov dword [esp + 0x28], 0x28
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
movsx edx, word [esp + 0x304]
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x10c]
rep stosd dword es:[edi], eax
movsx ecx, word [esp + 0x308]
lea eax, [esp + 0x58]
push eax
mov eax, dword [esp + 0x310]
push ecx
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
lea edx, [esp + 0x120]
push str._s__s_fno_d_ret_d__s
push edx
call ebx
mov edx, dword [esp + 0x330]
add esp, 0x1c
cmp byte [edx], 0
je 0x41fb53
mov edi, 0x4264e4
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x10c]
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 + 0x10c]
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 edx, dword [esp + 0x310]
cmp byte [edx], 0
je 0x41fbbc
mov edi, 0x4264e4
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x10c]
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 + 0x10c]
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, 0x426458
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10c]
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 + 0xa8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x19
lea edi, [esp + 0xa8]
rep stosd dword es:[edi], eax
mov ecx, dword [0x968af8]
lea eax, [esp + 0x58]
add ecx, 0x1cb
push eax
push ecx
push str._sTUCFILE_fopen_log__s.txt
push edx
call ebx
lea eax, [esp + 0xb8]
push 0x4264b0
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0x18
test esi, esi
je 0x41fc51
lea ecx, [esp + 0x10c]
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, 0x2f0
ret