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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x10058
call fcn.0043e420
mov eax, dword [0x471080]
xor eax, esp
mov dword [esp + 0x10054], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push esi
push edi
mov esi, ecx
mov dword [esp + 0x34], edx
push esi
push str.file_path_:__s
push str.DecryptUtil
push 3
push str.Decrypt::DecryptFileToMemory
xor ecx, ecx
mov dword [esp + 0x44], eax
push 0x1a
push str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3_backupdownloaderutildecryptutil.cpp
mov dword [esp + 0x48], 0
xor edi, edi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
movq qword [esp + 0x54], xmm0
call fcn.00409850
add esp, 0x1c
push edi
push 0x8000000
push 3
push edi
push 3
push connect
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
jne 0x41f637
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Open_file_failed__error_code_:__u
push str.DecryptUtil
push 3
push str.Decrypt::DecryptFileToMemory
push 0x26
push str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3_backupdownloaderutildecryptutil.cpp
call fcn.00409850
add esp, 0x1c
jmp 0x41f96c
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x41f673
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Get_file_size_failed__error_code_:__u
push str.DecryptUtil
push 3
push str.Decrypt::DecryptFileToMemory
push 0x2c
push str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3_backupdownloaderutildecryptutil.cpp
call fcn.00409850
add esp, 0x1c
jmp 0x41f96c
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x41f6a1
push eax
push str.File_size_too_large__HighPart___u
push str.DecryptUtil
push 3
push str.Decrypt::DecryptFileToMemory
push 0x32
push str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3_backupdownloaderutildecryptutil.cpp
call fcn.00409850
add esp, 0x1c
jmp 0x41f96c
mov eax, dword [esp + 0x38]
xor esi, esi
push eax
mov dword [esp + 0x1c], eax
call fcn.0043e0c3
mov edi, eax
add esp, 4
test edi, edi
jne 0x41f6ce
mov dword [esp + 0x14], str.New_contents_failed
lea eax, [esp + 0x14]
lea edx, [esi + 0x3b]
jmp 0x41f94d
push dword [esp + 0x18]
push 0
push edi
call fcn.0043fa60
add esp, 0xc
mov dword [esp + 0x20], esi
lea eax, [esp + 0x20]
push 0
push eax
push 0x10000
lea eax, [esp + 0x64]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f73d
mov eax, dword [esp + 0x20]
test eax, eax
je 0x41f73d
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esi + edi]
push eax
call fcn.0043fbc0
add esi, dword [esp + 0x2c]
lea eax, [esp + 0x2c]
add esp, 0xc
push 0
push eax
push 0x10000
lea eax, [esp + 0x64]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41f700
cmp esi, dword [esp + 0x18]
je 0x41f759
mov dword [esp + 0x14], str.pos___file_len
lea eax, [esp + 0x14]
mov edx, 0x4f
jmp 0x41f94d
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
xorps xmm0, xmm0
movzx esi, byte [edi]
add eax, 0xfffffffc
mov dword [esp + 0x1c], 0
movaps xmmword [esp + 0x40], xmm0
cmp esi, eax
ja 0x41f93c
cmp esi, 0x80
ja 0x41f93c
push esi
call fcn.0043e0c3
mov ecx, eax
add esp, 4
mov dword [esp + 0x24], ecx
test ecx, ecx
jne 0x41f7b8
mov dword [esp + 0x14], str.New_rsa_encrypt_failed
lea eax, [esp + 0x14]
lea edx, [ecx + 0x63]
jmp 0x41f94d
push esi
lea eax, [edi + 4]
push eax
push ecx
call fcn.0043fbc0
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x14], 0x10
mov edx, esi
push eax
lea eax, [esp + 0x44]
push eax
call fcn.0040d1d0
add esp, 8
test eax, eax
jne 0x41f800
mov dword [esp + 0x14], str.Decrypt_RSA_error
lea eax, [esp + 0x14]
mov edx, 0x6c
jmp 0x41f94d
mov eax, dword [esp + 0x18]
sub eax, esi
add eax, 0xfffffffc
mov dword [esp + 0x18], eax
jne 0x41f843
lea eax, [esp + 0x14]
mov dword [esp + 0x14], str.File_len_error
push eax
push 0x46351c
push str.DecryptUtil
push 3
push str.Decrypt::DecryptFileToMemory
mov edx, 0x72
mov ecx, str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3_backupdownloaderutildecryptutil.cpp
call fcn.00407d50
mov eax, dword [esp + 0x2c]
add esp, 0x14
push eax
call fcn.0043e0c3
mov ecx, eax
add esp, 4
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x41f88d
lea eax, [esp + 0x18]
mov dword [esp + 0x18], str.New_encrpt_context_failed
push eax
push 0x46351c
push str.DecryptUtil
push 3
lea edx, [ecx + 0x79]
mov ecx, str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3_backupdownloaderutildecryptutil.cpp
push str.Decrypt::DecryptFileToMemory
call fcn.00407d50
mov esi, dword [esp + 0x28]
add esp, 0x14
jmp 0x41f96e
push dword [esp + 0x18]
lea eax, [esi + 4]
add eax, edi
push eax
push ecx
call fcn.0043fbc0
mov esi, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x18], esi
push esi
call fcn.0043e0c3
add esp, 4
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x18]
mov edx, esi
mov esi, dword [esp + 0x14]
push ecx
push eax
lea eax, [esp + 0x48]
mov ecx, esi
push eax
call fcn.0040d4e0
add esp, 0xc
test eax, eax
jne 0x41f906
lea eax, [esp + 0x14]
mov dword [esp + 0x14], str.Decrypt_TEA_error
push eax
push 0x46351c
push str.DecryptUtil
push 3
push str.Decrypt::DecryptFileToMemory
mov edx, 0x85
mov ecx, str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3_backupdownloaderutildecryptutil.cpp
call fcn.00407d50
add esp, 0x14
jmp 0x41f96e
mov esi, dword [esp + 0x18]
push esi
call fcn.0043e0c3
mov ecx, dword [esp + 0x38]
add esp, 4
mov dword [ecx], eax
mov ecx, dword [esp + 0x28]
push esi
push ecx
push eax
call fcn.0043fbc0
mov eax, dword [esp + 0x3c]
add esp, 0xc
mov dword [esp + 0x2c], 1
mov dword [eax], esi
mov esi, dword [esp + 0x14]
jmp 0x41f96e
mov dword [esp + 0x30], str.Rsa_encrypt_len_error
lea eax, [esp + 0x30]
mov edx, 0x5c
push eax
push 0x46351c
push str.DecryptUtil
push 3
push str.Decrypt::DecryptFileToMemory
mov ecx, str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3_backupdownloaderutildecryptutil.cpp
call fcn.00407d50
add esp, 0x14
xor esi, esi
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x41f985
push edi
call fcn.0043e0be
add esp, 4
mov eax, dword [esp + 0x24]
test eax, eax
je 0x41f996
push eax
call fcn.0043e0be
add esp, 4
test esi, esi
je 0x41f9a3
push esi
call fcn.0043e0be
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41f9b4
push eax
call fcn.0043e0be
add esp, 4
mov ecx, dword [esp + 0x1005c]
mov eax, dword [esp + 0x2c]
pop edi
pop esi
xor ecx, esp
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret