Function at 0x4077f0
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 0x42bcf0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x435080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [0x4362c8]
mov dword [ebp - 0x54], vtable.CUrlParser.0
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], eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], eax
push esi
lea eax, [edi + 0x14]
mov ebx, 2
push eax
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x54]
push edx
call fcn.00406a30
movzx eax, al
cmp eax, esi
je 0x407b7d
mov eax, dword [ebp - 0x20]
cmp eax, 3
je 0x40788b
cmp eax, 4
jne 0x407b7d
mov dword [edi + 0x18], ebx
cmp dword [ebp + 0x14], esi
jne 0x4078a3
cmp dword [edi + 4], esi
je 0x4078a9
cmp dword [edi + 8], esi
jne 0x4079ef
jmp 0x4078a9
push edi
call fcn.00407480
mov esi, dword [ebp - 0x48]
cmp dword [esi - 0xc], 0
lea eax, [esi - 0xc]
jl 0x4078c1
push eax
mov dword [ebp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4078e3
mov eax, dword [0x4362c8]
push esi
mov dword [ebp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
mov ebx, eax
lea esi, [ebp + 0x14]
call fcn.00401440
mov esi, dword [ebp + 0x14]
mov ebx, 2
push 0
push 0
push 0
push 0
push 0x43090c
mov byte [ebp - 4], 3
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [edi + 4], eax
test eax, eax
je 0x407932
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00407760
test eax, eax
je 0x407932
mov edx, dword [ebp - 0x1c]
mov eax, dword [edi + 4]
push 0
push 0
push 3
push 0
push 0
push edx
push esi
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [edi + 8], eax
test eax, eax
jne 0x4079cb
push edi
call fcn.00407480
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [esi - 0xc]
cmp ecx, 0x4362b8
je 0x40795c
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x40795c
push esi
call fcn.0041176b
add esp, 4
lea ecx, [ebp - 0x54]
call fcn.004068b0
mov eax, dword [ebp + 8]
lea edx, [eax - 0xc]
cmp edx, 0x4362b8
je 0x40798b
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x40798b
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
push eax
call fcn.0041176b
add esp, 4
mov eax, dword [ebp + 0xc]
lea ecx, [eax - 0xc]
cmp ecx, 0x4362b8
je 0x4079b2
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4079b2
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.0041176b
add esp, 4
mov eax, 3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
lea eax, [esi - 0xc]
mov byte [ebp - 4], bl
cmp eax, 0x4362b8
je 0x4079ef
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4079ef
push esi
call fcn.0041176b
add esp, 4
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp + 0x14]
push edx
lea edx, [ebp - 0x38]
xor esi, esi
call fcn.00405470
cmp dword [ebp + 0x18], esi
jne 0x407a0b
mov esi, 0x44000000
mov ebx, 4
cmp dword [ebp - 0x20], ebx
jne 0x407a1b
or esi, 0x800000
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov edx, dword [edi + 8]
push 0
push esi
push 0
push 0
push 0
push eax
push ecx
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [edi + 0xc], eax
test eax, eax
jne 0x407a78
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp + 0x14]
lea ecx, [eax - 0xc]
cmp ecx, 0x4362b8
je 0x407aed
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x407aed
mov edx, dword [ebp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.0041176b
add esp, 4
jmp 0x407aed
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x407aa3
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [eax - 0x2ee2]
neg ebx
sbb ebx, ebx
and ebx, 0xfffffffd
add ebx, 7
jmp 0x407ae5
mov edx, dword [edi + 0xc]
push 0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 0x10]
push ecx
push 0x20000013
push edx
mov dword [ebp + 0x10], 0
mov dword [ebp - 0x14], ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x407acf
lea ebx, [eax + 6]
jmp 0x407ae5
mov eax, dword [ebp + 0x10]
cmp eax, 0xc8
je 0x407b47
cmp eax, 0x130
je 0x407b47
mov ebx, 5
lea esi, [ebp + 0x14]
call fcn.00401370
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
lea ecx, [ebp - 0x54]
call fcn.004068b0
mov eax, dword [ebp + 8]
lea ecx, [eax - 0xc]
cmp ecx, 0x4362b8
je 0x407b29
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x407b29
mov edx, dword [ebp + 8]
add edx, 0xfffffff4
push edx
call fcn.0041176b
add esp, 4
mov eax, dword [ebp + 0xc]
lea ecx, [eax - 0xc]
cmp ecx, 0x4362b8
je 0x407bd9
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
jmp 0x407bc6
lea esi, [ebp + 0x14]
call fcn.00401370
lea ecx, [ebp - 0x54]
call fcn.004068b0
lea esi, [ebp + 8]
call fcn.00401370
lea esi, [ebp + 0xc]
call fcn.00401370
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
lea ecx, [ebp - 0x54]
call fcn.004068b0
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, 0x4362b8
je 0x407bb2
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x407bb2
mov edx, dword [ebp + 8]
add edx, 0xfffffff4
push edx
call fcn.0041176b
add esp, 4
mov eax, dword [ebp + 0xc]
lea ecx, [eax - 0xc]
cmp ecx, 0x4362b8
je 0x407bd9
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x407bd9
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.0041176b
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14