Function at 0x404b00
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 0x42b7c9
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 - 0x23c], esi
xor edi, edi
push 0x4305d8
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x4305d8
mov ebx, eax
call fcn.00401440
mov eax, dword [0x4362c8]
mov dword [ebp - method.CUrlParser.virtual_0], vtable.CUrlParser.0
mov dword [ebp - 0x27c], eax
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], edi
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x254], edi
mov dword [ebp - 0x248], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x284]
push ecx
mov byte [ebp - 4], 1
call fcn.00406a30
movzx ebx, al
cmp ebx, edi
je 0x404ec1
cmp dword [ebp - 0x250], 3
jne 0x404ec1
lea ecx, [ebp - 0x278]
lea eax, [ebp - 0x224]
call fcn.00401000
lea edx, [ebp - 0x26c]
push edx
lea eax, [ebp - 0x220]
push eax
lea edx, [ebp - 0x268]
mov byte [ebp - 4], 2
call fcn.00405470
push edi
push edi
push edi
push edi
mov byte [ebp - 4], 3
push str.HttpDownload
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x238], 4
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x228], eax
cmp eax, edi
jne 0x404cc2
mov eax, dword [ebp - 0x220]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, 0x4362b8
je 0x404c67
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x404c67
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff4
push edx
call fcn.0041176b
add esp, 4
mov eax, dword [ebp - 0x224]
lea ecx, [eax - 0xc]
cmp ecx, 0x4362b8
je 0x404c8b
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x404c8b
push esi
call fcn.0041176b
add esp, 4
lea ecx, [ebp - 0x284]
call fcn.004068b0
mov eax, dword [ebp + 8]
lea edx, [eax - 0xc]
cmp edx, 0x4362b8
je 0x404ef7
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x404ef7
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
push eax
jmp 0x404eef
mov ecx, dword [ebp + 0xc]
push ecx
mov esi, eax
call fcn.00404a80
add esp, 4
mov edx, esi
test eax, eax
jne 0x404d0b
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea esi, [ebp - 0x220]
call fcn.00401370
lea esi, [ebp - 0x224]
call fcn.00401370
lea ecx, [ebp - 0x284]
call fcn.004068b0
lea esi, [ebp + 8]
call fcn.00401370
jmp 0x404ef7
mov eax, dword [ebp - 0x24c]
mov ecx, dword [ebp - 0x224]
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 - 0x234], eax
cmp eax, edi
je 0x404e87
push edi
cmp dword [ebp + 0x10], edi
je 0x404d47
mov ecx, dword [ebp - 0x220]
push edi
push edi
push edi
push edi
push ecx
jmp 0x404d56
mov edx, dword [ebp - 0x220]
push 0x44000000
push edi
push edi
push edi
push edx
push 0x430538
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
cmp esi, edi
jne 0x404d73
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x404e7a
push edi
push edi
push edi
push edi
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov ebx, eax
cmp ebx, edi
jne 0x404d8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x404e73
push edi
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x22c]
push ecx
push 0x20000013
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov ebx, eax
cmp ebx, edi
je 0x404e73
mov eax, dword [ebp - 0x22c]
cmp eax, 0xc8
je 0x404dcf
cmp eax, 0x130
je 0x404dcf
xor ebx, ebx
jmp 0x404e73
push 0x206
lea eax, [ebp - 0x21a]
xor edx, edx
push edi
push eax
mov word [ebp - 0x21c], dx
call fcn.00411a80
add esp, 0xc
push edi
lea ecx, [ebp - 0x230]
push ecx
lea edx, [ebp - 0x21c]
push edx
push 5
push esi
mov dword [ebp - 0x230], 0x208
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
cmp eax, edi
je 0x404e59
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x404e20
lea ecx, [ebp - 0x244]
push ecx
sub eax, edx
sar eax, 1
push str._I64d
push eax
lea edx, [ebp - 0x21c]
push edx
call fcn.0041fa0b
mov eax, dword [ebp - 0x244]
add esp, 0x10
or eax, dword [ebp - 0x240]
je 0x404e6e
mov eax, dword [ebp - 0x23c]
push esi
call fcn.004049d0
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x404e73
mov ebx, 1
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea esi, [ebp - 0x220]
call fcn.00401370
lea esi, [ebp - 0x224]
call fcn.00401370
lea ecx, [ebp - 0x284]
call fcn.004068b0
lea esi, [ebp + 8]
call fcn.00401370
mov eax, ebx
jmp 0x404ef9
lea ecx, [ebp - 0x284]
call fcn.004068b0
mov eax, dword [ebp + 8]
lea ecx, [eax - 0xc]
cmp ecx, 0x4362b8
je 0x404ef7
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x404ef7
mov edx, dword [ebp + 8]
add edx, 0xfffffff4
push edx
call fcn.0041176b
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.004114b6
mov esp, ebp
pop ebp
ret