Function at 0x4534a0
Capabilities:
Download and write a file
Query remote server for available data
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4db5fc
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x50e018]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push esi
push edi
mov eax, dword [0x50e018]
xor eax, esp
push eax
lea eax, [esp + 0x160]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x34], 0
push 5
lea esi, [esp + 0x124]
mov edi, ebx
mov dword [esp + 0x28], ebx
mov dword [ebx + 0x18], 1
call fcn.00453c20
xor eax, eax
mov dword [esp + 0x168], eax
or ecx, 0xffffffff
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x130], eax
jbe 0x453570
cmp dword [esp + 0x134], 0x10
mov edx, dword [esp + 0x120]
lea ecx, [esp + 0x1c]
push ecx
jae 0x45353a
mov edx, esi
sub esp, 0x1c
mov esi, esp
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
mov byte [esi], al
mov eax, edx
mov dword [esp + 0x4c], esp
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x453554
sub eax, edi
push eax
push edx
mov ecx, esi
call fcn.00405360
call fcn.004541b0
add esp, 0x20
xor eax, eax
mov edi, 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x28], eax
cmp dword [ebx + 0x134], eax
jbe 0x453615
cmp dword [ebx + 0x138], 0x10
lea esi, [ebx + 0x124]
jb 0x4535a0
mov eax, dword [esi]
jmp 0x4535a2
mov eax, esi
push 0x4ec11c
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
mov dword [esp + 0x28], eax
test eax, eax
jne 0x453605
mov dword [ebx + 4], 0xb
cmp dword [ebx + 0x18], edi
jne 0x4535cc
mov dword [ebx + 0x18], 5
mov esi, ebx
call fcn.00454580
mov ecx, dword [ebx + 0x28]
mov dword [ebx + 0x20], 0
test ecx, ecx
je 0x4535ea
mov edx, dword [ecx]
mov eax, dword [edx]
push ebx
push 9
call eax
cmp dword [esp + 0x134], 0x10
jb 0x453bf7
mov ecx, dword [esp + 0x120]
push ecx
jmp 0x453bee
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebx + 0x2a8]
call fcn.004059c0
mov edx, dword [ebx + 0x118]
push edx
call fcn.004a64f8
mov ecx, dword [ebx + 0x118]
add esp, 4
push ecx
xor esi, esi
push esi
push eax
mov dword [esp + 0x24], eax
call sub.MSVCR100.dll_memset
add esp, 0xc
call fcn.004625c0
push 0x1f3
push 0xfffffc18
push edx
push eax
call fcn.004cbe60
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x118], 0xf
mov dword [esp + 0x114], esi
mov byte [esp + 0x104], 0
mov byte [esp + 0x168], 1
mov dword [esp + 0x30], esi
cmp dword [ebx + 0x1c], esi
jne 0x453b24
mov eax, dword [ebx + 0x10]
push 0
push 0
lea edx, [esp + 0x38]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x453ab6
cmp dword [esp + 0x30], 0
jbe 0x453ab6
mov edx, dword [ebx + 0x118]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [ebx + 0x10]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [esp + 0x38], eax
test eax, eax
je 0x453abd
cmp dword [esp + 0x14], 0
jbe 0x453ab6
call fcn.004625c0
push 0x1f3
push 0xfffffc18
push edx
push eax
call fcn.004cbe60
sub eax, dword [esp + 0x44]
lea esi, [esp + 0x13c]
sbb edx, dword [esp + 0x48]
push edx
push eax
call fcn.0042fca0
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x110]
mov byte [esp + 0x174], 2
call fcn.0040e640
mov edi, 0x10
mov byte [esp + 0x168], 1
cmp dword [esp + 0x150], edi
jb 0x45374f
mov edx, dword [esp + 0x13c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
push 1
push 0x4e4684
lea ecx, [esp + 0x10c]
call fcn.0040e4c0
mov eax, dword [esp + 0x14]
push eax
lea esi, [esp + 0x140]
call fcn.0042fdf0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x110]
mov byte [esp + 0x174], 3
call fcn.0040e640
mov byte [esp + 0x168], 1
cmp dword [esp + 0x150], edi
jb 0x4537b1
mov ecx, dword [esp + 0x13c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
push 1
push 0x4eac2c
lea ecx, [esp + 0x10c]
call fcn.0040e4c0
lea esi, [ebx + 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edi, [ebx + 0x98]
mov dword [esp + 0x2c], edi
call fcn.0042ff40
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
test eax, eax
je 0x453963
push eax
mov eax, dword [esp + 0x1c]
push edx
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
mov edi, eax
add esp, 0x10
cmp edi, dword [esp + 0x14]
je 0x453974
lea ecx, [esp + 0xac]
mov dword [esp + 0x4c], 0x4eca38
mov dword [esp + 0x5c], 0x4e4548
call dword [sym.imp.MSVCP100.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
lea ecx, [esp + 0x68]
push ecx
mov byte [esp + 0x170], 4
or dword [esp + 0x3c], 1
lea ecx, [esp + 0x54]
call dword [sym.imp.MSVCP100.dll_public:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char____]
mov dword [esp + 0x168], 5
mov edx, dword [esp + 0x4c]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x64]
mov dword [esp + eax + 0x4c], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
call dword [sym.imp.MSVCP100.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
xor eax, eax
mov dword [esp + 0x64], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov byte [esp + 0x168], 7
mov ecx, dword [esp + 0x4c]
mov ecx, dword [ecx + 4]
push eax
push eax
lea ecx, [esp + ecx + 0x54]
call dword [sym.imp.MSVCP100.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
xor eax, eax
mov dword [esp + 0xfc], eax
mov word [esp + 0xf4], ax
mov dword [esp + 0xf8], eax
lea edx, [esp + 0x5c]
push str.HTTP
push edx
mov byte [esp + 0x170], 8
call fcn.00405c70
add esp, 8
push edi
lea ecx, [esp + 0x60]
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int_]
lea eax, [esp + 0x5c]
push 0x4ecb64
push eax
call fcn.00405c70
mov ecx, dword [esp + 0x1c]
add esp, 8
push ecx
lea ecx, [esp + 0x60]
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
lea edx, [esp + 0x5c]
push 0x4ecb70
push edx
call fcn.00405c70
lea eax, [ebx + 0x124]
add esp, 8
cmp dword [eax + 0x14], 0x10
jb 0x45391b
mov eax, dword [eax]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.00405c70
lea ecx, [esp + 0x64]
push 0x4ecb7c
push ecx
call fcn.00405c70
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x60]
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x168], 1
call fcn.00458570
mov byte [ebx + 0x2c4], 1
jmp 0x453974
mov eax, dword [esp + 0x18]
push edx
push eax
lea ecx, [ebx + 0x270]
call fcn.0040e4c0
mov ecx, dword [esp + 0x14]
add dword [ebx + 0x430], ecx
mov edi, 0
push esi
adc dword [ebx + 0x434], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebx + 0x118]
mov eax, dword [esp + 0x18]
push edx
push edi
push eax
call sub.MSVCR100.dll_memset
mov eax, dword [ebx + 0x114]
mov ecx, dword [ebx + 0x110]
add esp, 0xc
cmp eax, edi
jl 0x4539d5
jg 0x4539bb
cmp ecx, edi
jbe 0x4539d5
cmp dword [ebx + 0x434], eax
jg 0x453a93
jl 0x4539d5
cmp dword [ebx + 0x430], ecx
jae 0x453a93
mov ecx, dword [ebx + 0x108]
or ecx, dword [ebx + 0x10c]
je 0x453a47
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
lea edi, [esp + 0x3c]
call fcn.0042ff40
mov edx, dword [ebx + 0x50]
mov edi, dword [ebx + 0x54]
mov eax, edx
or eax, edi
je 0x453a47
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov esi, eax
or esi, ecx
je 0x453a47
push 0
sub eax, edx
push 0xf4240
sbb ecx, edi
push ecx
push eax
call fcn.004cbc40
mov ecx, dword [ebx + 0xa4]
push ecx
mov ecx, dword [ebx + 0xa0]
push ecx
push edx
push eax
call fcn.004cbb90
cmp edx, dword [ebx + 0x10c]
jg 0x453a9c
jl 0x453a47
cmp eax, dword [ebx + 0x108]
ja 0x453a9c
mov eax, dword [esp + 0x20]
test eax, eax
jl 0x453a6e
jg 0x453a58
cmp dword [esp + 0x1c], 0
jbe 0x453a6e
cmp dword [ebx + 0x434], eax
jg 0x453aa5
jl 0x453a6e
mov eax, dword [ebx + 0x430]
cmp eax, dword [esp + 0x1c]
jae 0x453aa5
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
push ecx
push edx
call fcn.00451eb0
cmp dword [esi + 0x1c], 0
mov ebx, esi
jne 0x453ab6
jmp 0x453688
mov dword [ebx + 0x18], 3
jmp 0x453ab6
mov dword [ebx + 0x18], 4
jmp 0x453ab6
mov dword [ebx + 0x260], 1
mov dword [ebx + 0x18], 5
cmp dword [esp + 0x38], 0
jne 0x453b24
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
sub eax, 0x2efe
je 0x453b1d
dec eax
je 0x453b14
test edi, edi
je 0x453b24
push 0
push 0
push 0
lea eax, [esp + 0x58]
push eax
call fcn.00405200
mov ecx, str.HttpManager_
mov esi, eax
mov byte [esp + 0x168], 9
call fcn.00405280
push edi
lea ecx, [eax + 0x10]
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x168], 1
call fcn.00458570
jmp 0x453b24
mov dword [ebx + 4], 0x25e
jmp 0x453b24
mov dword [ebx + 4], 0x25d
mov edi, 1
cmp dword [ebx + 0x18], edi
jne 0x453b35
mov dword [ebx + 0x18], 5
mov esi, ebx
call fcn.00454580
mov eax, dword [esp + 0x20]
test eax, eax
jl 0x453b69
jg 0x453b4d
cmp dword [esp + 0x1c], 0
jbe 0x453b69
cmp dword [ebx + 0x434], eax
jl 0x453b69
jg 0x453b63
mov edx, dword [ebx + 0x430]
cmp edx, dword [esp + 0x1c]
jb 0x453b69
mov dword [ebx + 0x260], edi
mov ecx, dword [ebx + 0x28]
mov dword [ebx + 0x20], 0
test ecx, ecx
je 0x453b80
mov eax, dword [ecx]
mov edx, dword [eax]
push ebx
push 9
call edx
mov eax, dword [esp + 0x28]
test eax, eax
je 0x453b92
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
mov esi, 0x10
add esp, 4
cmp dword [esp + 0x118], esi
jb 0x453bbf
mov ecx, dword [esp + 0x104]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x118], 0xf
mov dword [esp + 0x114], 0
mov byte [esp + 0x104], 0
cmp dword [esp + 0x134], esi
jb 0x453bf7
mov edx, dword [esp + 0x120]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [esp + 0x160]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.004a665a
mov esp, ebp
pop ebp
ret