Function at 0x4175e0
Capabilities:
Get hostname

Disassembly:
mov eax, dword [0x97cfb8]
sub esp, 0x2f0
test eax, eax
jne 0x4175f6
add esp, 0x2f0
ret
add eax, 0x66
push eax
call fcn.00417590
add esp, 4
cmp eax, 1
jne 0x417610
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]
push edx
push eax
movsx edx, word [esp + 0x24]
push ecx
push edx
lea eax, [esp + 0x40]
push 0x433cb0
push eax
call fcn.004195cf
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 fcn.004195cf
mov edx, dword [esp + 0x330]
add esp, 0x1c
cmp byte [edx], 0
je 0x417753
mov edi, 0x43056c
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x10c]
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 + 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, 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 edx, dword [esp + 0x310]
cmp byte [edx], 0
je 0x4177bc
mov edi, 0x43056c
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x10c]
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 + 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, 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, 0x4304e0
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 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 + 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 [0x97cfb8]
lea eax, [esp + 0x58]
add ecx, 0x1cb
push eax
push ecx
push str._sTUCFILE_fopen_log__s.txt
push edx
call fcn.004195cf
lea eax, [esp + 0xb8]
push 0x430538
push eax
call fcn.00419a13
mov esi, eax
add esp, 0x18
test esi, esi
je 0x417851
lea ecx, [esp + 0x10c]
push esi
push ecx
call fcn.00419be3
push esi
call fcn.00419903
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2f0
ret