Function at 0x404ac0
Capabilities:
Check http status code
Connect to http server
Create http request

Disassembly:
push 0xffffffffffffffff
push 0x4077e2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], esi
stosb byte es:[edi], al
mov dword [esp + 0x2c], 0x40b744
mov dword [esp + 0x30], esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x140], esi
mov esi, dword [esp + 0x148]
push esi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_3
push esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x144], 1
call sub.MFC42.DLL_CString::CString_3
mov bl, 2
lea ecx, [esp + 0x10]
mov byte [esp + 0x140], bl
call sub.MFC42.DLL_CString::MakeLower
push str.http:__
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_2
cmp eax, 0xffffffff
je 0x404dba
push str.http:__
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_2
push str.http:__
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add esi, eax
lea eax, [esp + 0x18]
push esi
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x144], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x140], bl
call sub.MFC42.DLL_CString::CString
push 0x2f
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x404c08
push 0x2f
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_1
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x144], 4
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x140], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x20], edx
push 0x2f
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_1
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x144], 5
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x140], bl
call sub.MFC42.DLL_CString::CString
push 0x3a
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x404c5f
mov ebp, dword [esp + 0x10]
mov esi, 0x50
jmp 0x404cb6
push 0x3a
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_1
inc eax
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid_1
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
lea ecx, [esp + 0x18]
mov esi, eax
call sub.MFC42.DLL_CString::CString
push 0x3a
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_1
lea edx, [esp + 0x18]
push eax
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
mov ebp, dword [eax]
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
push 0
push 0
push 0
push 0
push str.Mozilla_4.0__compatible__MSIE_5.00__Windows_98
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
test edi, edi
jne 0x404ce3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x14c]
mov dword [ecx], eax
jmp 0x404dba
push 1
push 0
push 3
push 0
push 0
push esi
push ebp
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
test esi, esi
jne 0x404d17
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x14c]
push edi
mov dword [edx], eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x404dba
mov ecx, dword [esp + 0x20]
push 0
lea eax, [esp + 0x30]
push 0x4000000
push eax
push 0
push str.HTTP_1.1
push ecx
push 0x40b704
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test ebp, ebp
je 0x404da3
call ebx
test eax, eax
ja 0x404da3
lea edx, [esp + 0x24]
push 0
lea eax, [esp + 0x38]
push edx
push eax
push 0x13
push ebp
mov dword [esp + 0x38], 0x104
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x404d85
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
cmp eax, 0xc8
je 0x404d92
jmp 0x404d89
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x14c]
mov dword [edx], eax
push ebp
mov ebp, dword [sym.imp.WININET.dll_InternetCloseHandle]
call ebp
push esi
call ebp
push edi
call ebp
jmp 0x404dba
call ebx
mov ecx, dword [esp + 0x14c]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ecx], eax
call esi
push edi
call esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x140], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x140], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x140], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x138]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x134
ret