Function at 0x401e20
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c8f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x428
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x18], edx
mov ecx, ebx
xor eax, eax
mov edx, ecx
mov dword [ebp - 0x1c], edi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
xor esi, esi
and ecx, 3
mov dword [ebp - 0x10], esp
rep stosb byte es:[edi], al
mov dword [ebp + 8], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], esi
call fcn.004052b9
cmp eax, esi
jl 0x401e8e
cmp eax, 0xfffffffb
jge 0x401e8e
call fcn.00401bc0
mov ecx, 0x100
xor eax, eax
lea edi, [ebp - 0x434]
push 0x401
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x434]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x434]
push 0x40f1f8
push ecx
call fcn.0040548d
add esp, 8
cmp eax, esi
mov dword [ebp + 8], eax
je 0x40209a
push 2
push 0xfffffffffffffffc
push eax
call fcn.004053e1
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x28]
push edx
push eax
call fcn.004053bf
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x14]
push ecx
push 1
push 4
push edx
call fcn.004052d7
mov ecx, dword [ebp - 0x14]
add esp, 0x24
cmp ecx, esi
jle 0x40209a
mov edi, dword [ebp - 0x24]
mov eax, ecx
cdq
cmp edx, edi
jg 0x40209a
jl 0x401f1f
cmp eax, dword [ebp - 0x28]
ja 0x40209a
mov eax, dword [ebp + 8]
push esi
push ecx
push eax
call fcn.004053e1
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x20]
push ecx
push 1
push 4
push edx
call fcn.004052d7
mov eax, dword [ebp - 0x20]
add esp, 0x1c
cmp eax, ebx
jg 0x40209a
mov edi, dword [ebp - 0x18]
cmp edi, 1
jne 0x401f83
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
push ecx
push eax
push edi
push edx
jmp 0x402039
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 1
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004053e1
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
add edx, ecx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 8]
push edx
push 1
push 4
push eax
call fcn.004052d7
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
add eax, ecx
add esp, 0x1c
cmp eax, esi
mov dword [ebp - 0x14], eax
jle 0x40209d
cdq
cmp edx, dword [ebp - 0x24]
jg 0x40209d
jl 0x401fd6
cmp eax, dword [ebp - 0x28]
ja 0x40209d
cmp ecx, ebx
jg 0x40209d
cmp edi, 2
je 0x40202e
push 1
push ecx
mov ecx, dword [ebp + 8]
push ecx
call fcn.004053e1
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x30]
push edx
push 1
push 4
push eax
call fcn.004052d7
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x30]
add eax, ecx
add esp, 0x1c
cmp eax, esi
mov dword [ebp - 0x14], eax
jle 0x40209d
mov esi, dword [ebp - 0x24]
cdq
cmp edx, esi
jg 0x40209d
jl 0x402025
cmp eax, dword [ebp - 0x28]
ja 0x40209d
cmp ecx, ebx
jg 0x40209d
cmp edi, 3
jne 0x402041
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
push edx
push ecx
push 1
push eax
call fcn.004052d7
add esp, 0x10
lea ecx, [ebp + 8]
call fcn.00401a90
cmp edi, 1
jne 0x402070
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov edx, esi
call fcn.00401d60
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0x2c]
cmp edi, 2
je 0x40207b
mov esi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x1c]
mov edx, esi
call fcn.00401d60
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x18]
lea ecx, [ebp + 8]
call fcn.00401a90
cmp edi, 1
jne 0x401f6e
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push ecx
push edx
mov dword [ebp - 0x18], 0x40
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4