Function at 0x407930
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 0x42c5d0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x435090]
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 [0x4362b4]
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.00406b60
movzx eax, al
cmp eax, esi
je 0x407cb7
mov eax, dword [ebp - 0x20]
cmp eax, 3
je 0x4079cb
cmp eax, 4
jne 0x407cb7
mov dword [edi + 0x18], ebx
cmp dword [ebp + 0x14], esi
jne 0x4079e3
cmp dword [edi + 4], esi
je 0x4079e9
cmp dword [edi + 8], esi
jne 0x407b2f
jmp 0x4079e9
push edi
call fcn.004075c0
mov esi, dword [ebp - 0x48]
cmp dword [esi - 0xc], 0
lea eax, [esi - 0xc]
jl 0x407a01
push eax
mov dword [ebp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x407a23
mov eax, dword [0x4362b4]
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.00402230
mov esi, dword [ebp + 0x14]
mov ebx, 2
push 0
push 0
push 0
push 0
push 0x430bec
mov byte [ebp - 4], 3
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [edi + 4], eax
test eax, eax
je 0x407a72
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004078a0
test eax, eax
je 0x407a72
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 0x407b0b
push edi
call fcn.004075c0
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [esi - 0xc]
cmp ecx, 0x4362a4
je 0x407a9c
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x407a9c
push esi
call fcn.004115de
add esp, 4
lea ecx, [ebp - 0x54]
call fcn.004069e0
mov eax, dword [ebp + 8]
lea edx, [eax - 0xc]
cmp edx, 0x4362a4
je 0x407acb
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x407acb
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
push eax
call fcn.004115de
add esp, 4
mov eax, dword [ebp + 0xc]
lea ecx, [eax - 0xc]
cmp ecx, 0x4362a4
je 0x407af2
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x407af2
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.004115de
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, 0x4362a4
je 0x407b2f
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x407b2f
push esi
call fcn.004115de
add esp, 4
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp + 0x14]
push edx
lea edx, [ebp - 0x38]
xor esi, esi
call fcn.004054f0
cmp dword [ebp + 0x18], esi
jne 0x407b4b
mov esi, 0x44000000
mov ebx, 4
cmp dword [ebp - 0x20], ebx
jne 0x407b5b
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 0x407bb2
mov eax, dword [ebp + 0x14]
lea ecx, [eax - 0xc]
cmp ecx, 0x4362a4
je 0x407c27
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x407c27
mov edx, dword [ebp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004115de
add esp, 4
jmp 0x407c27
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x407bdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [eax - 0x2ee2]
neg ebx
sbb ebx, ebx
and ebx, 0xfffffffd
add ebx, 7
jmp 0x407c1f
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 0x407c09
lea ebx, [eax + 6]
jmp 0x407c1f
mov eax, dword [ebp + 0x10]
cmp eax, 0xc8
je 0x407c81
cmp eax, 0x130
je 0x407c81
mov ebx, 5
lea esi, [ebp + 0x14]
call fcn.00402160
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
lea ecx, [ebp - 0x54]
call fcn.004069e0
mov eax, dword [ebp + 8]
lea ecx, [eax - 0xc]
cmp ecx, 0x4362a4
je 0x407c63
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x407c63
mov edx, dword [ebp + 8]
add edx, 0xfffffff4
push edx
call fcn.004115de
add esp, 4
mov eax, dword [ebp + 0xc]
lea ecx, [eax - 0xc]
cmp ecx, 0x4362a4
je 0x407d13
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
jmp 0x407d00
lea esi, [ebp + 0x14]
call fcn.00402160
lea ecx, [ebp - 0x54]
call fcn.004069e0
lea esi, [ebp + 8]
call fcn.00402160
lea esi, [ebp + 0xc]
call fcn.00402160
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.004069e0
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, 0x4362a4
je 0x407cec
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x407cec
mov edx, dword [ebp + 8]
add edx, 0xfffffff4
push edx
call fcn.004115de
add esp, 4
mov eax, dword [ebp + 0xc]
lea ecx, [eax - 0xc]
cmp ecx, 0x4362a4
je 0x407d13
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x407d13
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.004115de
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