Function at 0x407440
Capabilities:
Check http status code
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c8a8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
mov eax, dword [0x435080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x4362c8]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x58], vtable.CUrlParser.0
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
cmp dword [ebp + 0xc], ebx
je 0x40776f
mov esi, dword [ebp + 0x10]
cmp dword [esi], ebx
je 0x40776f
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.004067e0
movzx eax, al
cmp eax, ebx
je 0x407724
cmp dword [ebp - 0x24], 3
jne 0x407724
cmp dword [ebp + 0x18], ebx
jne 0x4074f5
cmp dword [edi + 4], ebx
je 0x4074fc
cmp dword [edi + 8], ebx
jne 0x4075f5
jmp 0x4074fc
mov esi, edi
call fcn.004072b0
lea ecx, [ebp - 0x4c]
lea eax, [ebp + 0x18]
call fcn.00401000
push ebx
push ebx
push ebx
push ebx
push str.HttpDownload
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [edi + 4], eax
cmp eax, ebx
je 0x40753c
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea edx, [ebp + 0x14]
push edx
push 2
push eax
call esi
test eax, eax
jne 0x40756c
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea esi, [ebp + 0x18]
call fcn.00401370
lea ecx, [ebp - 0x58]
call fcn.00406660
lea esi, [ebp + 8]
call fcn.00401370
mov eax, 3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov edx, dword [edi + 4]
push 4
lea ecx, [ebp + 0x14]
push ecx
push 5
push edx
call esi
test eax, eax
je 0x407532
mov edx, dword [edi + 4]
push 4
lea ecx, [ebp + 0x14]
push ecx
push 5
push edx
call esi
test eax, eax
je 0x407532
mov edx, dword [edi + 4]
push 4
lea ecx, [ebp + 0x14]
push ecx
push 6
push edx
mov dword [ebp + 0x14], ebx
call esi
test eax, eax
je 0x407532
mov edx, dword [edi + 4]
push 4
lea ecx, [ebp + 0x14]
push ecx
push 6
push edx
call esi
cmp eax, ebx
mov eax, dword [edi + 4]
je 0x407535
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp + 0x18]
push ebx
push ebx
push 3
push ebx
push ebx
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [edi + 8], eax
cmp eax, ebx
jne 0x4075e3
mov ecx, dword [edi + 4]
push ecx
jmp 0x407536
lea esi, [ebp + 0x18]
mov dword [edi + 0x14], 1
call fcn.00401370
mov esi, dword [ebp + 0x10]
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x3c]
mov dword [edi + 0x14], 2
call fcn.00404cd0
mov byte [ebp - 4], 2
push ebx
cmp dword [ebp + 0x1c], ebx
je 0x407629
mov ecx, dword [ebp - 0x10]
mov edx, dword [edi + 8]
push ebx
push ebx
push ebx
push ebx
push ecx
push 0x4304d8
push edx
jmp 0x40763e
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi + 8]
push 0x44000000
push ebx
push ebx
push ebx
push eax
push 0x4304d8
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [edi + 0xc], eax
cmp eax, ebx
jne 0x40765b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 4
jmp 0x4076ee
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x407682
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [eax - 0x2ee2]
neg ebx
sbb ebx, ebx
and ebx, 0xfffffffd
add ebx, 7
jmp 0x4076ee
mov ecx, dword [edi + 0xc]
push ebx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x14]
push eax
push 0x20000013
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x4076a3
lea ebx, [eax + 6]
jmp 0x4076ee
mov eax, dword [ebp - 0x14]
cmp eax, 0xc8
je 0x4076bb
cmp eax, 0x130
je 0x4076bb
mov ebx, 5
jmp 0x4076ee
mov edx, dword [esi]
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + 0x18]
push eax
mov dword [ebp + 0x18], edx
mov edx, dword [edi + 0xc]
push ecx
push edx
call fcn.00407320
test eax, eax
jne 0x4076e9
mov eax, dword [ebp + 0x18]
cmp eax, dword [esi]
mov ecx, dword [ebp + 0x10]
sbb ebx, ebx
and ebx, 0xfffffffe
add ebx, 8
mov dword [ecx], eax
jmp 0x4076ee
mov edx, dword [ebp + 0x18]
mov dword [esi], edx
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
lea esi, [ebp - 0x10]
call fcn.00401370
lea ecx, [ebp - 0x58]
call fcn.00406660
lea esi, [ebp + 8]
call fcn.00401370
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
lea ecx, [ebp - 0x58]
call fcn.00406660
mov eax, dword [ebp + 8]
lea ecx, [eax - 0xc]
cmp ecx, 0x4362b8
je 0x407757
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x407757
mov edx, dword [ebp + 8]
add edx, 0xfffffff4
push edx
call fcn.0041121b
add esp, 4
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
lea ecx, [ebp - 0x58]
call fcn.00406660
mov eax, dword [ebp + 8]
lea ecx, [eax - 0xc]
cmp ecx, 0x4362b8
je 0x4077a2
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4077a2
mov edx, dword [ebp + 8]
add edx, 0xfffffff4
push edx
call fcn.0041121b
add esp, 4
mov eax, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18