Function at 0x420500
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5425df
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x5a38c0]
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, ecx
mov dword [ebp - 0x124], edi
call fcn.00428115
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x420552
push 0x80004005
call fcn.00401050
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x11c], eax
mov dword [ebp - 4], ebx
call fcn.00428115
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x420581
push 0x80004005
call fcn.00401050
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x118], eax
mov byte [ebp - 4], 1
call fcn.00428115
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4205b1
push 0x80004005
call fcn.00401050
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x114], eax
mov ecx, dword [0x5a50a4]
mov byte [ebp - 4], 2
cmp ecx, ebx
je 0x4205e8
call fcn.0040f390
mov ecx, dword [0x5a50a4]
cmp ecx, ebx
je 0x4205e8
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
push 0x9c
call fcn.00426bec
add esp, 4
mov dword [ebp - 0x120], eax
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x42060c
mov ecx, eax
call fcn.0040e6b0
jmp 0x42060e
xor eax, eax
mov ecx, dword [ebp + 8]
push ecx
push 0x186a0
push ebx
push 0x420420
mov ecx, eax
mov byte [ebp - 4], 2
mov dword [0x5a50a4], eax
call fcn.0040fa70
test al, al
je 0x4206fe
push 0x100
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
cmp esi, ebx
je 0x4206c1
xor edi, edi
lea esp, [esp]
mov ecx, dword [esi + 0xc]
mov edx, dword [edi + ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
test eax, eax
jne 0x420677
xor ecx, ecx
jmp 0x420689
mov ecx, eax
lea ebx, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x420680
sub ecx, ebx
push ecx
push eax
lea ecx, [ebp - 0x11c]
call fcn.004036e0
movsx edx, word [esi + 0xa]
mov ecx, dword [esi + 0xc]
add edx, dword [edi + ecx]
cmp edx, dword [esi]
jae 0x4206bb
push 1
push 0x556f38
lea ecx, [ebp - 0x11c]
call fcn.004036e0
add edi, 4
jmp 0x420660
mov edi, dword [ebp - 0x124]
mov eax, dword [edi + 0x2b6c]
push eax
lea ecx, [ebp - 0x118]
push 0x556f28
push ecx
mov ebx, 1
call fcn.00401560
mov edx, dword [edi + 0x2b6c]
push edx
lea eax, [ebp - 0x114]
push 0x556f1c
push eax
call fcn.00401560
mov ecx, dword [ebp - 0x114]
jmp 0x420734
mov eax, dword [edi + 0x2b6c]
push eax
lea ecx, [ebp - 0x118]
push 0x556f0c
push ecx
call fcn.00401560
mov edx, dword [edi + 0x2b6c]
push edx
lea eax, [ebp - 0x114]
push 0x556efc
push eax
call fcn.00401560
mov ecx, dword [ebp - 0x118]
mov edx, dword [edi + 0x297c]
add esp, 0x18
push ecx
push 0
push 0x401
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [ebp - 0x118]
push ecx
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
add esi, 0xfffffff0
mov dword [ebp - 0x120], esp
mov dword [ebp - 0x120], esp
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x420786
cmp eax, dword [esi]
jne 0x420786
mov edi, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x4207bb
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x42079f
call fcn.004010c0
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
lea ecx, [esi + 0x10]
push ecx
push eax
lea edx, [edi + 0x10]
push edx
call fcn.00526ca3
add esp, 0x10
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x124]
add edi, 0x10
push ebx
add ecx, 0x7c0
mov dword [eax], edi
call fcn.00411b80
mov eax, dword [ebp - 0x114]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4207fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42081b
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420844
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.00527098
mov esp, ebp
pop ebp
ret 8