Function at 0x4050e0
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 0x42c299
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x435084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x238], esi
xor edi, edi
push 0x4306dc
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x4306dc
mov ebx, eax
call fcn.004028d0
mov eax, dword [0x4362dc]
mov dword [ebp - method.CUrlParser.virtual_0], vtable.CUrlParser.0
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x254], edi
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x244], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x280]
push ecx
mov byte [ebp - 4], 1
call fcn.00406fd0
movzx ebx, al
cmp ebx, edi
je 0x405491
cmp dword [ebp - 0x24c], 3
jne 0x405491
lea ecx, [ebp - 0x274]
lea eax, [ebp - 0x220]
call fcn.00401f10
lea edx, [ebp - 0x268]
push edx
lea eax, [ebp - 0x21c]
push eax
lea edx, [ebp - 0x264]
mov byte [ebp - 4], 2
call fcn.00405950
push edi
push edi
push edi
push edi
mov byte [ebp - 4], 3
push 0x430918
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x234], 4
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x224], eax
cmp eax, edi
jne 0x4052a2
mov eax, dword [ebp - 0x21c]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, 0x4362cc
je 0x405247
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x405247
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff4
push edx
call fcn.00411ad6
add esp, 4
mov eax, dword [ebp - 0x220]
lea ecx, [eax - 0xc]
cmp ecx, 0x4362cc
je 0x40526b
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x40526b
push esi
call fcn.00411ad6
add esp, 4
lea ecx, [ebp - 0x280]
call fcn.00406e50
mov eax, dword [ebp + 8]
lea edx, [eax - 0xc]
cmp edx, 0x4362cc
je 0x4054c7
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4054c7
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
push eax
jmp 0x4054bf
mov ecx, dword [ebp + 0xc]
push ecx
mov esi, eax
call fcn.00405060
add esp, 4
mov edx, esi
test eax, eax
jne 0x4052eb
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea esi, [ebp - 0x21c]
call fcn.00402800
lea esi, [ebp - 0x220]
call fcn.00402800
lea ecx, [ebp - 0x280]
call fcn.00406e50
lea esi, [ebp + 8]
call fcn.00402800
jmp 0x4054c7
mov eax, dword [ebp - 0x248]
mov ecx, dword [ebp - 0x220]
push edi
push edi
push 3
push edi
push edi
push eax
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x230], eax
cmp eax, edi
je 0x405457
push edi
cmp dword [ebp + 0x10], edi
je 0x405327
mov ecx, dword [ebp - 0x21c]
push edi
push edi
push edi
push edi
push ecx
jmp 0x405336
mov edx, dword [ebp - 0x21c]
push 0x44000000
push edi
push edi
push edi
push edx
push 0x430934
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
cmp esi, edi
je 0x40544a
push edi
push edi
push edi
push edi
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov ebx, eax
cmp ebx, edi
je 0x405443
push edi
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x228]
push ecx
push 0x20000013
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov ebx, eax
cmp ebx, edi
je 0x405443
mov eax, dword [ebp - 0x228]
cmp eax, 0xc8
je 0x4053a1
cmp eax, 0x130
je 0x4053a1
xor ebx, ebx
jmp 0x405443
push 0x206
lea eax, [ebp - 0x216]
xor edx, edx
push edi
push eax
mov word [ebp - 0x218], dx
call fcn.00415d50
add esp, 0xc
push edi
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x218]
push edx
push 5
push esi
mov dword [ebp - 0x22c], 0x208
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
cmp eax, edi
je 0x405429
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4053f0
lea ecx, [ebp - 0x240]
push ecx
sub eax, edx
sar eax, 1
push str._I64d
push eax
lea edx, [ebp - 0x218]
push edx
call fcn.0041c5b7
mov eax, dword [ebp - 0x240]
add esp, 0x10
or eax, dword [ebp - 0x23c]
je 0x40543e
mov eax, dword [ebp - 0x238]
push esi
call fcn.00404fb0
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x405443
mov ebx, 1
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea esi, [ebp - 0x21c]
call fcn.00402800
lea esi, [ebp - 0x220]
call fcn.00402800
lea ecx, [ebp - 0x280]
call fcn.00406e50
lea esi, [ebp + 8]
call fcn.00402800
mov eax, ebx
jmp 0x4054c9
lea ecx, [ebp - 0x280]
call fcn.00406e50
mov eax, dword [ebp + 8]
lea ecx, [eax - 0xc]
cmp ecx, 0x4362cc
je 0x4054c7
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4054c7
mov edx, dword [ebp + 8]
add edx, 0xfffffff4
push edx
call fcn.00411ad6
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410f94
mov esp, ebp
pop ebp
ret