Function at 0x4048a0
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 0x42c369
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x435080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x234], esi
xor edi, edi
push 0x4304ec
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x4304ec
mov ebx, eax
call fcn.00401440
mov eax, dword [0x4362c8]
mov dword [ebp - method.CUrlParser.virtual_0], vtable.CUrlParser.0
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], eax
mov dword [ebp - 0x254], edi
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x240], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x27c]
push ecx
mov byte [ebp - 4], 1
call fcn.004067e0
movzx esi, al
cmp esi, edi
je 0x404c6d
cmp dword [ebp - 0x248], 3
jne 0x404c6d
lea ecx, [ebp - 0x270]
lea eax, [ebp - 0x224]
call fcn.00401000
lea edx, [ebp - 0x264]
push edx
lea eax, [ebp - 0x220]
push eax
lea edx, [ebp - 0x260]
mov byte [ebp - 4], 2
call fcn.00404cd0
push edi
push edi
push edi
push edi
mov byte [ebp - 4], 3
push str.HttpDownload
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x238], 4
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
cmp ebx, edi
je 0x404be0
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea ecx, [ebp + 0xc]
push ecx
push 2
push ebx
call esi
test eax, eax
jne 0x404a1a
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea esi, [ebp - 0x220]
call fcn.00401370
lea esi, [ebp - 0x224]
call fcn.00401370
lea ecx, [ebp - 0x27c]
call fcn.00406660
lea esi, [ebp + 8]
call fcn.00401370
jmp 0x404ca3
push 4
lea edx, [ebp + 0xc]
push edx
push 5
push ebx
call esi
test eax, eax
je 0x4049e5
push 4
lea eax, [ebp + 0xc]
push eax
push 5
push ebx
call esi
test eax, eax
je 0x4049e5
push 4
lea ecx, [ebp + 0xc]
push ecx
push 6
push ebx
mov dword [ebp + 0xc], edi
call esi
test eax, eax
je 0x4049e5
push 4
lea edx, [ebp + 0xc]
push edx
push 6
push ebx
call esi
mov esi, eax
cmp esi, edi
je 0x4049e5
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 0x224]
push edi
push edi
push 3
push edi
push edi
push eax
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x230], eax
cmp eax, edi
je 0x404bd9
push edi
cmp dword [ebp + 0x10], edi
je 0x404a97
mov edx, dword [ebp - 0x220]
push edi
push edi
push edi
push edi
push edx
jmp 0x404aa6
mov ecx, dword [ebp - 0x220]
push 0x44000000
push edi
push edi
push edi
push ecx
push 0x4304d8
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
test edi, edi
jne 0x404ac3
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x404bcc
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov esi, eax
test esi, esi
jne 0x404ae3
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x404bc5
push 0
lea edx, [ebp - 0x238]
push edx
lea eax, [ebp - 0x228]
push eax
push 0x20000013
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov esi, eax
test esi, esi
je 0x404bc5
mov eax, dword [ebp - 0x228]
cmp eax, 0xc8
je 0x404b24
cmp eax, 0x130
je 0x404b24
xor esi, esi
jmp 0x404bc5
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x21a]
push edx
mov word [ebp - 0x21c], cx
call fcn.00411530
add esp, 0xc
push 0
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x21c]
push ecx
push 5
push edi
mov dword [ebp - 0x22c], 0x208
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x404bab
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404b72
sub eax, edx
lea edx, [ebp - 0x284]
push edx
sar eax, 1
push str._I64d
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0041f347
mov ecx, dword [ebp - 0x284]
add esp, 0x10
or ecx, dword [ebp - 0x280]
je 0x404bc0
mov eax, dword [ebp - 0x234]
push edi
call fcn.004047f0
mov esi, eax
add esp, 4
test esi, esi
je 0x404bc5
mov esi, 1
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x230]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x220]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, 0x4362b8
je 0x404c13
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x404c13
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff4
push edx
call fcn.0041121b
add esp, 4
mov eax, dword [ebp - 0x224]
lea ecx, [eax - 0xc]
cmp ecx, 0x4362b8
je 0x404c37
lea edi, [eax - 0xc]
push edi
call ebx
test eax, eax
jg 0x404c37
push edi
call fcn.0041121b
add esp, 4
lea ecx, [ebp - 0x27c]
call fcn.00406660
mov eax, dword [ebp + 8]
lea edx, [eax - 0xc]
cmp edx, 0x4362b8
je 0x404c69
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x404c69
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
push eax
call fcn.0041121b
add esp, 4
mov eax, esi
jmp 0x404ca5
lea ecx, [ebp - 0x27c]
call fcn.00406660
mov eax, dword [ebp + 8]
lea ecx, [eax - 0xc]
cmp ecx, 0x4362b8
je 0x404ca3
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x404ca3
mov edx, dword [ebp + 8]
add edx, 0xfffffff4
push edx
call fcn.0041121b
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 - 0x14]
xor ecx, ebp
call fcn.00410f66
mov esp, ebp
pop ebp
ret