Function at 0x427010
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48cf3e
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x4c07e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ecx, 0x4c3de8
movzx esi, word [ebp + 0xc]
mov eax, edi
mov ebx, dword [ebp + 0x10]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x427070
test dl, dl
je 0x42706c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x427070
add eax, 2
add ecx, 2
test dl, dl
jne 0x427050
xor eax, eax
jmp 0x427075
sbb eax, eax
or eax, 1
test eax, eax
jne 0x427089
cmp si, word [0x4c4e78]
jne 0x427089
xor eax, eax
jmp 0x4271f7
test si, si
je 0x427082
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x427093
sub ecx, edx
je 0x427082
test si, si
je 0x427082
call fcn.0044d940
test al, al
jne 0x4271ac
push 0x80
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.00466b60
lea eax, [ebp - 0x90]
push eax
call fcn.00450bd0
push 0x80
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.00466b60
add esp, 0x1c
lea eax, [ebp - 0x110]
push 0x80
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
mov ecx, 0x4c3de8
mov eax, edi
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x427120
test dl, dl
je 0x42711c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x427120
add eax, 2
add ecx, 2
test dl, dl
jne 0x427100
xor eax, eax
jmp 0x427125
sbb eax, eax
or eax, 1
test eax, eax
je 0x42719f
lea ecx, [ebp - 0x90]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x427132
sub ecx, edx
je 0x42716e
lea ecx, [ebp - 0x90]
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x427165
test dl, dl
je 0x427161
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x427165
add eax, 2
add ecx, 2
test dl, dl
jne 0x427145
xor eax, eax
jmp 0x42716a
sbb eax, eax
or eax, 1
test eax, eax
je 0x42719f
mov ecx, edi
lea eax, [ebp - 0x110]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x427196
test dl, dl
je 0x427192
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x427196
add eax, 2
add ecx, 2
test dl, dl
jne 0x427176
xor eax, eax
jmp 0x42719b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4271ac
cmp si, word [0x4c4e78]
je 0x427082
push edi
lea ecx, [ebp - 0x1a8]
call fcn.00411fd0
push 0
push str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890:._
lea ecx, [ebp - 0x1a8]
mov dword [ebp - 4], 0
call fcn.0042e620
cmp eax, 0xffffffff
je 0x427213
push str.Error_n
push 0x4c6a20
call fcn.0042bb90
add esp, 8
xor esi, esi
lea ecx, [ebp - 0x1a8]
call fcn.00412060
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00464e2f
mov esp, ebp
pop ebp
ret
push str.255.255.255.255
push edi
call fcn.00403a10
add esp, 8
test eax, eax
jne 0x4271e8
push str.0.0.0.0
push edi
call fcn.00403a10
add esp, 8
test eax, eax
jne 0x4271e8
cmp dword [0x4c3db0], eax
je 0x42728f
push edi
push 0x4c3e68
call fcn.00403a10
add esp, 8
test eax, eax
je 0x4271e8
cmp dword [0x4c3db0], 0
je 0x42728f
push esi
push edi
push str._connect__s:_s
lea eax, [ebp - 0x190]
push 0x491630
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x190]
push eax
push 0x4c3e68
call fcn.00403a10
add esp, 0x1c
test eax, eax
jne 0x4271e8
push esi
push edi
call fcn.00427440
add esp, 8
test eax, eax
je 0x4272cf
push esi
push edi
call fcn.00428780
mov esi, eax
add esp, 8
test esi, esi
je 0x4271e8
mov ecx, esi
call fcn.00403ff0
test eax, eax
jne 0x42730f
push 1
call fcn.00427660
push eax
push esi
call fcn.00429760
add esp, 0xc
jmp 0x42730f
push ebx
push esi
push edi
call fcn.00427370
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4272fa
cmp byte [esi + 0x2d7], 0
je 0x4272fa
push esi
mov ecx, esi
call fcn.00405170
push eax
call fcn.00427660
push eax
jmp 0x427305
push esi
mov ecx, esi
call fcn.00405170
push eax
push 0
mov ecx, 0x4c2440
call fcn.00416d80
test esi, esi
je 0x4271e8
mov ecx, esi
call fcn.00403ff0
test eax, eax
jne 0x4271e8
push ebx
mov ecx, esi
call fcn.00404110
cmp byte [ebp + 0x18], 0
je 0x427353
push edi
call fcn.00429930
add esp, 4
test eax, eax
je 0x427353
mov ecx, esi
call fcn.00403ff0
test eax, eax
jne 0x427353
mov ecx, esi
call fcn.004052b0
push 1
push 0xffffffffffffffff
mov ecx, esi
call fcn.00403ad0
jmp 0x4271ea