Function at 0x402840
Capabilities:
Get hostname

Disassembly:
push 0x800
push 0
push 0x412dc8
call fcn.00405e50
mov eax, 0x412dc8
add esp, 0xc
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x402860
mov ecx, dword [0x40f5dc]
mov edx, dword [0x40f5e0]
mov dword [eax], ecx
mov ecx, dword [0x40f5e4]
push esi
mov dword [eax + 4], edx
mov edx, dword [0x40f5e8]
push edi
mov edi, 0x412dc8
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4028a0
mov ecx, 0x13
mov esi, 0x40f5f0
rep movsd dword es:[edi], dword [esi]
mov edi, 0x412dc8
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4028c0
mov ecx, 0x11
mov esi, 0x40f640
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, 0x412dc8
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4028e2
mov ecx, 0x13
mov esi, 0x40f688
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, 0x412dc8
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x402904
mov ecx, 0x12
mov esi, 0x40f6d8
rep movsd dword es:[edi], dword [esi]
mov eax, 0x412dc8
movsw word es:[edi], word [esi]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x402926
mov ecx, dword [0x40f724]
mov edx, dword [0x40f728]
mov dword [eax], ecx
mov ecx, dword [0x40f72c]
mov dword [eax + 4], edx
mov edx, dword [0x40f730]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, 0x412dc8
add eax, 0xfffffffe
lea ecx, [ecx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x402960
mov ecx, dword [0x40f734]
mov edx, dword [0x40f738]
mov dword [eax], ecx
mov ecx, dword [0x40f73c]
mov dword [eax + 4], edx
mov edx, dword [0x40f740]
mov dword [eax + 8], ecx
mov ecx, dword [0x40f744]
mov dword [eax + 0xc], edx
mov edx, dword [0x40f748]
mov edi, 0x412dc8
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4029b0
mov ecx, 0xe
mov esi, 0x40f74c
rep movsd dword es:[edi], dword [esi]
push 0x800
push 0
push 0x513940
movsw word es:[edi], word [esi]
call fcn.00405e50
mov edi, 0x513940
add esp, 0xc
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4029e6
push 0x100
push 0
mov ecx, 0xb
mov esi, str.______________360
push 0x5136d0
rep movsd dword es:[edi], dword [esi]
call fcn.00405e50
add esp, 0xc
push 0x4136cc
push 0x412bb0
mov dword [0x4136cc], 0x100
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov esi, dword [0x4136cc]
xor ecx, ecx
test esi, esi
jbe 0x402a67
jmp 0x402a40
movsx eax, byte [ecx + 0x412bb0]
cdq
mov edi, 0x24
idiv edi
cmp edx, 0xa
jge 0x402a59
add dl, 0x30
jmp 0x402a5c
add dl, 0x57
mov byte [ecx + 0x412bb0], dl
inc ecx
cmp ecx, esi
jb 0x402a40
pop edi
cmp esi, 8
pop esi
jae 0x402a96
mov eax, 0x412bb0
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402a74
mov ecx, dword [str.522yb8cc]
mov edx, dword [0x40f7b8]
mov dword [eax], ecx
mov cl, byte [0x40f7bc]
mov dword [eax + 4], edx
mov byte [eax + 8], cl
mov eax, 0x412bb0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402aa0
sub eax, edx
mov dword [0x4136cc], eax
cmp eax, 8
jbe 0x402ab9
mov byte [0x412bb8], cl
xor eax, eax
ret