Function at 0x404610
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43637e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x130]
mov ecx, 0x49
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x24]
call sub.MFC42D.DLL_Ordinal_493
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xe0
mov esi, esp
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x2c]
call sub.MFC42D.DLL_Ordinal_492
mov byte [ebp - 4], 1
mov dword [ebp - 0x30], 0
jmp 0x404690
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x30]
cmp dword [eax + ecx*4], 0
je 0x4046d4
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x30]
mov edx, dword [eax + ecx*4]
mov esi, esp
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
push eax
lea ecx, [ebp - 0x2c]
call sub.MFC42D.DLL_Ordinal_736
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x24]
call sub.MFC42D.DLL_Ordinal_985
jmp 0x404687
lea ecx, [ebp - 0x24]
call sub.MFC42D.DLL_Ordinal_3042
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 1
jne 0x404705
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call sub.MFC42D.DLL_Ordinal_684
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call sub.MFC42D.DLL_Ordinal_685
jmp 0x40481e
push str.IsSelectIP
push str.Client_Setting
mov ecx, dword [ebp - 0x10]
call fcn.004049c0
test eax, eax
jne 0x40473b
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call sub.MFC42D.DLL_Ordinal_684
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call sub.MFC42D.DLL_Ordinal_685
jmp 0x40481e
push 0
lea ecx, [ebp - 0xec]
call fcn.00412e50
mov byte [ebp - 4], 2
mov dword [ebp - 0xf0], 0
jmp 0x404767
mov edx, dword [ebp - 0xf0]
add edx, 1
mov dword [ebp - 0xf0], edx
mov eax, dword [ebp - 0xf0]
cmp eax, dword [ebp - 0x34]
jge 0x40478c
mov ecx, dword [ebp - 0xf0]
push ecx
lea ecx, [ebp - 0x24]
call sub.MFC42D.DLL_Ordinal_851
push eax
lea ecx, [ebp - 0x48]
call sub.MFC42D.DLL_Ordinal_985
jmp 0x404758
lea ecx, [ebp - 0xec]
call sub.MFC42D.DLL_Ordinal_1862
cmp dword [ebp - 0x4c], 0xffffffff
jne 0x4047a4
mov dword [ebp - 0x4c], 0
push 0
push str.IsSelectIP
push str.Client_Setting
mov ecx, dword [ebp - 0x10]
call fcn.00404ad0
mov edx, dword [ebp - 0x4c]
push edx
push str.EnumOrder
push str.Client_Setting
mov ecx, dword [ebp - 0x10]
call fcn.00404ad0
mov eax, dword [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x24]
call sub.MFC42D.DLL_Ordinal_851
mov ecx, eax
call sub.MFC42D.DLL_Ordinal_880
push eax
push str.BindIP
push str.Client_Setting
mov ecx, dword [ebp - 0x10]
call fcn.00404d80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xec]
call fcn.00404840
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call sub.MFC42D.DLL_Ordinal_684
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call sub.MFC42D.DLL_Ordinal_685
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x130
cmp ebp, esp
call sub.MSVCRTD.dll__chkesp
mov esp, ebp
pop ebp
ret