Function at 0x403dc0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419850
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x41f3c4]
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 eax, dword [ebp + 0x28]
mov ebx, dword [ebp + 0x24]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], edx
push 0xffffffffffffffff
push 0
lea eax, [ebp + 8]
push eax
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.004037a0
push 7
push str.http:__
push ebx
call fcn.004026f0
test eax, eax
js 0x403e5a
mov ecx, dword [ebp + 0x18]
sub ecx, eax
sub ecx, 7
push ecx
lea ecx, [eax + 7]
lea esi, [ebp - 0x50]
mov edx, ebx
call fcn.004026a0
mov edi, eax
mov esi, ebx
mov byte [ebp - 4], 1
call fcn.00403670
mov byte [ebp - 4], 0
cmp dword [ebp - 0x3c], 0x10
jb 0x403e5a
mov edx, dword [ebp - 0x50]
push edx
call fcn.0040a55f
add esp, 4
push 1
push 0x41ca3c
push ebx
call fcn.004026f0
mov dword [ebp - 0x70], eax
test eax, eax
js 0x403ea7
mov ecx, dword [ebp + 0x18]
sub ecx, eax
push ecx
mov ecx, eax
lea esi, [ebp - 0x50]
mov edx, ebx
call fcn.004026a0
mov esi, dword [ebp - 0x7c]
mov edi, eax
mov byte [ebp - 4], 2
call fcn.00403670
mov byte [ebp - 4], 0
cmp dword [ebp - 0x3c], 0x10
jb 0x403ea4
mov edx, dword [ebp - 0x50]
push edx
call fcn.0040a55f
add esp, 4
mov eax, dword [ebp - 0x70]
push eax
xor ecx, ecx
lea esi, [ebp - 0x50]
mov edx, ebx
call fcn.004026a0
mov edi, eax
mov esi, ebx
mov byte [ebp - 4], 3
call fcn.00403670
mov byte [ebp - 4], 0
cmp dword [ebp - 0x3c], 0x10
jb 0x403ed7
mov eax, dword [ebp - 0x50]
push eax
call fcn.0040a55f
add esp, 4
push 1
push 0x41ca40
push ebx
call fcn.004026f0
mov edi, eax
test edi, edi
js 0x403f78
push edi
xor ecx, ecx
lea esi, [ebp - 0x50]
mov edx, ebx
call fcn.004026a0
mov byte [ebp - 4], 4
mov eax, dword [ebx + 0x10]
sub eax, edi
dec eax
push eax
lea ecx, [edi + 1]
lea esi, [ebp - 0x6c]
mov edx, ebx
call fcn.004026a0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x50]
push ecx
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.004037a0
mov eax, dword [ebp - 0x6c]
mov esi, 0x10
cmp dword [ebp - 0x58], esi
jae 0x403f36
lea eax, [ebp - 0x6c]
push eax
call fcn.0040b5fc
mov edx, dword [ebp - 0x74]
add esp, 4
mov dword [edx], eax
cmp dword [ebp - 0x58], esi
jb 0x403f55
mov eax, dword [ebp - 0x6c]
push eax
call fcn.0040a55f
add esp, 4
mov dword [ebp - 0x58], 0xf
mov dword [ebp - 0x5c], 0
mov byte [ebp - 0x6c], 0
cmp dword [ebp - 0x3c], esi
jb 0x403f78
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.0040a55f
add esp, 4
mov esi, 0x10
cmp dword [ebx + 0x14], esi
jb 0x403f84
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x403fa7
cmp dword [ebp + 0x1c], esi
jb 0x403fa0
mov edx, dword [ebp + 8]
push edx
call fcn.0040a55f
add esp, 4
xor eax, eax
jmp 0x404042
xor ecx, ecx
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x33], ecx
mov dword [ebp - 0x2f], ecx
mov dword [ebp - 0x2b], ecx
mov dword [ebp - 0x27], ecx
mov dword [ebp - 0x23], ecx
mov dword [ebp - 0x1f], ecx
mov dword [ebp - 0x1b], ecx
mov word [ebp - 0x17], cx
mov byte [ebp - 0x15], cl
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
movzx ecx, byte [eax + 3]
movzx edx, byte [eax + 2]
push ecx
movzx ecx, byte [eax + 1]
push edx
movzx edx, byte [eax]
push ecx
push edx
lea eax, [ebp - 0x34]
push str._d._d._d._d
push eax
call fcn.0040a4db
mov esi, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x74]
mov dword [esi], 0xffffffff
mov ecx, dword [ecx]
add esp, 0x18
lea edx, [ebp - 0x34]
call fcn.00403ca0
test eax, eax
jne 0x40402b
mov edx, dword [esi]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
cmp dword [ebp + 0x1c], 0x10
jb 0x403fa0
mov eax, dword [ebp + 8]
push eax
call fcn.0040a55f
add esp, 4
xor eax, eax
jmp 0x404042
cmp dword [ebp + 0x1c], 0x10
jb 0x40403d
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040a55f
add esp, 4
mov eax, 1
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.0040a4cc
mov esp, ebp
pop ebp
ret