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 0x42c1d9
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x435090]
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 0x4306e0
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x4306e0
mov ebx, eax
call fcn.00402230
mov eax, dword [0x4362b4]
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.00406b60
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.00401870
lea edx, [ebp - 0x268]
push edx
lea eax, [ebp - 0x21c]
push eax
lea edx, [ebp - 0x264]
mov byte [ebp - 4], 2
call fcn.004054f0
push edi
push edi
push edi
push edi
mov byte [ebp - 4], 3
push 0x43091c
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, 0x4362a4
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.004115de
add esp, 4
mov eax, dword [ebp - 0x220]
lea ecx, [eax - 0xc]
cmp ecx, 0x4362a4
je 0x40526b
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x40526b
push esi
call fcn.004115de
add esp, 4
lea ecx, [ebp - 0x280]
call fcn.004069e0
mov eax, dword [ebp + 8]
lea edx, [eax - 0xc]
cmp edx, 0x4362a4
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.00402160
lea esi, [ebp - 0x220]
call fcn.00402160
lea ecx, [ebp - 0x280]
call fcn.004069e0
lea esi, [ebp + 8]
call fcn.00402160
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 0x430938
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.00411db0
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 0x41c57e
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.00402160
lea esi, [ebp - 0x220]
call fcn.00402160
lea ecx, [ebp - 0x280]
call fcn.004069e0
lea esi, [ebp + 8]
call fcn.00402160
mov eax, ebx
jmp 0x4054c9
lea ecx, [ebp - 0x280]
call fcn.004069e0
mov eax, dword [ebp + 8]
lea ecx, [eax - 0xc]
cmp ecx, 0x4362a4
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.004115de
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.00411016
mov esp, ebp
pop ebp
ret