Function at 0x417860
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.00419790
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 0x417927
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 0x433cb0
push edx
call fcn.004195cf
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 0x433cf0
push ecx
call fcn.004195cf
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 ebx
push eax
lea edx, [esp + 0x4c]
push ecx
push edx
lea eax, [esp + 0x170]
push str._s__s_fno_d__s__s__s
push eax
call fcn.004195cf
mov edx, dword [esp + 0x520]
add esp, 0x20
cmp byte [edx], 0
je 0x417abd
mov edi, 0x43056c
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, 0x4304e0
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 [0x97cfb8]
lea eax, [esp + 0xa4]
add ecx, 0x1cb
push eax
push ecx
push str._sTUCFILE_fopen_log__s.txt
push edx
call fcn.004195cf
lea eax, [esp + 0x104]
push 0x430538
push eax
call fcn.00419a13
mov esi, eax
add esp, 0x18
test esi, esi
je 0x417b55
lea ecx, [esp + 0x158]
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, 0x4e0
ret