Function at 0x499b70
Capabilities:
Resolve dns

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4bde54
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push esi
push edi
mov edi, dword [esp + 0x134]
test edi, edi
je 0x499ead
mov eax, dword [edi + 0x2c]
test eax, eax
jne 0x499ead
push 0x2b
mov dword [esp + 0x18], 0
call fcn.00474d10
add esp, 4
test eax, eax
je 0x499dc3
mov eax, dword [edi + 0x20]
test eax, eax
je 0x499dc3
lea eax, [esp + 8]
push 0x2c
push eax
call fcn.004749a0
add esp, 8
mov eax, dword [edi]
mov dword [esp + 0x12c], 0
push eax
call sub.WS2_32.dll_gethostbyname
lea ecx, [esp + 0xc]
mov esi, eax
call sub.MFC42.DLL_CString::CString_2
test esi, esi
mov byte [esp + 0x12c], 1
je 0x499c13
mov ecx, dword [esi]
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator
jmp 0x499c1d
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_1
push ebx
push ebp
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::MakeLower
push 0x4e2088
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_2
mov esi, eax
cmp esi, 0xffffffff
je 0x499d90
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
lea edx, [esp + 0x24]
push esi
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
lea ecx, [esp + 0x30]
mov byte [esp + 0x134], 2
mov eax, dword [eax - 8]
inc eax
push eax
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Right
mov edi, eax
lea edx, [esp + 0x28]
push esi
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x13c], 3
call sub.MFC42.DLL_CString::Left
push eax
lea eax, [esp + 0x24]
push 0x4e26e0
push eax
mov byte [esp + 0x140], 4
call sub.MFC42.DLL_operator
mov edi, dword [edi]
mov eax, dword [eax]
push edi
push eax
mov byte [esp + 0x13c], 5
call ebp
add esp, 8
test eax, eax
je 0x499ce9
lea ecx, [esp + 0x2c]
push esi
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
mov edx, dword [esp + 0x14]
mov eax, dword [eax]
push edx
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x2c]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x499ceb
mov bl, 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x134], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x134], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x134], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x134], 1
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x499d81
inc esi
lea eax, [esp + 0x18]
push esi
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x138], 6
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 1
call sub.MFC42.DLL_CString::CString
push 0x4e2088
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_2
mov esi, eax
cmp esi, 0xffffffff
jne 0x499c47
jmp 0x499d89
mov dword [esp + 0x1c], 1
mov edi, dword [esp + 0x13c]
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x134], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x1c]
pop ebp
test eax, eax
pop ebx
jne 0x499f51
mov eax, dword [edi + 0x18]
test eax, eax
je 0x499f51
mov eax, dword [edi + 0x20]
test eax, eax
jne 0x499e00
lea ecx, [esp + 0x10]
push 0x47
push ecx
call fcn.004749a0
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 0xc
lea ecx, [esp + 0x10]
mov esi, eax
call sub.MFC42.DLL_CString::CString
test esi, esi
je 0x499f51
push 0x2a
push 0xa91
push 0xa90
lea ecx, [esp + 0x38]
call fcn.00428a70
lea ecx, [esp + 0x2c]
mov dword [esp + 0x12c], 7
call sub.MFC42.DLL_CDialog::DoModal
cmp eax, 1
je 0x499ec6
lea ecx, [esp + 0x11c]
mov dword [esp + 0x12c], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x118]
mov byte [esp + 0x12c], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x114]
mov byte [esp + 0x12c], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xd4]
mov byte [esp + 0x12c], 9
call sub.MFC42.DLL_CButton::CButton
lea ecx, [esp + 0x94]
mov byte [esp + 0x12c], 8
call sub.MFC42.DLL_CEdit::CEdit
lea ecx, [esp + 0x2c]
mov dword [esp + 0x12c], 0xffffffff
call fcn.004ac3ea
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
add esp, 0x128
ret
lea edx, [esp + 0x114]
lea ecx, [edi + 0xc]
push edx
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x11c]
mov dword [esp + 0x12c], 0x11
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x118]
mov byte [esp + 0x12c], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x114]
mov byte [esp + 0x12c], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xd4]
mov byte [esp + 0x12c], 0xe
call sub.MFC42.DLL_CButton::CButton
lea ecx, [esp + 0x94]
mov byte [esp + 0x12c], 0xd
call sub.MFC42.DLL_CEdit::CEdit
lea ecx, [esp + 0x2c]
mov dword [esp + 0x12c], 0xffffffff
call fcn.004ac3ea
mov ecx, dword [esp + 0x124]
pop edi
mov al, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x128
ret