Function at 0x5c11a0
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x1248
call fcn.00488a80
mov eax, dword [esp + 0x1250]
mov eax, dword [eax]
push ebx
push ebp
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x5c11c2
add eax, 4
jmp 0x5c11c4
xor eax, eax
push eax
lea ecx, [esp + 0x1c]
call fcn.005214b0
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x158]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x15c]
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
call fcn.0049d9d0
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x5c120f
test dword [eax], 0xffffff00
je 0x5c120f
mov cl, byte [eax + 4]
add eax, 4
test cl, cl
jne 0x5c1259
mov esi, dword [esp + 0x125c]
xor eax, eax
mov dword [esi], ebx
mov edi, 0x6b6e10
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x6b6e10
mov ecx, esi
call fcn.0049d9d0
lea ecx, [esp + 0x10]
call fcn.004039f0
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], ebx
call fcn.004039f0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1248
ret
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x5c1283
cmp word [eax + 8], 2
jne 0x5c1283
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
je 0x5c1283
cmp word [eax + 0xa], 4
jne 0x5c1283
mov ecx, dword [ecx]
cmp ecx, ebx
jne 0x5c1307
mov ebp, dword [esp + 0x125c]
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp], ebx
mov edi, 0x6b6e10
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x6b6e10
mov ecx, ebp
call fcn.0049d9d0
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
je 0x5c1495
mov edx, dword [eax]
and edx, 0xff
cmp edx, 0x80
mov esi, eax
jae 0x5c1495
push eax
call edi
and eax, 0xff
cmp eax, 0x7f
jne 0x5c1484
mov eax, dword [esi]
and eax, 0xff
cmp eax, 0x80
jae 0x5c147f
push esi
call ebx
and eax, 0xff
jmp 0x5c1484
mov dword [esp + 0x14], ebx
mov edx, dword [eax]
movzx eax, byte [ecx + 3]
push edx
movzx edx, byte [ecx + 2]
push eax
movzx eax, byte [ecx + 1]
movzx ecx, byte [ecx]
push edx
push eax
push ecx
lea edx, [esp + 0x28]
push str._d._d._d._d___s_
push edx
call fcn.00403a60
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x1278]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
add esp, 0x1c
test eax, eax
mov dword [ebx], eax
je 0x5c13b8
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
jae 0x5c1367
push eax
call ebp
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5c13b8
mov edx, dword [eax]
and edx, 0xff
cmp edx, 0x80
mov esi, eax
jae 0x5c13b8
push eax
call edi
and eax, 0xff
cmp eax, 0x7f
jne 0x5c13a7
mov eax, dword [esi]
and eax, 0xff
cmp eax, 0x80
jae 0x5c13a2
push esi
call ebp
and eax, 0xff
jmp 0x5c13a7
mov eax, 0xff
test eax, eax
jne 0x5c13b8
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00499410
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x14], 0
je 0x5c1415
mov edx, dword [eax]
and edx, 0xff
cmp edx, 0x80
mov esi, eax
jae 0x5c1415
push eax
call edi
and eax, 0xff
cmp eax, 0x7f
jne 0x5c1404
mov eax, dword [esi]
and eax, 0xff
cmp eax, 0x80
jae 0x5c13ff
push esi
call ebp
and eax, 0xff
jmp 0x5c1404
mov eax, 0xff
test eax, eax
jne 0x5c1415
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00499410
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
mov dword [esp + 0x10], 0
je 0x5c1472
mov edx, dword [eax]
and edx, 0xff
cmp edx, 0x80
mov esi, eax
jae 0x5c1472
push eax
call edi
and eax, 0xff
cmp eax, 0x7f
jne 0x5c1461
mov eax, dword [esi]
and eax, 0xff
cmp eax, 0x80
jae 0x5c145c
push esi
call ebp
and eax, 0xff
jmp 0x5c1461
mov eax, 0xff
test eax, eax
jne 0x5c1472
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00499410
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x1248
ret
mov eax, 0xff
test eax, eax
jne 0x5c1495
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00499410
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
mov dword [esp + 0x10], 0
je 0x5c14f2
mov edx, dword [eax]
and edx, 0xff
cmp edx, 0x80
mov esi, eax
jae 0x5c14f2
push eax
call edi
and eax, 0xff
cmp eax, 0x7f
jne 0x5c14e1
mov eax, dword [esi]
and eax, 0xff
cmp eax, 0x80
jae 0x5c14dc
push esi
call ebx
and eax, 0xff
jmp 0x5c14e1
mov eax, 0xff
test eax, eax
jne 0x5c14f2
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00499410
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x1248
ret