Function at 0x401040
Capabilities:
Check http status code
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push 0xffffffffffffffff
push 0x4036ec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor edi, edi
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], esi
mov dword [0x4060d0], edi
call dword [0x404168]
lea ecx, [esp + 0x18]
mov dword [esp + 0x14c], edi
call dword [0x404168]
lea ecx, [esp + 0x20]
call dword [0x404168]
mov eax, dword [esp + 0x154]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x150], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov byte [esp + 0x14c], 3
push 0
push 0
push 0
push 0
push 0
push str.kduef
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push str.yklb
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x34]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call sub.MFC71.DLL_AfxParseURL
test eax, eax
je 0x4014c6
cmp dword [esp + 0x34], 3
jne 0x4014c6
push 0
push 0
push 0
push 0
push str.ProxyDown
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x2c], ebx
je 0x401424
push 0
push 0
push 3
push str.HTTP_1.0
push 0x404294
push 0x50
lea ecx, [esp + 0x30]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x30], ebp
je 0x40141d
push 0
push 0x80000000
push 0
push 0
push str.HTTP_1.0
lea ecx, [esp + 0x34]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0x404290
push ebp
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
test ebx, ebx
je 0x401412
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x401407
push 0
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x4c]
push eax
push 0x13
push ebx
mov dword [esp + 0x4c], 0x100
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x4011df
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.MSVCR71.dll_atol]
add esp, 4
mov dword [esp + 0x3c], eax
jmp 0x4011e3
mov eax, dword [esp + 0x3c]
cmp eax, 0xc8
jne 0x4013f4
mov al, byte [esp + 0x164]
test al, al
je 0x4012f5
mov edx, dword [esp + 0x160]
push edx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
push 0
lea ecx, [esp + 0x18]
mov byte [esp + 0x150], 4
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.MSVCR71.dll__access]
add esp, 8
cmp eax, 0xffffffff
lea ecx, [esp + 0x14]
push 0
je 0x4012be
mov edi, dword [esi + 4]
add esi, 4
push 2
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, esi
call dword [edi + 0x28]
test eax, eax
jne 0x401274
lea ecx, [esp + 0x14]
mov edi, 4
mov byte [esp + 0x14c], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov esi, dword [esp + 0x1c]
jmp 0x401407
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x38]
mov edx, dword [esi]
push 2
push 0
push 0
mov ecx, esi
mov edi, eax
call dword [edx + 0x30]
push 0
push 0
push 0
push edi
push ebx
call dword [sym.imp.WININET.dll_InternetSetFilePointer]
mov ecx, dword [0x4060d0]
mov esi, dword [esp + 0x1c]
add ecx, eax
mov dword [0x4060d0], ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x14c], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
jmp 0x401315
mov ebp, dword [esi + 4]
lea edi, [esi + 4]
push 0x1002
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, edi
call dword [ebp + 0x28]
test eax, eax
jne 0x4012aa
lea ecx, [esp + 0x14]
mov edi, 4
mov byte [esp + 0x14c], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
jmp 0x401407
mov edx, dword [esp + 0x158]
mov edi, dword [edx]
mov ecx, dword [esp + 0x15c]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ebp, [esi + 0x14]
xor eax, eax
mov ecx, 0x100
mov edi, ebp
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 0x400
push ebp
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, 1
jne 0x4013e4
mov al, byte [esp + 0x164]
test al, al
je 0x401367
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 4]
add esi, 4
push eax
push ebp
mov ecx, esi
call dword [edx + 0x40]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x50]
jmp 0x401399
mov eax, dword [0x4060d0]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x15c]
lea edx, [eax + ecx]
cmp edx, edi
ja 0x4013ed
mov edx, dword [esp + 0x158]
mov edi, dword [edx]
add edi, eax
mov eax, ecx
shr ecx, 2
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
mov edx, dword [0x4060d0]
add edx, eax
cmp eax, 0x400
mov dword [0x4060d0], edx
jb 0x40146b
xor eax, eax
mov ecx, 0x100
mov edi, ebp
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push ecx
push 0x400
push ebp
push ebx
mov dword [esp + 0x20], eax
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, 1
mov esi, dword [esp + 0x1c]
je 0x401342
mov edx, dword [esi + 4]
lea ecx, [esi + 4]
call dword [edx + 0x54]
mov edi, 5
jmp 0x401407
push eax
lea eax, [esi + 0x14]
push 0x404284
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0xc
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ebp, dword [esp + 0x30]
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ebx, dword [esp + 0x2c]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 3
jl 0x4010b4
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, 0xfffffc16
jmp 0x4014f3
mov al, byte [esp + 0x164]
test al, al
je 0x401483
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 4]
add ecx, 4
call dword [edx + 0x54]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
mov eax, dword [esp + 0x30]
push eax
call esi
mov ecx, dword [esp + 0x2c]
push ecx
call esi
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
jmp 0x4014f3
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, 0xffffff9c
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x140
ret 0x14