Function at 0x41f62f
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.0059b4a0
mov eax, dword [0x6d35ac]
xor eax, esp
mov dword [esp + 0x66d8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x41f741
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.005b24a0
add esp, 0x1c
lea eax, [esp + 0x2b8]
xor edi, edi
push esi
push edi
push eax
call fcn.005b24a0
add esp, 0xc
lea eax, [esp + 0x26d8]
push 0x2000
push edi
push eax
call fcn.005b24a0
add esp, 0xc
mov dword [esp + 0x38], edi
push dword [ebx + 0x10]
call fcn.005c2f90
pop ecx
push 0x3c
pop esi
push esi
lea eax, [esp + 0x48]
push edi
push eax
call fcn.005b24a0
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.005c2f90
pop ecx
push eax
push dword [ebx + 0x10]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x41f75b
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.0059a7a2
mov esp, ebp
pop ebp
ret 4
cmp dword [esp + 0x50], 4
jne 0x41f76c
mov dword [esp + 0x34], 1
jmp 0x41f777
cmp dword [esp + 0x50], 3
jne 0x41f741
mov dword [esp + 0x34], esi
movzx edi, word [esp + 0x5c]
push esi
push esi
push esi
push esi
push 0x6335fc
mov dword [esp + 0x44], edi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov dword [esp + 0x2c], esi
test esi, esi
jne 0x41f7a1
push 0xfffffffffffffffd
pop esi
jmp 0x41fcc8
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 0x41fd07
cmp dword [ebx + 0x70], 1
jne 0x41f7d4
mov eax, str.POST
jmp 0x41f7f0
cmp dword [ebx + 0x70], 2
je 0x41f7eb
cmp dword [ebx + 0x20], 0
jbe 0x41f7eb
cmp dword [ebx + 0x1c], 0
mov eax, str.POST
jne 0x41f7f0
mov eax, 0x635e8c
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.005c360c
cmp dword [ebx + 0x78], 0
mov edx, 0x800c8200
mov eax, 0x80048200
pop ecx
cmove edx, eax
cmp dword [esp + 0x38], 0
pop ecx
je 0x41f82f
mov ecx, ebx
or edx, 0x800000
call fcn.0041f0b9
test eax, eax
jne 0x41f82f
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 0x41fd02
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.0042022e
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 0x41f8dd
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 0x41f88b
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 0x41f986
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f0d
jne 0x41f986
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 0x41f8e6
push 0
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41fc94
test esi, esi
je 0x41fbe7
push 0x200
lea eax, [esp + 0xbc]
push 0
push eax
call fcn.005b24a0
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 0x41f9f1
lea eax, [esp + 0xb8]
push eax
call fcn.005c2955
pop ecx
mov esi, eax
cmp esi, 0xc8
je 0x41fa84
cmp esi, 0x197
je 0x41fa11
cmp esi, 0x193
jne 0x41fc98
cmp dword [esp + 0x38], 0
jne 0x41fc98
call fcn.0041fd2f
test al, al
je 0x41fc98
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41fa3d
push eax
call esi
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], 1
test eax, eax
je 0x41fa50
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 0x41f7c7
jmp 0x41fd0b
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 0x41fab4
lea eax, [esp + 0xb8]
push eax
call fcn.005c2955
pop ecx
mov dword [esp + 0x18], eax
jmp 0x41faba
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.00420019
lea edx, [ebx + 0x38]
mov ecx, edi
call fcn.0041f45e
xor esi, esi
lea eax, [esp + 0x46e0]
and dword [esp + 0x1c], esi
push 0x2001
push esi
push eax
call fcn.005b24a0
add esp, 0x14
push 0x2001
lea eax, [esp + 0x46dc]
push 0
push eax
call fcn.005b24a0
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 0x41fb90
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x14]
push eax
push esi
call fcn.005c5174
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.005b2600
mov eax, dword [esp + 0x28]
add esp, 0x14
add eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
cmp eax, 0x500000
jbe 0x41fb73
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 0x41fce0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
jmp 0x41fbae
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x41fcec
mov eax, dword [esp + 0x14]
cmp eax, ecx
jne 0x41fcec
xor ecx, ecx
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x41faf2
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x41fbc9
push dword [ebx + 0x18]
push eax
push esi
push 0xc8
call ecx
mov dword [esp + 0x40], 1
test esi, esi
je 0x41fbdf
push 0
push esi
call fcn.005c5174
pop ecx
pop ecx
mov dword [esp + 0x1c], 0xc8
push 0x1001
lea eax, [esp + 0x6cc]
push 0
push eax
call fcn.005b24a0
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.005b69b0
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.005b24a0
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.005b69b0
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 0x41fca3
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41fcb2
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x41fcc1
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [esp + 0x40], 0
jne 0x41fcd9
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x41fcd9
push dword [ebx + 0x18]
push 0
push 0
push esi
call ecx
mov eax, esi
jmp 0x41f744
push 0
push esi
call fcn.005c5174
pop ecx
pop ecx
jmp 0x41fc94
push 0xfffffffffffffffa
pop eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x41fce0
push 0xfffffffffffffffa
pop esi
jmp 0x41fc98
push 0xfffffffffffffffb
pop esi
jmp 0x41fca3
mov edi, dword [esp + 0x18]
push 0xfffffffffffffffc
jmp 0x41fcff