Function at 0x406ee3
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x41e348
call fcn.004132a4
sub esp, 0x28
mov eax, dword [0x4290c8]
push ebx
push esi
push edi
push str.CDownloadThread::Download_3_n
mov dword [ebp - 0x10], eax
mov esi, ecx
call fcn.0040b9f0
mov eax, dword [0x42a1ac]
pop ecx
mov edi, 0x42a1ac
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x42a1ac]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp + 8]
add eax, 0x34
push eax
mov byte [ebp - 4], 1
call fcn.00407926
mov eax, dword [0x42a1ac]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 2
mov eax, dword [0x42a1ac]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 3
call fcn.00406d26
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00406d26
push dword [ebp - 0x28]
push dword [ebp - 0x24]
push str.CDownloadThread::Download__S__S_n
call fcn.0040b9f0
mov edi, dword [sym.imp.WS2_32.dll_inet_addr]
add esp, 0xc
cmp dword [0x42b308], 1
jbe 0x407011
mov ebx, 0x42b310
push ebx
mov word [0x42ae30], 2
call edi
cmp eax, 0xffffffff
mov dword [0x42ae34], eax
jne 0x406fec
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x406fe0
or ebx, 0xffffffff
jmp 0x407139
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [0x42ae34], eax
xor eax, eax
mov ax, word [0x42b30c]
push eax
call dword [sym.imp.WS2_32.dll_htons]
and dword [0x42ae38], 0
and dword [0x42ae3c], 0
mov word [0x42ae32], ax
xor ebx, ebx
push dword [0x42b308]
push str.CDownloadThread::Download_g_ProxyInfo.dwProxyType_d_n
call fcn.0040b9f0
cmp dword [0x42b308], 2
mov eax, dword [ebp - 0x34]
pop ecx
pop ecx
mov word [ebp - 0x1e], ax
je 0x407098
push eax
mov word [ebp - 0x20], 2
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp - 0x24]
mov word [ebp - 0x1e], ax
call edi
push eax
push str.CDownloadThread::Download_S_addr_d_n
mov dword [ebp - 0x1c], eax
call fcn.0040b9f0
cmp dword [ebp - 0x1c], 0xffffffff
pop ecx
pop ecx
jne 0x407092
push dword [ebp - 0x24]
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
jne 0x407088
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [ebp - 0x24]
push str.CDownloadThread::Download_gethostbyname__S____d_n
call fcn.0040b9f0
add esp, 0xc
jmp 0x406fd8
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
movzx eax, word [ebp - 0x1e]
push eax
push str.CDownloadThread::Download_addr.sin_port_u_n
call fcn.0040b9f0
pop ecx
pop ecx
push ebx
push ebx
push dword [esi + 0x3c]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push eax
push str.CDownloadThread::Download_m_socket___d_n
mov dword [esi + 0x30], eax
call fcn.0040b9f0
pop ecx
pop ecx
push dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push dword [ebp - 0x24]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.004064c8
mov edi, eax
push edi
push str.CDownloadThread::Download_DoMyTask_return__d_n
call fcn.0040b9f0
pop ecx
pop ecx
mov eax, esi
call fcn.00406327
push ebx
call fcn.00402cdc
test eax, eax
jne 0x406fd8
cmp edi, 1
je 0x407136
cmp edi, ebx
je 0x407122
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4070b7
push dword [ebp + 8]
mov eax, esi
call fcn.0040641a
test eax, eax
jne 0x4070a9
jmp 0x407139
xor ebx, ebx
inc ebx
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.00402528
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00402528
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
call fcn.00402528
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
call fcn.00402528
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, ebx
pop ebx
call fcn.00412aab
leave
ret 8