Function at 0x407410
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 0x42c878
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 0x407737
mov esi, dword [ebp + 0x10]
cmp dword [esi], ebx
je 0x407737
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.004067b0
movzx eax, al
cmp eax, ebx
je 0x4076ec
cmp dword [ebp - 0x24], 3
jne 0x4076ec
cmp dword [ebp + 0x18], ebx
jne 0x4074c5
cmp dword [edi + 4], ebx
je 0x4074ce
cmp dword [edi + 8], ebx
jne 0x4075c7
jmp 0x4074ce
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
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 0x40750e
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea ecx, [ebp + 0x14]
push ecx
push 2
push eax
call esi
test eax, eax
jne 0x40753e
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea esi, [ebp + 0x18]
call fcn.00401370
lea ecx, [ebp - 0x58]
call fcn.00406630
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 ecx, dword [edi + 4]
push 4
lea eax, [ebp + 0x14]
push eax
push 5
push ecx
call esi
test eax, eax
je 0x407504
mov ecx, dword [edi + 4]
push 4
lea eax, [ebp + 0x14]
push eax
push 5
push ecx
call esi
test eax, eax
je 0x407504
mov ecx, dword [edi + 4]
push 4
lea eax, [ebp + 0x14]
push eax
push 6
push ecx
mov dword [ebp + 0x14], ebx
call esi
test eax, eax
je 0x407504
mov ecx, dword [edi + 4]
push 4
lea eax, [ebp + 0x14]
push eax
push 6
push ecx
call esi
mov edx, dword [edi + 4]
cmp eax, ebx
je 0x407507
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x18]
push ebx
push ebx
push 3
push ebx
push ebx
push eax
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [edi + 8], eax
cmp eax, ebx
jne 0x4075b5
mov eax, dword [edi + 4]
push eax
jmp 0x407508
lea esi, [ebp + 0x18]
mov dword [edi + 0x14], 1
call fcn.00401370
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x10]
push edx
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 0x4075fb
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi + 8]
push ebx
push ebx
push ebx
push ebx
push eax
push 0x4304cc
push ecx
jmp 0x407610
mov edx, dword [ebp - 0x10]
mov eax, dword [edi + 8]
push 0x44000000
push ebx
push ebx
push ebx
push edx
push 0x4304cc
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [edi + 0xc], eax
cmp eax, ebx
jne 0x40762d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 4
jmp 0x4076b6
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x407652
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x2ee2
sete bl
lea ebx, [ebx + ebx + 4]
jmp 0x4076b6
mov eax, dword [edi + 0xc]
push ebx
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0x20000013
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x407675
mov ebx, 5
jmp 0x4076b6
mov eax, dword [ebp - 0x14]
cmp eax, 0xc8
je 0x407686
cmp eax, 0x130
jne 0x40766e
mov ecx, dword [esi]
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x18]
push edx
mov dword [ebp + 0x18], ecx
mov ecx, dword [edi + 0xc]
push eax
push ecx
call fcn.004072f0
test eax, eax
mov eax, dword [ebp + 0x18]
jne 0x4076b4
cmp eax, dword [esi]
mov edx, dword [ebp + 0x10]
sbb ebx, ebx
and ebx, 0xfffffffe
add ebx, 7
mov dword [edx], eax
jmp 0x4076b6
mov dword [esi], eax
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
lea esi, [ebp - 0x10]
call fcn.00401370
lea ecx, [ebp - 0x58]
call fcn.00406630
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.00406630
mov eax, dword [ebp + 8]
lea ecx, [eax - 0xc]
cmp ecx, 0x4362b8
je 0x40771f
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40771f
mov edx, dword [ebp + 8]
add edx, 0xfffffff4
push edx
call fcn.004111db
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.00406630
mov eax, dword [ebp + 8]
lea ecx, [eax - 0xc]
cmp ecx, 0x4362b8
je 0x40776a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40776a
mov edx, dword [ebp + 8]
add edx, 0xfffffff4
push edx
call fcn.004111db
add esp, 4
mov eax, 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18