Function at 0x4b16b5
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5016be
mov eax, dword fs:[0]
push eax
sub esp, 0x1f8
mov eax, dword [0x5415b0]
xor eax, esp
mov dword [esp + 0x1f0], eax
push ebx
push esi
push edi
mov eax, dword [0x5415b0]
xor eax, esp
push eax
lea eax, [esp + 0x208]
mov dword fs:[0], eax
mov ebx, edx
mov dword [esp + 0x40], ebx
mov eax, ecx
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4b170c
xor eax, eax
jmp 0x4b1b7f
test ebx, ebx
je 0x4b1705
xor ecx, ecx
xor esi, esi
mov dword [esp + 0x30], ecx
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4b171d
sub ecx, edx
sar ecx, 1
je 0x4b1b7b
mov eax, dword [0x542750]
mov dword [esp + 0x28], eax
mov dword [esp + 0x210], esi
lea eax, [esp + 0x28]
push dword [0x54426c]
push str.download_d
push eax
call fcn.0040301c
add esp, 0xc
inc dword [0x54426c]
push 0xae
call fcn.004d6a5a
pop ecx
mov dword [esp + 0x2c], eax
mov byte [esp + 0x210], 1
test eax, eax
je 0x4b178f
push dword [esp + 0x28]
mov ecx, eax
call dword [sym.imp.Http.dll_public:_void___thiscall_CDownloader::constructor_wchar_t_const__]
mov edi, eax
mov dword [esp + 0x38], edi
jmp 0x4b1795
mov edi, esi
mov dword [esp + 0x38], esi
mov esi, dword [0x542750]
mov dword [esp + 0x24], esi
lea ecx, [esp + 0x84]
mov byte [esp + 0x210], 2
call fcn.004ad305
xor eax, eax
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], eax
mov byte [esp + 0x44], al
lea eax, [esp + 0x44]
mov byte [esp + 0x210], 4
push eax
mov ecx, ebx
call fcn.00467984
pop ecx
test eax, eax
je 0x4b1895
cmp dword [esp + 0x58], 0x10
lea edx, [esp + 0x44]
lea ecx, [esp + 0x5c]
cmovae edx, dword [esp + 0x44]
call fcn.0042efcd
mov byte [esp + 0x210], 5
lea eax, [esp + 0x5c]
cmp dword [esp + 0x70], 0x10
lea ecx, [esp + 0x84]
push 0
cmovae eax, dword [esp + 0x60]
push eax
call fcn.004ad3cb
test eax, eax
je 0x4b1888
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
mov byte [esp + 0x210], 6
push eax
lea ecx, [esp + 0x88]
call fcn.004ad4d1
push str.modified_time
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
call fcn.004ad0be
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x214], 7
call fcn.00402a9f
lea ecx, [esp + 0x14]
call fcn.00403030
lea ecx, [esp + 0x18]
mov byte [esp + 0x210], 5
call fcn.004acc5c
mov esi, dword [esp + 0x24]
push 0
push 1
lea ecx, [esp + 0x64]
call fcn.00406ae3
push 0
push 1
lea ecx, [esp + 0x4c]
call fcn.00406ae3
lea ecx, [esp + 0x188]
mov byte [esp + 0x210], 2
call dword [sym.imp.tinyxml.dll_public_virtual:_void___thiscall_TiXmlDocument::destructor_void_]
push esi
push ebx
push dword [esp + 0x28]
mov ecx, edi
call dword [sym.imp.Http.dll_public:_void___thiscall_CDownloader::SetURL_wchar_t_const___wchar_t_const___wchar_t_const__]
mov ecx, edi
call dword [sym.imp.Http.dll_public:_void___thiscall_CDownloader::Download_void_]
mov ecx, edi
call dword [sym.imp.Http.dll_public:_void___thiscall_CDownloader::WaitThread_void_]
mov ecx, edi
call dword [sym.imp.Http.dll_public:_bool___thiscall_CDownloader::IsFinished_void_]
test al, al
je 0x4b1b46
lea ecx, [esp + 0x84]
mov dword [esp + 0x30], 1
call fcn.004ad305
xor eax, eax
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], eax
mov byte [esp + 0x44], al
lea eax, [esp + 0x44]
mov byte [esp + 0x210], 9
push eax
mov ecx, ebx
call fcn.00467984
pop ecx
test eax, eax
je 0x4b1b24
cmp dword [esp + 0x58], 0x10
lea edx, [esp + 0x44]
lea ecx, [esp + 0x5c]
cmovae edx, dword [esp + 0x44]
call fcn.0042f10d
mov byte [esp + 0x210], 0xa
lea eax, [esp + 0x5c]
cmp dword [esp + 0x70], 0x10
lea ecx, [esp + 0x84]
push 1
cmovae eax, dword [esp + 0x60]
push eax
call fcn.004ad3cb
test eax, eax
je 0x4b1b17
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
mov byte [esp + 0x210], 0xb
push eax
lea ecx, [esp + 0x88]
call fcn.004ad4d1
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea edx, [esp + 0x74]
lea ecx, [esp + 0x14]
call fcn.00413710
mov byte [esp + 0x210], 0xc
lea ecx, [esp + 0x18]
push dword [eax]
push str.update
call fcn.004acf55
lea ecx, [esp + 0x14]
mov byte [esp + 0x210], 0xb
call fcn.00403030
mov ecx, edi
call dword [sym.imp.Http.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_CDownloader::GetLastTime_void_]
cmp dword [eax + 0x14], 8
jb 0x4b19e0
mov eax, dword [eax]
push eax
push str.modified_time
lea ecx, [esp + 0x20]
call fcn.004acf55
push ebx
lea ecx, [esp + 0x88]
call fcn.004ad4f2
xor eax, eax
push eax
push eax
push 3
push eax
push eax
push SysReAllocStringLen
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x20], esi
cmp esi, 0xffffffff
je 0x4b1b06
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x3c], eax
cmp eax, 0xffffffff
jne 0x4b1a8f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
mov byte [esp + 0x210], 0xa
call fcn.004acc5c
push 0
push 1
lea ecx, [esp + 0x64]
call fcn.00406ae3
push 0
push 1
lea ecx, [esp + 0x4c]
call fcn.00406ae3
lea ecx, [esp + 0x188]
mov byte [esp + 0x210], 2
call dword [sym.imp.tinyxml.dll_public_virtual:_void___thiscall_TiXmlDocument::destructor_void_]
lea ecx, [esp + 0x24]
call fcn.00403030
lea ecx, [esp + 0x28]
call fcn.00403030
jmp 0x4b1705
lea esi, [eax + 1]
push esi
call fcn.004d5f08
pop ecx
push esi
push 0
push eax
mov dword [esp + 0x20], eax
call fcn.004db6f0
mov esi, dword [esp + 0x2c]
xor eax, eax
add esp, 0xc
cmp dword [esp + 0x3c], eax
je 0x4b1aeb
mov ebx, dword [esp + 0x3c]
mov edi, eax
push eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
mov eax, ebx
sub eax, edi
push eax
mov eax, dword [esp + 0x20]
add eax, edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
add edi, dword [esp + 0x34]
push 0
pop eax
cmp ebx, edi
jne 0x4b1abb
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x40]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x14]
mov ecx, ebx
push esi
call fcn.004b1c1e
pop ecx
push esi
call fcn.004d5e39
pop ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x210], 0xa
call fcn.004acc5c
push 0
push 1
lea ecx, [esp + 0x64]
call fcn.00406ae3
push 0
push 1
lea ecx, [esp + 0x4c]
call fcn.00406ae3
lea ecx, [esp + 0x188]
mov byte [esp + 0x210], 2
call dword [sym.imp.tinyxml.dll_public_virtual:_void___thiscall_TiXmlDocument::destructor_void_]
mov ecx, edi
call dword [sym.imp.Http.dll_public:_void___thiscall_CDownloader::Abort_void_]
mov ecx, edi
call dword [sym.imp.Http.dll_public:_void___thiscall_CDownloader::Clear_void_]
test edi, edi
je 0x4b1b69
mov ecx, edi
call dword [sym.imp.Http.dll_public:_void___thiscall_CDownloader::destructor_void_]
push edi
call fcn.004d5e25
pop ecx
lea ecx, [esp + 0x24]
call fcn.00403030
lea ecx, [esp + 0x28]
call fcn.00403030
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x208]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1f0]
xor ecx, esp
call fcn.004d5e2a
mov esp, ebp
pop ebp
ret