Function at 0x407d90
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 0x42c520
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x435084]
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 [0x4362dc]
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.00406fd0
movzx eax, al
cmp eax, esi
je 0x408117
mov eax, dword [ebp - 0x20]
cmp eax, 3
je 0x407e2b
cmp eax, 4
jne 0x408117
mov dword [edi + 0x18], ebx
cmp dword [ebp + 0x14], esi
jne 0x407e43
cmp dword [edi + 4], esi
je 0x407e49
cmp dword [edi + 8], esi
jne 0x407f8f
jmp 0x407e49
push edi
call fcn.00407a20
mov esi, dword [ebp - 0x48]
cmp dword [esi - 0xc], 0
lea eax, [esi - 0xc]
jl 0x407e61
push eax
mov dword [ebp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x407e83
mov eax, dword [0x4362dc]
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.004028d0
mov esi, dword [ebp + 0x14]
mov ebx, 2
push 0
push 0
push 0
push 0
push 0x430be4
mov byte [ebp - 4], 3
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [edi + 4], eax
test eax, eax
je 0x407ed2
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00407d00
test eax, eax
je 0x407ed2
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 0x407f6b
push edi
call fcn.00407a20
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [esi - 0xc]
cmp ecx, 0x4362cc
je 0x407efc
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x407efc
push esi
call fcn.00411ad6
add esp, 4
lea ecx, [ebp - 0x54]
call fcn.00406e50
mov eax, dword [ebp + 8]
lea edx, [eax - 0xc]
cmp edx, 0x4362cc
je 0x407f2b
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x407f2b
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
push eax
call fcn.00411ad6
add esp, 4
mov eax, dword [ebp + 0xc]
lea ecx, [eax - 0xc]
cmp ecx, 0x4362cc
je 0x407f52
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x407f52
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.00411ad6
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, 0x4362cc
je 0x407f8f
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x407f8f
push esi
call fcn.00411ad6
add esp, 4
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp + 0x14]
push edx
lea edx, [ebp - 0x38]
xor esi, esi
call fcn.00405950
cmp dword [ebp + 0x18], esi
jne 0x407fab
mov esi, 0x44000000
mov ebx, 4
cmp dword [ebp - 0x20], ebx
jne 0x407fbb
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 0x408012
mov eax, dword [ebp + 0x14]
lea ecx, [eax - 0xc]
cmp ecx, 0x4362cc
je 0x408087
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x408087
mov edx, dword [ebp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00411ad6
add esp, 4
jmp 0x408087
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x40803d
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [eax - 0x2ee2]
neg ebx
sbb ebx, ebx
and ebx, 0xfffffffd
add ebx, 7
jmp 0x40807f
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 0x408069
lea ebx, [eax + 6]
jmp 0x40807f
mov eax, dword [ebp + 0x10]
cmp eax, 0xc8
je 0x4080e1
cmp eax, 0x130
je 0x4080e1
mov ebx, 5
lea esi, [ebp + 0x14]
call fcn.00402800
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
lea ecx, [ebp - 0x54]
call fcn.00406e50
mov eax, dword [ebp + 8]
lea ecx, [eax - 0xc]
cmp ecx, 0x4362cc
je 0x4080c3
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4080c3
mov edx, dword [ebp + 8]
add edx, 0xfffffff4
push edx
call fcn.00411ad6
add esp, 4
mov eax, dword [ebp + 0xc]
lea ecx, [eax - 0xc]
cmp ecx, 0x4362cc
je 0x408173
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
jmp 0x408160
lea esi, [ebp + 0x14]
call fcn.00402800
lea ecx, [ebp - 0x54]
call fcn.00406e50
lea esi, [ebp + 8]
call fcn.00402800
lea esi, [ebp + 0xc]
call fcn.00402800
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.00406e50
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, 0x4362cc
je 0x40814c
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x40814c
mov edx, dword [ebp + 8]
add edx, 0xfffffff4
push edx
call fcn.00411ad6
add esp, 4
mov eax, dword [ebp + 0xc]
lea ecx, [eax - 0xc]
cmp ecx, 0x4362cc
je 0x408173
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x408173
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.00411ad6
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