Function at 0x4becd0
Capabilities:
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.004fe1a0
push 0xffffffffffffffff
push 0x51d790
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x34], edx
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x4bf122
mov eax, edi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4bed36
sub eax, esi
sar eax, 1
je 0x4bf122
cmp edx, ebx
je 0x4bf122
mov eax, edx
lea esi, [eax + 2]
jmp 0x4bed60
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4bed60
sub eax, esi
sar eax, 1
je 0x4bf122
push edx
push edi
push str.Download_File___s__to___s_
mov ecx, 0x649e50
call fcn.004918f0
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
push str.__DownLoadWebFile__
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, ebx
jne 0x4bedca
push str.Open_Internet_session_fail__
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c], eax
push 0x5814b0
lea eax, [ebp - 0x3c]
push eax
call fcn.004fd5a3
mov dword [ebp - 0x18], 0x3e8
mov eax, dword [ebp + 0x100c]
cmp eax, ebx
je 0x4bede4
imul eax, eax, 0x3e8
mov dword [ebp - 0x18], eax
push 4
lea ecx, [ebp - 0x18]
push ecx
push 2
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
je 0x4bee15
mov edx, dword [ebp - 0x18]
push edx
push str.Set_connect_time_out_success_:__d
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4bee31
push str.Set_connect_time_out_fail_
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov ecx, eax
mov edx, 0x649e50
call fcn.004917b0
add esp, 4
push 4
lea eax, [ebp - 0x18]
push eax
push 6
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
je 0x4bee5c
mov ecx, dword [ebp - 0x18]
push ecx
push str.Set_receive_time_out_success_:__d
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
jmp 0x4bee72
push str.Set_receive_time_out_fail_
call ebx
mov ecx, eax
mov edx, 0x649e50
call fcn.004917b0
add esp, 4
push 0
push 0
push 0
push 0
push edi
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x4bf10a
call ebx
push edi
push str.Open_URL__s__fail__
mov ecx, eax
mov edx, 0x649e50
call fcn.004917b0
push 0x3c
push esi
lea edx, [ebp - 0x98]
push edx
call fcn.004fd670
mov dword [ebp - 0x58], 0x55fe64
mov dword [ebp - 0x54], str.image_
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x14], 0x4407100
push 0x800
push esi
lea eax, [ebp + 0x800]
push eax
call fcn.004fd670
push 0x800
push esi
lea ecx, [ebp]
push ecx
call fcn.004fd670
add esp, 0x2c
mov dword [ebp - 0x98], 0x3c
lea edx, [ebp + 0x800]
mov dword [ebp - 0x88], edx
mov eax, 0x400
mov dword [ebp - 0x84], eax
lea ecx, [ebp]
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x68], eax
mov eax, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4bef20
sub eax, edx
sar eax, 1
lea edx, [ebp - 0x98]
push edx
push 0
push eax
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x4bef6d
call ebx
mov esi, eax
push str.CrackUrl_fail__
mov ecx, esi
mov edx, 0x649e50
call fcn.004917b0
add esp, 4
mov dword [ebp - 0x38], esi
push 0x5814b0
lea eax, [ebp - 0x38]
push eax
call fcn.004fd5a3
push 0
push 0
push 3
push 0x535a4c
push 0x535a4c
push 0x50
lea ecx, [ebp + 0x800]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
jne 0x4befc2
call ebx
mov esi, eax
push str.InternetConnect_fail__
mov ecx, esi
mov edx, 0x649e50
call fcn.004917b0
add esp, 4
mov dword [ebp - 0x48], esi
push 0x5814b0
lea eax, [ebp - 0x48]
push eax
call fcn.004fd5a3
push 0
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x58]
push edx
push 0
push 0
lea eax, [ebp]
push eax
push 0x55fe74
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x4bf012
call ebx
mov esi, eax
push str.HttpOpenRequest_fail__
mov ecx, esi
mov edx, 0x649e50
call fcn.004917b0
add esp, 4
mov dword [ebp - 0x30], esi
push 0x5814b0
lea ecx, [ebp - 0x30]
push ecx
call fcn.004fd5a3
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x4bf10d
call ebx
push str.HttpSendRequest_fail_____1
mov ecx, eax
mov edx, 0x649e50
call fcn.004917b0
add esp, 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], 4
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x14]
push eax
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
test eax, eax
jne 0x4bf08b
call ebx
mov esi, eax
push str.InternetQueryOption_fail__
mov ecx, esi
mov edx, 0x649e50
call fcn.004917b0
add esp, 4
mov dword [ebp - 0x40], esi
push 0x5814b0
lea ecx, [ebp - 0x40]
push ecx
call fcn.004fd5a3
or dword [ebp - 0x14], 0x3380
push 4
lea edx, [ebp - 0x14]
push edx
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
jne 0x4bf0ce
call ebx
mov esi, eax
push str.InternetSetOption_fail__
mov ecx, esi
mov edx, 0x649e50
call fcn.004917b0
add esp, 4
mov dword [ebp - 0x4c], esi
push 0x5814b0
lea eax, [ebp - 0x4c]
push eax
call fcn.004fd5a3
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x4bf10d
call ebx
mov esi, eax
push str.HttpSendRequest_fail_____2
mov ecx, esi
mov edx, 0x649e50
call fcn.004917b0
add esp, 4
mov dword [ebp - 0x44], esi
push 0x5814b0
lea ecx, [ebp - 0x44]
push ecx
call fcn.004fd5a3
mov edi, dword [ebp - 0x20]
push esi
mov ecx, dword [ebp - 0x34]
call fcn.004bf200
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x4bf17a
mov eax, 0x57
jmp 0x4bf1b1
mov dword [ebp - 4], 2
test esi, esi
je 0x4bf190
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
jmp 0x4bf196
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test edi, edi
je 0x4bf19d
push edi
call esi
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4bf1a7
push eax
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.004fa103
add ebp, 0x1004
mov esp, ebp
pop ebp
ret 4