Function at 0x53a580
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a5eea
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1684
call fcn.0055af50
mov eax, dword [0x62d12c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x168c], eax
mov esi, dword [ebp + 0x24]
test byte [0x6354d4], 1
jne 0x53a607
or dword [0x6354d4], 1
xor eax, eax
mov dword [ebp - 4], eax
mov dword [0x6354cc], 7
mov dword [0x6354c8], eax
xor ecx, ecx
mov word [0x6354b8], cx
push 0x5bc7d0
call fcn.00559fd4
add esp, 4
or edi, 0xffffffff
mov dword [ebp - 4], edi
jmp 0x53a60a
or edi, 0xffffffff
mov dword [ebp - 0x1680], 0
test esi, esi
je 0x53a65c
cmp dword [esi], 0x33
jne 0x53a65c
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x53a65c
test ebx, ebx
je 0x53a65c
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x53a633
sub eax, edx
sar eax, 1
je 0x53a65c
mov dword [ebp - 0x1680], esi
push 0x7ff
push ebx
add esi, 4
push esi
call fcn.005614b1
add esp, 0xc
cmp dword [ebp + 8], edi
jne 0x53a6ab
cmp dword [ebp + 0xc], edi
jne 0x53a6ab
cmp dword [ebp + 0x10], edi
jne 0x53a6ab
cmp dword [ebp + 0x14], edi
jne 0x53a6ab
cmp dword [ebp - 0x168c], 0
jne 0x53a6ab
test ebx, ebx
je 0x53a693
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x53a682
sub eax, edx
sar eax, 1
jne 0x53a6ab
mov eax, dword [ebp + 0x20]
cmp eax, 0x11
ja 0x53a6a0
mov dword [0x62a57c], eax
mov eax, dword [ebp - 0x1680]
jmp 0x53aadb
test ebx, ebx
je 0x53aad9
mov eax, ebx
lea edx, [eax + 2]
jmp 0x53a6c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x53a6c0
sub eax, edx
sar eax, 1
je 0x53aad9
mov edi, 8
cmp dword [0x6354cc], edi
mov eax, dword [0x6354b8]
jae 0x53a6ec
mov eax, 0x6354b8
mov ecx, ebx
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x53a716
test dx, dx
je 0x53a712
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x53a716
add eax, 4
add ecx, 4
test dx, dx
jne 0x53a6f0
xor eax, eax
jmp 0x53a71b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x53a6a0
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x53a724
sub eax, edx
sar eax, 1
push eax
push ebx
mov ecx, 0x6354b8
call fcn.00422a20
xor edx, edx
mov word [ebp - 0x644], dx
push 0x226
push edx
lea eax, [ebp - 0x642]
push eax
call fcn.0055aed0
add esp, 0xc
mov dword [ebp - 4], 1
mov eax, 0x635088
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x53a770
sub eax, edx
sar eax, 1
jne 0x53a7a1
push 0x103
push str.TEMP
call fcn.005662ef
add esp, 4
push eax
push 0x635088
call fcn.005614b1
add esp, 0xc
push 0x635088
call fcn.005125c0
add esp, 4
test al, al
jne 0x53a7c7
push 0x635088
call fcn.00561fc5
add esp, 4
test eax, eax
jne 0x53a6a0
push 0
call fcn.0055ae71
mov dword [ebp - 0x1694], eax
mov dword [ebp - 0x1690], edx
lea ecx, [ebp - 0x1694]
push ecx
call fcn.00566066
mov esi, eax
xor edx, edx
mov word [ebp - 0x41c], dx
push 0x206
push edx
lea eax, [ebp - 0x41a]
push eax
call fcn.0055aed0
add esp, 0x14
push 0x635088
lea ecx, [ebp - 0x1660]
call fcn.00422b70
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1660]
push ecx
lea edx, [ebp - 0x167c]
push edx
call fcn.00516150
add esp, 8
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], edi
jb 0x53a83b
mov eax, dword [eax]
mov ecx, dword [esi + 0xc]
push ecx
mov edx, dword [esi + 0x10]
inc edx
push edx
mov ecx, dword [esi + 0x14]
add ecx, 0x76c
push ecx
push eax
push str._s_04d_02d_02d
push 0x103
lea edx, [ebp - 0x41c]
push edx
call fcn.005613c2
add esp, 0x1c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x167c]
call fcn.004222c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1660]
call fcn.004222c0
lea eax, [ebp - 0x41c]
push eax
call fcn.005125c0
add esp, 4
test al, al
jne 0x53a8b0
lea ecx, [ebp - 0x41c]
push ecx
call fcn.00561fc5
add esp, 4
test eax, eax
jne 0x53a6a0
mov dword [ebp - 0x1688], 0xff
xor edx, edx
mov word [ebp - 0x214], dx
push 0x1fc
push edx
lea eax, [ebp - 0x212]
push eax
call fcn.0055aed0
add esp, 0xc
lea ecx, [ebp - 0x1688]
push ecx
lea edx, [ebp - 0x214]
push edx
push 1
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x53a911
mov ecx, str.Unknown
lea edx, [ebp - 0x214]
lea ecx, [ecx]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x53a900
lea eax, [ebp - 0x214]
push eax
call fcn.00562e43
add esp, 4
lea ecx, [ebp - 0x41c]
push ecx
lea ecx, [ebp - 0x1660]
call fcn.00422b70
mov byte [ebp - 4], 4
lea edx, [ebp - 0x1660]
push edx
lea eax, [ebp - 0x167c]
push eax
call fcn.00516150
add esp, 8
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], edi
jb 0x53a957
mov eax, dword [eax]
mov ecx, dword [esi + 0xc]
push ecx
mov edx, dword [esi + 0x10]
inc edx
push edx
mov ecx, dword [esi + 0x14]
add ecx, 0x76c
push ecx
push 0x62a580
lea edx, [ebp - 0x214]
push edx
push eax
push str._s_s__s__04d_02d_02d.txt
push 0x113
lea eax, [ebp - 0x644]
push eax
call fcn.005613c2
add esp, 0x24
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x167c]
call fcn.004222c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1660]
call fcn.004222c0
mov esi, 0x20
mov dword [ebp - 0x1684], esi
mov edi, dword [ebp + 8]
cmp edi, 5
ja case.0x53a9c1.3
jmp dword [edi*4 + 0x53aaf8]
mov esi, 0x43
jmp 0x53a9e9
mov esi, 0x45
jmp 0x53a9e9
mov esi, 0x57
jmp 0x53a9e9
mov esi, 0x44
jmp 0x53a9e9
mov esi, 0x4f
mov dword [ebp - 0x1684], esi
mov eax, dword [0x62a57c]
cmp eax, 3
jne 0x53aa08
cmp edi, eax
jle 0x53aa12
mov eax, dword [ebp - 0x1680]
jmp 0x53aadb
jge 0x53aa12
cmp edi, eax
jg 0x53a6a0
xor ecx, ecx
mov word [ebp - 0x1644], cx
push 0xffe
push ecx
lea edx, [ebp - 0x1642]
push edx
call fcn.0055aed0
add esp, 0xc
push ebx
movzx edx, si
cmp edi, 4
jne 0x53aa66
mov eax, dword [ebp - 0x168c]
push eax
mov ecx, dword [ebp + 0x20]
push ecx
push edx
call fcn.00541000
push eax
push str._s_c_d___hs____s_n
push 0x7ff
lea eax, [ebp - 0x1644]
push eax
call fcn.005613c2
add esp, 0x20
jmp 0x53aa8d
mov ecx, dword [ebp - 0x168c]
push ecx
push edx
call fcn.00541000
push eax
push 0x5db99c
push 0x7ff
lea eax, [ebp - 0x1644]
push eax
call fcn.005613c2
add esp, 0x1c
push 0x5db998
lea ecx, [ebp - 0x644]
push ecx
call fcn.00560192
add esp, 8
mov esi, eax
test esi, esi
je 0x53aabd
push esi
lea edx, [ebp - 0x1644]
push edx
call fcn.0056608d
push esi
call fcn.0055d18d
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1680]
jmp 0x53aadb
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00558b78
mov esp, ebp
pop ebp
ret