Function at 0x4049d0
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 0x42a9b9
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x433080]
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 0x42f504
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x42f504
mov ebx, eax
call fcn.00401440
mov eax, dword [0x4342c8]
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.00405c80
movzx esi, al
cmp esi, edi
je 0x404d9d
cmp dword [ebp - 0x248], 3
jne 0x404d9d
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.00404e00
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 0x404d10
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 0x404b4a
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.00405b00
lea esi, [ebp + 8]
call fcn.00401370
jmp 0x404dd3
push 4
lea edx, [ebp + 0xc]
push edx
push 5
push ebx
call esi
test eax, eax
je 0x404b15
push 4
lea eax, [ebp + 0xc]
push eax
push 5
push ebx
call esi
test eax, eax
je 0x404b15
push 4
lea ecx, [ebp + 0xc]
push ecx
push 6
push ebx
mov dword [ebp + 0xc], edi
call esi
test eax, eax
je 0x404b15
push 4
lea edx, [ebp + 0xc]
push edx
push 6
push ebx
call esi
mov esi, eax
cmp esi, edi
je 0x404b15
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 0x404d09
push edi
cmp dword [ebp + 0x10], edi
je 0x404bc7
mov edx, dword [ebp - 0x220]
push edi
push edi
push edi
push edi
push edx
jmp 0x404bd6
mov ecx, dword [ebp - 0x220]
push 0x44000000
push edi
push edi
push edi
push ecx
push 0x42f4f0
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
test edi, edi
jne 0x404bf3
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x404cfc
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov esi, eax
test esi, esi
jne 0x404c13
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x404cf5
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 0x404cf5
mov eax, dword [ebp - 0x228]
cmp eax, 0xc8
je 0x404c54
cmp eax, 0x130
je 0x404c54
xor esi, esi
jmp 0x404cf5
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x21a]
push edx
mov word [ebp - 0x21c], cx
call fcn.0040fec0
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 0x404cdb
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404ca2
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.0041dc80
mov ecx, dword [ebp - 0x284]
add esp, 0x10
or ecx, dword [ebp - 0x280]
je 0x404cf0
mov eax, dword [ebp - 0x234]
push edi
call fcn.00404920
mov esi, eax
add esp, 4
test esi, esi
je 0x404cf5
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, 0x4342b8
je 0x404d43
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x404d43
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff4
push edx
call fcn.0040fbab
add esp, 4
mov eax, dword [ebp - 0x224]
lea ecx, [eax - 0xc]
cmp ecx, 0x4342b8
je 0x404d67
lea edi, [eax - 0xc]
push edi
call ebx
test eax, eax
jg 0x404d67
push edi
call fcn.0040fbab
add esp, 4
lea ecx, [ebp - 0x27c]
call fcn.00405b00
mov eax, dword [ebp + 8]
lea edx, [eax - 0xc]
cmp edx, 0x4342b8
je 0x404d99
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x404d99
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
push eax
call fcn.0040fbab
add esp, 4
mov eax, esi
jmp 0x404dd5
lea ecx, [ebp - 0x27c]
call fcn.00405b00
mov eax, dword [ebp + 8]
lea ecx, [eax - 0xc]
cmp ecx, 0x4342b8
je 0x404dd3
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x404dd3
mov edx, dword [ebp + 8]
add edx, 0xfffffff4
push edx
call fcn.0040fbab
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.0040f8f6
mov esp, ebp
pop ebp
ret