Function at 0x41f3fe
Capabilities:
Check http status code
Connect to http server
Create http request
Parse url
Read data from internet
Receive data
Resolve function by parsing pe exports
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x66dc
call fcn.005933d0
mov eax, dword [0x6c75ac]
xor eax, esp
mov dword [esp + 0x66d8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x41f510
push dword [ebx + 0x10]
push 0x1a2
push str.CQhHttpTransfer::HttpThreadProc
push str.__s__d___HttpThreadProc::lpszUrl___s
call fcn.0040a649
push 8
xor edx, edx
lea edi, [esp + 0xac]
pop ecx
xor eax, eax
mov dword [esp + 0x28], edx
mov esi, 0x208
mov dword [esp + 0x30], edx
push esi
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x4d8]
mov dword [esp + 0x34], edx
push eax
mov dword [esp + 0x5c], edx
call fcn.005aa3d0
add esp, 0x1c
lea eax, [esp + 0x2b8]
xor edi, edi
push esi
push edi
push eax
call fcn.005aa3d0
add esp, 0xc
lea eax, [esp + 0x26d8]
push 0x2000
push edi
push eax
call fcn.005aa3d0
add esp, 0xc
mov dword [esp + 0x38], edi
push dword [ebx + 0x10]
call fcn.005baec0
pop ecx
push 0x3c
pop esi
push esi
lea eax, [esp + 0x48]
push edi
push eax
call fcn.005aa3d0
lea eax, [esp + 0x2c4]
mov dword [esp + 0x50], esi
mov dword [esp + 0x60], eax
add esp, 0xc
lea eax, [esp + 0x26d8]
mov dword [esp + 0x58], 0x104
mov dword [esp + 0x70], eax
xor esi, esi
lea eax, [esp + 0x44]
mov dword [esp + 0x74], 0x1000
push eax
push esi
push dword [ebx + 0x10]
call fcn.005baec0
pop ecx
push eax
push dword [ebx + 0x10]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x41f52a
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xffffffff
mov ecx, dword [esp + 0x66e4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005926d8
mov esp, ebp
pop ebp
ret 4
cmp dword [esp + 0x50], 4
jne 0x41f53b
mov dword [esp + 0x34], 1
jmp 0x41f546
cmp dword [esp + 0x50], 3
jne 0x41f510
mov dword [esp + 0x34], esi
movzx edi, word [esp + 0x5c]
push esi
push esi
push esi
push esi
push 0x62a4ac
mov dword [esp + 0x44], edi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov dword [esp + 0x2c], esi
test esi, esi
jne 0x41f570
push 0xfffffffffffffffd
pop esi
jmp 0x41fa97
xor eax, eax
push eax
push eax
push 3
push eax
push eax
push edi
lea eax, [esp + 0x2d0]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov esi, eax
mov dword [esp + 0x28], esi
test esi, esi
je 0x41fad6
cmp dword [ebx + 0x70], 1
jne 0x41f5a3
mov eax, str.POST
jmp 0x41f5bf
cmp dword [ebx + 0x70], 2
je 0x41f5ba
cmp dword [ebx + 0x20], 0
jbe 0x41f5ba
cmp dword [ebx + 0x1c], 0
mov eax, str.POST
jne 0x41f5bf
mov eax, 0x62ccec
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.005bb53c
cmp dword [ebx + 0x78], 0
mov edx, 0x800c8200
mov eax, 0x80048200
pop ecx
cmove edx, eax
cmp dword [esp + 0x38], 0
pop ecx
je 0x41f5fe
mov ecx, ebx
or edx, 0x800000
call fcn.0041ee88
test eax, eax
jne 0x41f5fe
or edx, 0x1000
push 0
push edx
push 0
push 0
push str.HTTP_1.0
lea eax, [esp + 0x26ec]
push eax
lea eax, [esp + 0xb0]
push eax
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
test edi, edi
je 0x41fad1
lea eax, [esp + 0x4c0]
push str.Accept:___r_nUser_Agent:_Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__r_nConnection:close_r_n
push eax
call fcn.0041fffd
pop ecx
pop ecx
push 0xa0000000
push 0xffffffffffffffff
lea eax, [esp + 0x4c8]
push eax
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
mov esi, dword [ebx + 0x24]
jmp 0x41f6ac
and dword [esp + 0x90], 0
lea ecx, [esp + 0x80]
and dword [esp + 0x94], 0
push esi
call fcn.00404267
cmp dword [esp + 0x94], 0x10
lea eax, [esp + 0x80]
push 0x20000000
cmovae eax, dword [esp + 0x84]
push 0xffffffffffffffff
push eax
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
lea ecx, [esp + 0x80]
call fcn.00404812
add esi, 0x18
cmp esi, dword [ebx + 0x28]
jne 0x41f65a
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x18], 4
mov dword [esp + 0x20], eax
xor esi, esi
lea eax, [esp + 0x18]
mov dword [esp + 0x10], esi
push eax
lea eax, [esp + 0x14]
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [esp + 0x10], 0x3180
lea eax, [esp + 0x10]
push 4
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
push esi
push esi
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov esi, eax
test esi, esi
jne 0x41f755
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f0d
jne 0x41f755
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 4
push eax
lea eax, [esp + 0x18]
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [esp + 0x14], 0x100
lea eax, [esp + 0x14]
push 4
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [esp + 0x20]
cmp eax, 2
jl 0x41f6b5
push 0
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41fa63
test esi, esi
je 0x41f9b6
push 0x200
lea eax, [esp + 0xbc]
push 0
push eax
call fcn.005aa3d0
add esp, 0xc
mov dword [esp + 0x3c], 0x100
xor esi, esi
lea eax, [esp + 0x3c]
and dword [esp + 0x18], esi
push esi
push eax
lea eax, [esp + 0xc0]
push eax
push 0x13
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x41f7c0
lea eax, [esp + 0xb8]
push eax
call fcn.005ba885
pop ecx
mov esi, eax
cmp esi, 0xc8
je 0x41f853
cmp esi, 0x197
je 0x41f7e0
cmp esi, 0x193
jne 0x41fa67
cmp dword [esp + 0x38], 0
jne 0x41fa67
call fcn.0041fafe
test al, al
je 0x41fa67
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41f80c
push eax
call esi
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], 1
test eax, eax
je 0x41f81f
push eax
call esi
xor ecx, ecx
push ecx
push ecx
push 3
push ecx
push ecx
push dword [esp + 0x44]
mov eax, ecx
lea ecx, [esp + 0x2d0]
push ecx
push eax
mov dword [esp + 0x4c], eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov esi, eax
mov dword [esp + 0x28], esi
test esi, esi
jne 0x41f596
jmp 0x41fada
push 0
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0xc0]
push eax
push 5
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x41f883
lea eax, [esp + 0xb8]
push eax
call fcn.005ba885
pop ecx
mov dword [esp + 0x18], eax
jmp 0x41f889
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push ecx
mov ecx, esp
lea eax, [ebx + 0x30]
push ecx
push eax
mov dword [esp + 0x40], ecx
call fcn.0041fde8
lea edx, [ebx + 0x38]
mov ecx, edi
call fcn.0041f22d
xor esi, esi
lea eax, [esp + 0x46e0]
and dword [esp + 0x1c], esi
push 0x2001
push esi
push eax
call fcn.005aa3d0
add esp, 0x14
push 0x2001
lea eax, [esp + 0x46dc]
push 0
push eax
call fcn.005aa3d0
and dword [esp + 0x1c], 0
lea eax, [esp + 0x1c]
add esp, 0xc
push eax
push 0x2000
lea eax, [esp + 0x46e0]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x41f95f
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x14]
push eax
push esi
call fcn.005bd0a4
push dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov esi, eax
lea eax, [esp + 0x46e4]
add ecx, esi
push eax
push ecx
call fcn.005aa530
mov eax, dword [esp + 0x28]
add esp, 0x14
add eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
cmp eax, 0x500000
jbe 0x41f942
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41faaf
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
jmp 0x41f97d
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x41fabb
mov eax, dword [esp + 0x14]
cmp eax, ecx
jne 0x41fabb
xor ecx, ecx
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x41f8c1
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x41f998
push dword [ebx + 0x18]
push eax
push esi
push 0xc8
call ecx
mov dword [esp + 0x40], 1
test esi, esi
je 0x41f9ae
push 0
push esi
call fcn.005bd0a4
pop ecx
pop ecx
mov dword [esp + 0x1c], 0xc8
push 0x1001
lea eax, [esp + 0x6cc]
push 0
push eax
call fcn.005aa3d0
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea eax, [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x24], 0x1000
push 0
push eax
lea eax, [esp + 0x6d0]
push eax
push reloc.WLDAP32.dll_Ordinal_22
push edi
call esi
lea eax, [esp + 0x6c8]
push eax
call fcn.005ae8e0
pop ecx
push eax
lea eax, [esp + 0x6cc]
push eax
lea ecx, [ebx + 0x40]
call fcn.0040464f
push 0x1001
lea eax, [esp + 0x16d4]
push 0
push eax
call fcn.005aa3d0
add esp, 0xc
mov dword [esp + 0x24], 0x1000
lea eax, [esp + 0x24]
push 0
push eax
lea eax, [esp + 0x16d8]
push eax
push 0x16
push edi
call esi
lea eax, [esp + 0x16d0]
push eax
call fcn.005ae8e0
pop ecx
push eax
lea eax, [esp + 0x16d4]
push eax
lea ecx, [ebx + 0x58]
call fcn.0040464f
mov esi, dword [esp + 0x1c]
test edi, edi
je 0x41fa72
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41fa81
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x41fa90
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [esp + 0x40], 0
jne 0x41faa8
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x41faa8
push dword [ebx + 0x18]
push 0
push 0
push esi
call ecx
mov eax, esi
jmp 0x41f513
push 0
push esi
call fcn.005bd0a4
pop ecx
pop ecx
jmp 0x41fa63
push 0xfffffffffffffffa
pop eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x41faaf
push 0xfffffffffffffffa
pop esi
jmp 0x41fa67
push 0xfffffffffffffffb
pop esi
jmp 0x41fa72
mov edi, dword [esp + 0x18]
push 0xfffffffffffffffc
jmp 0x41face