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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50574c
mov eax, dword fs:[0]
push eax
sub esp, 0x1f8
mov eax, dword [0x5475b0]
xor eax, esp
mov dword [esp + 0x1f0], eax
push ebx
push esi
push edi
mov eax, dword [0x5475b0]
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 0x4b54b8
xor eax, eax
jmp 0x4b592b
test ebx, ebx
je 0x4b54b1
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 0x4b54c9
sub ecx, edx
sar ecx, 1
je 0x4b5927
mov eax, dword [0x548750]
mov dword [esp + 0x28], eax
mov dword [esp + 0x210], esi
lea eax, [esp + 0x28]
push dword [0x54a2b4]
push str.download_d
push eax
call fcn.0040306c
add esp, 0xc
inc dword [0x54a2b4]
push 0xae
call fcn.004da35a
pop ecx
mov dword [esp + 0x2c], eax
mov byte [esp + 0x210], 1
test eax, eax
je 0x4b553b
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 0x4b5541
mov edi, esi
mov dword [esp + 0x38], esi
mov esi, dword [0x548750]
mov dword [esp + 0x24], esi
lea ecx, [esp + 0x84]
mov byte [esp + 0x210], 2
call fcn.004b14f8
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.0046b937
pop ecx
test eax, eax
je 0x4b5641
cmp dword [esp + 0x58], 0x10
lea edx, [esp + 0x44]
lea ecx, [esp + 0x5c]
cmovae edx, dword [esp + 0x44]
call fcn.00432449
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.004b15be
test eax, eax
je 0x4b5634
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.004b16c4
push str.modified_time
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
call fcn.004b12b1
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x214], 7
call fcn.00402aef
lea ecx, [esp + 0x14]
call fcn.00403080
lea ecx, [esp + 0x18]
mov byte [esp + 0x210], 5
call fcn.004b0e4e
mov esi, dword [esp + 0x24]
push 0
push 1
lea ecx, [esp + 0x64]
call fcn.00406bf3
push 0
push 1
lea ecx, [esp + 0x4c]
call fcn.00406bf3
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 0x4b58f2
lea ecx, [esp + 0x84]
mov dword [esp + 0x30], 1
call fcn.004b14f8
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.0046b937
pop ecx
test eax, eax
je 0x4b58d0
cmp dword [esp + 0x58], 0x10
lea edx, [esp + 0x44]
lea ecx, [esp + 0x5c]
cmovae edx, dword [esp + 0x44]
call fcn.00432589
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.004b15be
test eax, eax
je 0x4b58c3
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.004b16c4
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea edx, [esp + 0x74]
lea ecx, [esp + 0x14]
call fcn.004b5a57
mov byte [esp + 0x210], 0xc
lea ecx, [esp + 0x18]
push dword [eax]
push str.update
call fcn.004b1148
lea ecx, [esp + 0x14]
mov byte [esp + 0x210], 0xb
call fcn.00403080
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 0x4b578c
mov eax, dword [eax]
push eax
push str.modified_time
lea ecx, [esp + 0x20]
call fcn.004b1148
push ebx
lea ecx, [esp + 0x88]
call fcn.004b16e5
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 0x4b58b2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x3c], eax
cmp eax, 0xffffffff
jne 0x4b583b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
mov byte [esp + 0x210], 0xa
call fcn.004b0e4e
push 0
push 1
lea ecx, [esp + 0x64]
call fcn.00406bf3
push 0
push 1
lea ecx, [esp + 0x4c]
call fcn.00406bf3
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.00403080
lea ecx, [esp + 0x28]
call fcn.00403080
jmp 0x4b54b1
lea esi, [eax + 1]
push esi
call fcn.004d980f
pop ecx
push esi
push 0
push eax
mov dword [esp + 0x20], eax
call fcn.004deff0
mov esi, dword [esp + 0x2c]
xor eax, eax
add esp, 0xc
cmp dword [esp + 0x3c], eax
je 0x4b5897
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 0x4b5867
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.004b59ca
pop ecx
push esi
call fcn.004d9740
pop ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x210], 0xa
call fcn.004b0e4e
push 0
push 1
lea ecx, [esp + 0x64]
call fcn.00406bf3
push 0
push 1
lea ecx, [esp + 0x4c]
call fcn.00406bf3
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 0x4b5915
mov ecx, edi
call dword [sym.imp.Http.dll_public:_void___thiscall_CDownloader::destructor_void_]
push edi
call fcn.004d972c
pop ecx
lea ecx, [esp + 0x24]
call fcn.00403080
lea ecx, [esp + 0x28]
call fcn.00403080
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.004d9731
mov esp, ebp
pop ebp
ret