Function at 0x51e9e0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x62d12c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
push 0x200
mov edi, ecx
push eax
lea ecx, [ebp - 0x406]
push ecx
mov word [ebp - 0x408], ax
call fcn.0055aed0
xor edx, edx
push 0x1fe
push edx
lea eax, [ebp - 0x202]
push eax
mov word [ebp - 0x204], dx
call fcn.0055aed0
add esp, 0x18
lea ecx, [ebp - 0x63c]
push ecx
lea edx, [ebp - 0x204]
push edx
push 1
mov dword [ebp - 0x63c], 0xff
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
lea ecx, [ebp - 0x204]
xor eax, eax
push ecx
mov word [ebp - 0x1c4], ax
call fcn.00562e43
mov eax, dword [edi]
add esp, 4
mov dword [ebp - 0x63c], 0x101
cmp byte [eax + 0x298], 0
mov edx, 8
je 0x51eb48
cmp byte [eax + 0x2af], 0
je 0x51eaf8
cmp dword [eax + 0x270], edx
push ebx
lea ebx, [eax + 0x25c]
jb 0x51eaa3
mov ebx, dword [ebx]
cmp dword [eax + 0x238], edx
lea edi, [eax + 0x224]
jb 0x51eab3
mov edi, dword [edi]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
mov esi, dword [esi + 0x14]
mov eax, dword [eax + 0x2b4]
push ecx
inc edx
push edx
add esi, 0x76c
push esi
push eax
push ebx
lea eax, [ebp - 0x204]
push eax
push ecx
push edx
push esi
push edi
push str._s_04d_02d_02d_s__s__02d__04d_02d_02d_____.txt
lea ecx, [ebp - 0x408]
push 0x101
push ecx
call fcn.005613c2
add esp, 0x34
pop ebx
jmp 0x51ec04
cmp dword [eax + 0x270], edx
jb 0x51eb08
mov edi, dword [eax + 0x25c]
jmp 0x51eb0e
lea edi, [eax + 0x25c]
cmp dword [eax + 0x238], edx
lea ecx, [eax + 0x224]
jb 0x51eb1e
mov ecx, dword [ecx]
mov edx, dword [esi + 0xc]
mov eax, dword [eax + 0x2b4]
push edx
mov edx, dword [esi + 0x10]
inc edx
push edx
mov edx, dword [esi + 0x14]
add edx, 0x76c
push edx
push eax
push edi
lea edx, [ebp - 0x204]
push edx
push ecx
push str._s_s__s__02d__04d_02d_02d_____.txt
jmp 0x51eb9f
cmp byte [eax + 0x2af], 0
je 0x51ebb5
cmp dword [eax + 0x270], edx
jb 0x51eb61
mov edi, dword [eax + 0x25c]
jmp 0x51eb67
lea edi, [eax + 0x25c]
cmp dword [eax + 0x238], edx
lea ecx, [eax + 0x224]
jb 0x51eb77
mov ecx, dword [ecx]
mov edx, dword [eax + 0x2b4]
push edx
mov edx, dword [esi + 0xc]
push edi
lea eax, [ebp - 0x204]
push eax
mov eax, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0x14]
inc eax
push eax
add edx, 0x76c
push edx
push ecx
push str._s_04d_02d_02d_s__s__02d_____.txt
lea eax, [ebp - 0x408]
push 0x101
push eax
call fcn.005613c2
add esp, 0x28
jmp 0x51ec04
cmp dword [eax + 0x270], edx
jb 0x51ebc5
mov esi, dword [eax + 0x25c]
jmp 0x51ebcb
lea esi, [eax + 0x25c]
cmp dword [eax + 0x238], edx
lea ecx, [eax + 0x224]
jb 0x51ebdb
mov ecx, dword [ecx]
mov edx, dword [eax + 0x2b4]
push edx
push esi
lea eax, [ebp - 0x204]
push eax
push ecx
push str._s_s__s__02d_____.txt
lea ecx, [ebp - 0x408]
push 0x101
push ecx
call fcn.005613c2
add esp, 0x1c
lea edx, [ebp - 0x638]
push edx
lea eax, [ebp - 0x408]
push eax
xor esi, esi
call fcn.00562eab
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
je 0x51ec94
lea eax, [ebp - 0x614]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x51ec30
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x61c], cx
lea eax, [ebp - 0x614]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x51ec52
sub eax, edx
sar eax, 1
lea edx, [ebp + eax*2 - 0x61c]
push edx
call fcn.0055c838
add esp, 4
cmp eax, esi
jle 0x51ec77
mov esi, eax
lea eax, [ebp - 0x638]
push eax
push edi
call fcn.00562fd2
add esp, 8
test eax, eax
je 0x51ec23
push edi
call fcn.0055f2f9
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00558b78
mov esp, ebp
pop ebp
ret 4