Function at 0x4d8050
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x1c
mov ecx, dword [esp + 0x20]
push ebx
push ebp
xor ebx, ebx
xor ebp, ebp
movzx eax, word [ecx + 2]
and eax, 1
mov dword [0x54fd74], ebx
mov dword [esp + 0x10], eax
movzx eax, byte [ecx + 0x11]
push esi
imul edx, eax, 0x3e8
movzx eax, byte [ecx + 0x10]
push edi
push dword [ecx + 0x14]
mov dword [esp + 0x28], ebp
xor edi, edi
add edx, eax
mov dword [esp + 0x18], ebx
push ecx
mov dword [esp + 0x30], edx
call fcn.004d9db0
mov esi, eax
test esi, esi
je 0x4d80e1
push dword [esp + 0x18]
push 0x81
push esi
call fcn.004d9c10
mov edi, eax
test edi, edi
je 0x4d83cd
push edi
call fcn.004d5270
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x4d83cf
push dword [esp + 0x18]
push esi
push edi
mov esi, eax
push esi
call fcn.004d9bc0
mov eax, esi
mov dword [esp + 0x20], esi
jmp 0x4d80ea
mov eax, 0x408154
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x30]
movzx ecx, word [esi + 0x12]
mov dword [esp + 0x1c], ecx
cmp ecx, 0xfffe
jne 0x4d813c
cmp byte [eax], bl
jne 0x4d8115
mov dword [0x54fd74], 4
mov eax, dword [esp + 0x14]
jmp 0x4d83cf
push eax
push 8
call fcn.004d5790
test eax, eax
jne 0x4d8134
mov eax, dword [esp + 0x14]
mov dword [0x54fd74], 0x29
jmp 0x4d83cf
dec eax
movzx eax, ax
mov dword [esp + 0x1c], eax
call fcn.004d8400
cmp dword [0x559f3c], ebx
jne 0x4d815c
mov eax, dword [esp + 0x14]
mov dword [0x54fd74], 0x60
jmp 0x4d83cf
push edi
push dword [esp + 0x24]
push dword [esp + 0x3c]
push esi
call fcn.004d7a30
mov ebx, eax
test ebx, ebx
je 0x4d810c
call fcn.004d8a10
push dword [esi + 0x18]
mov byte [esp + 0x17], al
push esi
call fcn.004d9db0
mov ebp, eax
test ebp, ebp
je 0x4d823a
cmp byte [ebp], 0
je 0x4d823a
push dword [esp + 0x18]
push 0x200
push ebp
call fcn.004d9c10
mov edi, eax
test edi, edi
je 0x4d81f8
push edi
call fcn.004d5270
mov esi, eax
add esp, 4
test esi, esi
je 0x4d81f8
push dword [0x54fd98]
push ebp
push edi
push esi
call fcn.004d9bc0
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
je 0x4d81d9
mov dword [ebx + 0x54], eax
jmp 0x4d8219
push esi
call sub.WS2_32.dll_gethostbyname
push esi
mov edi, eax
call fcn.004f948a
add esp, 4
test edi, edi
jne 0x4d8203
mov dword [0x54fd74], 0x69
xor ebp, ebp
mov eax, dword [esp + 0x14]
jmp 0x4d83cf
movsx eax, word [edi + 0xa]
push eax
mov eax, dword [edi + 0xc]
push dword [eax]
lea eax, [ebx + 0x54]
push eax
call fcn.004fa290
add esp, 0xc
push dword [esp + 0x28]
push dword [esp + 0x1c]
push 0
push dword [esp + 0x28]
push 0
push ebx
call fcn.004d7c00
mov ebp, eax
mov eax, dword [esp + 0x14]
jmp 0x4d83cf
cmp byte [esp + 0x13], 0
je 0x4d82f3
mov esi, dword [0x55bccc]
test esi, esi
je 0x4d81f8
nop
cmp dword [esi + 8], 0
je 0x4d82dc
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x4d8267
mov dword [ebx + 0x54], eax
jmp 0x4d828a
lea eax, [esi + 0xc]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x4d82dc
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebx + 0x54]
push eax
call fcn.004fa290
add esp, 0xc
push dword [esp + 0x28]
mov dword [0x54fd74], 0
push dword [esp + 0x1c]
push 0
push dword [esp + 0x28]
push 0
push ebx
call fcn.004d7c00
mov ebp, eax
mov dword [esp + 0x24], ebp
test ebp, ebp
jne 0x4d81fa
push ebx
call fcn.004d8510
push edi
push dword [esp + 0x24]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call fcn.004d7a30
mov ebx, eax
test ebx, ebx
je 0x4d81fa
jmp 0x4d82e0
mov ebp, dword [esp + 0x24]
mov esi, dword [esi]
test esi, esi
jne 0x4d8250
mov eax, dword [esp + 0x14]
jmp 0x4d83cf
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
xor ebp, ebp
jmp 0x4d8304
mov esi, dword [esp + 0x30]
push dword [esp + 0x1c]
add edi, 0xbb8
push dword [esp + 0x24]
push esi
call fcn.004d8da0
test eax, eax
je 0x4d81f8
lea eax, [esp + 0x34]
push eax
push edi
call fcn.004d9190
mov esi, eax
test esi, esi
je 0x4d834f
movzx eax, word [esi + 4]
mov dword [0x54fd74], eax
test eax, eax
je 0x4d836b
lea eax, [esp + 0x34]
push eax
push edi
call fcn.004d9190
mov esi, eax
test esi, esi
jne 0x4d8331
test ebp, ebp
jne 0x4d8360
call fcn.004d8f90
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
inc ebp
cmp ebp, 3
jl 0x4d8300
mov eax, dword [0x54fd74]
test esi, esi
jne 0x4d8389
xor ebp, ebp
test eax, eax
jne 0x4d81fa
mov eax, dword [esp + 0x14]
mov dword [0x54fd74], 0x69
jmp 0x4d83cf
movzx eax, word [esi + 0x14]
mov edi, dword [esi + 0xc]
mov word [ebx + 0x48], ax
movzx eax, word [esi + 0x10]
mov word [ebx + 0x46], ax
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x54], eax
push 0
push 0
call fcn.004d9190
test eax, eax
jne 0x4d83a3
push dword [esp + 0x28]
push dword [esp + 0x1c]
push edi
push dword [esp + 0x28]
push 1
push ebx
call fcn.004d7c00
mov ebp, eax
mov eax, dword [esp + 0x14]
jmp 0x4d83cf
xor eax, eax
push eax
call fcn.004f948a
add esp, 4
test ebp, ebp
jne 0x4d83e6
test ebx, ebx
je 0x4d83e6
push ebx
call fcn.004d8510
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x1c
ret 8