Function at 0x4b3c17
Capabilities:
Connect to http server
Get http content length
Send data
Send http request

Disassembly:
mov eax, 0x4c64f8
call fcn.004c2540
mov eax, 0x24d0
call fcn.004c2440
mov eax, dword [0x4e7384]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, esi
mov dword [ebp - 0x10], eax
call fcn.004b2fd1
mov ebx, esi
call fcn.004b2f3d
mov eax, dword [esi + 0x34]
xor ebx, ebx
cmp eax, ebx
jne 0x4b3d56
lea eax, [esi + 0x44]
mov edi, 0x10000000
push edi
mov dword [esi + 0x48], esi
push ebx
lea esi, [ebp - 0x2498]
mov dword [ebp - 0x24a4], eax
mov dword [eax], 2
call fcn.00417677
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x20]
push edi
push eax
lea eax, [ebp - 0x2498]
call fcn.004176d8
test eax, eax
je 0x4b4222
push ebx
push ebx
push 3
push dword [ebp - 0x2474]
push dword [ebp - 0x247c]
push dword [ebp - 0x2480]
push dword [ebp - 0x2488]
push dword [esi + 0x2c]
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, ebx
mov dword [esi + 0x30], eax
je 0x4b4222
lea eax, [ebp - 0x24a0]
push eax
lea eax, [ebp - 0x2498]
call fcn.00417740
mov edi, eax
lea eax, [ebp - 0x249c]
push eax
lea eax, [ebp - 0x2498]
call fcn.004177a4
push dword [ebp - 0x24a4]
mov edi, dword [edi]
mov eax, dword [eax]
push 0x84400200
push ebx
push edi
push ebx
push eax
push 0x4cfd8c
push dword [esi + 0x30]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 0x249c]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x4b3d24
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x24a0]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x4b3d3b
push eax
call fcn.004013aa
mov eax, dword [esi + 0x34]
cmp eax, ebx
mov esi, dword [ebp + 8]
jne 0x4b3d56
push dword [esi + 0x30]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi + 0x30], ebx
jmp 0x4b4222
cmp dword [ebp + 0xc], ebx
jne 0x4b3dd6
push 0x4d6a74
lea edi, [ebp + 8]
call fcn.00402e10
mov edi, dword [ebp + 8]
mov eax, dword [edi - 8]
push ebx
push ebx
push eax
push edi
push dword [esi + 0x34]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x4b3dac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4b3dbd
push dword [esi + 0x34]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [esi + 0x30]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
lea eax, [edi - 0xc]
jmp 0x4b3f44
push ebx
push 1
push 0x465
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
lea eax, [edi - 0xc]
cmp eax, dword [0x4e9154]
je 0x4b3dce
push eax
call fcn.004013aa
xor eax, eax
inc eax
jmp 0x4b4224
lea ecx, [ebp - 0x24c4]
push ecx
lea ecx, [ebp - 0x24c0]
push ecx
lea ecx, [ebp - 0x24bc]
push ecx
push 0x20000005
push eax
mov dword [ebp - 0x24bc], ebx
mov dword [ebp - 0x24c0], 4
mov dword [ebp - 0x24c4], ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
cmp eax, ebx
je 0x4b4200
mov eax, dword [ebp - 0x24bc]
cmp eax, ebx
je 0x4b4200
mov dword [esi + 0x54], eax
mov edi, dword [0x4e9150]
mov dword [ebp - 0x24ac], edi
add esi, 0x50
push 0x5c
mov dword [ebp - 4], ebx
mov dword [ebp + 0xc], esi
call fcn.00402f30
cmp eax, ebx
jl 0x4b3e7f
lea ecx, [ebp - 0x24a4]
push ecx
inc eax
mov ecx, esi
call fcn.00408d64
mov edi, eax
lea eax, [ebp - 0x24ac]
call fcn.00402e80
mov eax, dword [ebp - 0x24a4]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x4b3e79
push eax
call fcn.004013aa
mov edi, dword [ebp - 0x24ac]
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x60]
cmp eax, ebx
jbe 0x4b3ec2
cmp dword [edi - 8], ebx
je 0x4b3ec2
push 0x1400000
push dword [esi + 0x54]
push ebx
push eax
push edi
call fcn.004b2a03
add esp, 0x14
test eax, eax
jne 0x4b3ec2
push dword [esi + 0x34]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi + 0x34], ebx
push 0xffffffffffffffff
add esi, 0x3c
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4b3da4
push str..tmp
push dword [ebp + 0xc]
lea eax, [ebp - 0x249c]
push eax
call fcn.0040302d
lea ecx, [esi + 0x4c]
mov edi, eax
mov eax, ecx
mov dword [ebp - 0x24a4], ecx
call fcn.00402e80
mov eax, dword [ebp - 0x249c]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x4b3eff
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x24a4]
mov eax, dword [eax]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4b3f5b
push dword [esi + 0x34]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi + 0x34], ebx
push edi
add esi, 0x3c
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [ebp - 0x24ac]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x4b4222
push eax
call fcn.004013aa
jmp 0x4b4222
push ebx
push ebx
push dword [esi + 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4e9150]
mov dword [ebp - 0x24dc], eax
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x24dc]
mov byte [ebp - 4], 1
call fcn.00402e80
mov eax, dword [esi + 0x54]
add dword [0x4ebd18], eax
mov dword [ebp - 0x24cc], eax
lea edi, [ebp - 0x24dc]
adc dword [0x4ebd1c], ebx
mov eax, 0x4ebd08
mov dword [ebp - 0x24c8], ebx
call fcn.004b4d04
mov edi, dword [esi + 0x84]
push 3
pop eax
cmp edi, eax
mov dword [ebp + 0xc], edi
jge 0x4b3fe9
sub eax, edi
mov dword [ebp + 0xc], eax
mov edi, esi
call fcn.004b2e1e
dec dword [ebp + 0xc]
jne 0x4b3fd2
mov eax, dword [esi + 0x84]
mov dword [ebp + 0xc], eax
mov edi, eax
mov eax, dword [esi + 0x54]
shr eax, 0xc
cmp eax, edi
jge 0x4b4003
xor ecx, ecx
inc ecx
cmp eax, ecx
mov dword [ebp + 0xc], ecx
jl 0x4b4000
mov dword [ebp + 0xc], eax
mov edi, dword [ebp + 0xc]
cdq
idiv edi
xor ecx, ecx
mov dword [ebp - 0x24a8], ebx
mov dword [ebp - 0x24a0], ebx
cmp edx, ebx
setne cl
add ecx, eax
cmp edi, ebx
mov dword [ebp - 0x24b8], ecx
jle 0x4b40df
lea eax, [edi - 1]
cmp dword [ebp - 0x24a0], eax
jne 0x4b403f
mov eax, dword [esi + 0x54]
sub eax, dword [ebp - 0x24a8]
jmp 0x4b4048
mov eax, dword [ebp - 0x24b8]
shl eax, 0xc
push 0x1c
mov dword [ebp - 0x249c], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x4b4074
mov ecx, dword [ebp - 0x24a8]
push ebx
push dword [ebp - 0x249c]
call fcn.004b13c6
mov dword [ebp - 0x24b4], eax
jmp 0x4b407c
mov dword [ebp - 0x24b4], ebx
mov eax, ebx
cmp eax, ebx
mov dword [ebp - 0x24b0], eax
je 0x4b408b
mov ecx, dword [eax]
push eax
call dword [ecx]
lea eax, [ebp - 0x24b0]
push eax
lea ecx, [esi + 0x90]
mov byte [ebp - 4], 2
call fcn.004b4bd7
mov eax, dword [ebp - 0x24b4]
cmp eax, ebx
mov byte [ebp - 4], 1
je 0x4b40bb
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [ebp - 0x24b4]
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [ebp - 0x249c]
add dword [ebp - 0x24a8], eax
inc dword [ebp - 0x24a0]
cmp dword [ebp - 0x24a0], edi
jl 0x4b4029
lea ecx, [esi + 0x80]
mov dword [esi + 0x44], 1
cmp dword [ecx + 4], ebx
mov dword [ebp - 0x24a0], ecx
ja 0x4b4101
push 0x80070057
call fcn.004010ca
cmp edi, ebx
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [esi + 0x48], eax
mov dword [ebp - 0x249c], ebx
jle 0x4b41c2
lea eax, [esi + 0x90]
mov dword [ebp - 0x24a8], eax
jmp 0x4b412a
mov ecx, dword [ebp - 0x24a0]
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x24b0], eax
mov eax, dword [ebp - 0x24a4]
mov eax, dword [eax]
mov dword [ebp - 0x24b8], eax
mov eax, dword [ebp - 0x249c]
call fcn.0046cd11
mov edi, dword [esi + 0x2c]
mov ecx, dword [ebp - 0x24b0]
mov esi, dword [eax]
push ebx
push ebx
mov ebx, dword [ebp - 0x24b8]
call fcn.004b185a
mov esi, dword [ebp - 0x249c]
xor ebx, ebx
cmp esi, ebx
jne 0x4b4181
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x34]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x24b0], eax
jmp 0x4b4187
mov dword [ebp - 0x24b0], ebx
mov ecx, dword [ebp - 0x24a8]
mov eax, esi
call fcn.0046cd11
mov edi, dword [eax]
mov ecx, dword [ebp - 0x24a0]
mov eax, esi
call fcn.0046cd11
mov eax, dword [eax]
push ebx
mov edx, edi
call fcn.004b18f0
inc esi
xor ebx, ebx
cmp esi, dword [ebp + 0xc]
mov dword [ebp - 0x249c], esi
mov esi, dword [ebp + 8]
jl 0x4b4124
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
call fcn.004b3003
mov eax, dword [ebp - 0x24dc]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x4b41e4
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x24ac]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x4b41fb
push eax
call fcn.004013aa
push 2
pop eax
jmp 0x4b4224
push dword [esi + 0x34]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push dword [esi + 0x30]
call edi
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
push 0xfffffffffffffffc
add esi, 0x3c
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004c2215
leave
ret 8