Function at 0x4aad84
Capabilities:
Move file

Disassembly:
push 0x1cc
mov eax, 0x5388f3
call fcn.004e48a0
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x8c]
mov esi, dword [ebp + 8]
xor ebx, ebx
push str..commit
push edi
push eax
mov dword [ebp - 0xf8], esi
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x11c], ebx
call fcn.00425011
lea eax, [ebp - 0x8c]
mov dword [ebp - 4], ebx
push eax
call fcn.004a8892
add esp, 0x10
test al, al
je 0x4aaf86
push edi
call fcn.004a8892
pop ecx
test al, al
je 0x4aaec9
cmp dword [edi + 0x14], 0x10
jb 0x4aadf2
mov eax, dword [edi]
jmp 0x4aadf4
mov eax, edi
push eax
call fcn.0050ff89
mov dword [ebp - 0x10c], eax
pop ecx
test eax, eax
je 0x4aaec9
push str.ReadFileContents
lea ecx, [ebp - 0x74]
call fcn.004147d9
push str.C:UsersAdamCodeCode_Psiphonpsicashpsicash_lib_androidpsicashlib_srcmaincpppsicashlibdatastore.cpp
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 1
call fcn.004147d9
mov byte [ebp - 4], 2
call fcn.0050c49b
push eax
push str.__errno
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x2c]
push str.removing_file_path_failed__err
push eax
call fcn.004a9cc6
add esp, 0x14
push 0x13b
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 3
push ecx
lea ecx, [ebp - 0xa4]
xor esi, esi
push ecx
push eax
inc esi
lea ecx, [ebp - 0x108]
push esi
call fcn.00488294
mov ecx, dword [ebp - 0xf8]
push eax
mov byte [ebp - 4], 4
call fcn.004a9fc9
lea ecx, [ebp - 0x104]
call fcn.0041fcfc
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00416ab1
push ebx
push esi
lea ecx, [ebp - 0xa4]
call fcn.00416ab1
lea ecx, [ebp - 0x74]
push ebx
push esi
call fcn.00416ab1
push ebx
push esi
lea ecx, [ebp - 0x8c]
call fcn.00416ab1
mov eax, dword [ebp - 0xf8]
jmp 0x4ab6e6
cmp dword [edi + 0x14], 0x10
jb 0x4aaed3
mov ecx, dword [edi]
jmp 0x4aaed5
mov ecx, edi
cmp dword [ebp - 0x78], 0x10
lea eax, [ebp - 0x8c]
push ecx
cmovae eax, dword [ebp - 0x8c]
push eax
call fcn.0050ffd6
mov dword [ebp - 0x10c], eax
pop ecx
pop ecx
test eax, eax
je 0x4aaf86
push str.ReadFileContents
lea ecx, [ebp - 0x74]
call fcn.004147d9
push str.C:UsersAdamCodeCode_Psiphonpsicashpsicash_lib_androidpsicashlib_srcmaincpppsicashlibdatastore.cpp
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 5
call fcn.004147d9
mov byte [ebp - 4], 6
call fcn.0050c49b
push eax
push str.__errno
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x2c]
push str.renaming_commit_file_path_to_file_path_failed__err
push eax
call fcn.004a9cc6
add esp, 0x14
push 0x13e
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 7
push ecx
lea ecx, [ebp - 0xa4]
push ecx
push eax
push 1
lea ecx, [ebp - 0x108]
call fcn.00488294
push eax
mov ecx, esi
mov byte [ebp - 4], 8
call fcn.004a9fc9
lea ecx, [ebp - 0x104]
call fcn.0041fcfc
xor esi, esi
inc esi
jmp 0x4aae90
push edi
call fcn.004a8892
pop ecx
test al, al
jne 0x4ab09a
push 0x550335
lea ecx, [ebp - 0x74]
call fcn.004147d9
push 0x550cc8
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 9
call fcn.004147d9
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.004abec1
add esp, 0x10
push ebx
push 1
lea ecx, [ebp - 0xa4]
call fcn.00416ab1
xor esi, esi
mov byte [ebp - 4], 0xd
push ebx
inc esi
lea ecx, [ebp - 0x74]
push esi
call fcn.00416ab1
cmp byte [ebp - 0x108], 0
je 0x4ab08a
push str.ReadFileContents
lea ecx, [ebp - 0x2c]
call fcn.004147d9
push str.C:UsersAdamCodeCode_Psiphonpsicashpsicash_lib_androidpsicashlib_srcmaincpppsicashlibdatastore.cpp
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xe
call fcn.004147d9
push str.file_doesnt_exist_and_FileStore_failed
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0xf
call fcn.004147d9
push 0x145
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x108]
call fcn.00488412
mov ecx, dword [ebp - 0xf8]
push eax
call fcn.004a9fc9
push ebx
push esi
lea ecx, [ebp - 0x5c]
call fcn.00416ab1
push ebx
push esi
lea ecx, [ebp - 0x44]
call fcn.00416ab1
lea ecx, [ebp - 0x2c]
push ebx
push esi
call fcn.00416ab1
lea ecx, [ebp - 0x104]
call fcn.0041fcfc
jmp 0x4aaeb1
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], bl
call fcn.0041fcfc
jmp 0x4ab09d
xor esi, esi
inc esi
lea eax, [ebp - 0x118]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x108]
movlpd qword [ebp - 0x118], xmm0
push edi
push eax
call fcn.004a88b1
add esp, 0xc
cmp byte [ebp - 0x108], 0
mov byte [ebp - 4], 0x11
je 0x4ab14a
push str.ReadFileContents
lea ecx, [ebp - 0x44]
call fcn.004147d9
push str.C:UsersAdamCodeCode_Psiphonpsicashpsicash_lib_androidpsicashlib_srcmaincpppsicashlibdatastore.cpp
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x12
call fcn.004147d9
mov byte [ebp - 4], 0x13
call fcn.0050c49b
push eax
lea eax, [ebp - 0x5c]
push str.unable_to_get_file_size__errno
push eax
call fcn.004ad5c4
add esp, 0xc
push 0x14d
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x14
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push eax
lea ecx, [ebp - 0x108]
call fcn.00488412
mov ecx, dword [ebp - 0xf8]
push eax
call fcn.004a9fc9
push ebx
push esi
lea ecx, [ebp - 0x5c]
call fcn.00416ab1
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00416ab1
lea ecx, [ebp - 0x44]
jmp 0x4ab073
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], bl
call fcn.0041fcfc
mov eax, dword [ebp - 0x118]
or eax, dword [ebp - 0x114]
jne 0x4ab1f1
push str.ReadFileContents
lea ecx, [ebp - 0x5c]
call fcn.004147d9
push str.C:UsersAdamCodeCode_Psiphonpsicashpsicash_lib_androidpsicashlib_srcmaincpppsicashlibdatastore.cpp
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x15
call fcn.004147d9
push str.file_size_is_zero
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x16
call fcn.004147d9
push 0x150
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 0x17
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
lea ecx, [ebp - 0x108]
call fcn.00488294
mov ecx, dword [ebp - 0xf8]
push eax
mov byte [ebp - 4], 0x18
call fcn.004a9fc9
lea ecx, [ebp - 0x104]
call fcn.0041fcfc
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00416ab1
push ebx
push esi
lea ecx, [ebp - 0x44]
call fcn.00416ab1
lea ecx, [ebp - 0x5c]
jmp 0x4aaeaa
push esi
lea ecx, [ebp - 0x1d8]
call fcn.004a869a
cmp dword [edi + 0x14], 0x10
mov byte [ebp - 4], 0x19
jb 0x4ab209
mov edi, dword [edi]
push 0x40
push 0x21
push edi
lea ecx, [ebp - 0x1d8]
call fcn.004a941e
mov eax, dword [ebp - 0x1d8]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x1cc], 6
je 0x4ab2d0
push str.ReadFileContents
lea ecx, [ebp - 0x44]
call fcn.004147d9
push str.C:UsersAdamCodeCode_Psiphonpsicashpsicash_lib_androidpsicashlib_srcmaincpppsicashlibdatastore.cpp
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x1a
call fcn.004147d9
mov byte [ebp - 4], 0x1b
call fcn.0050c49b
push eax
lea eax, [ebp - 0x5c]
push str.file_open_failed__errno
push eax
call fcn.004ad5c4
add esp, 0xc
push 0x156
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x1c
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push eax
push esi
lea ecx, [ebp - 0x108]
call fcn.00488294
mov ecx, dword [ebp - 0xf8]
push eax
mov byte [ebp - 4], 0x1d
call fcn.004a9fc9
lea ecx, [ebp - 0x104]
call fcn.0041fcfc
push ebx
push esi
lea ecx, [ebp - 0x5c]
call fcn.00416ab1
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00416ab1
push ebx
push esi
lea ecx, [ebp - 0x44]
call fcn.00416ab1
lea ecx, [ebp - 0x1d8]
call fcn.004a87cf
jmp 0x4aaeb1
mov dword [ebp - 0x104], ebx
mov dword [ebp - 0x100], ebx
mov dword [ebp - 0xfc], ebx
push 0xf
pop esi
mov dword [ebp - 0xc4], esi
mov dword [ebp - 0xc8], ebx
mov byte [ebp - 0xd8], bl
mov byte [ebp - 0xf1], bl
mov dword [ebp - 0xdc], esi
mov dword [ebp - 0xe0], ebx
mov byte [ebp - 0xf0], bl
mov byte [ebp - 4], 0x21
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0x1d8]
push eax
call fcn.004250bb
pop ecx
pop ecx
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x4ab375
lea eax, [ebp - 0xf0]
push eax
call fcn.004a8dbc
cmp dword [ebp - 0xe0], 0
pop ecx
jne 0x4ab353
mov byte [ebp - 0xf1], 1
jmp 0x4ab313
cmp byte [ebp - 0xf1], 0
lea eax, [ebp - 0xf0]
je 0x4ab49d
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0xd8]
call fcn.00416c90
push ebx
push 1
lea ecx, [ebp - 0xf0]
call fcn.00416ab1
mov dword [ebp - 4], 0x1f
mov dword [ebp - 0xac], esi
mov dword [ebp - 0xb0], ebx
mov byte [ebp - 0xc0], bl
push 0x550335
lea eax, [ebp - 0x104]
mov byte [ebp - 4], 0x27
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0048c44f
add esp, 0xc
lea ecx, [ebp - 0xc0]
push eax
call fcn.00414765
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00416ab1
cmp dword [ebp - 0xb0], 0
jne 0x4ab4ae
push str.ReadFileContents
lea ecx, [ebp - 0x5c]
call fcn.004147d9
push str.C:UsersAdamCodeCode_Psiphonpsicashpsicash_lib_androidpsicashlib_srcmaincpppsicashlibdatastore.cpp
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x28
call fcn.004147d9
push str.datastore_file_empty
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x29
call fcn.004147d9
push 0x177
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 0x2a
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
push 1
lea ecx, [ebp - 0x6c]
call fcn.00488294
mov ecx, dword [ebp - 0xf8]
push eax
mov byte [ebp - 4], 0x2b
call fcn.004a9fc9
lea ecx, [ebp - 0x68]
call fcn.0041fcfc
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00416ab1
push ebx
push 1
lea ecx, [ebp - 0x44]
call fcn.00416ab1
lea ecx, [ebp - 0x5c]
push ebx
push 1
call fcn.00416ab1
push ebx
push 1
lea ecx, [ebp - 0xc0]
call fcn.00416ab1
push ebx
push 1
lea ecx, [ebp - 0xd8]
call fcn.00416ab1
lea ecx, [ebp - 0x104]
call fcn.004169a4
lea ecx, [ebp - 0x1d8]
call fcn.004a87cf
push ebx
push 1
jmp 0x4aaeb3
push eax
lea ecx, [ebp - 0x104]
call fcn.00414552
jmp 0x4ab313
cmp dword [ebp - 0xc8], 0
mov byte [ebp - 0xa8], 1
je 0x4ab5a5
lea eax, [ebp - 0xc0]
mov byte [ebp - 0xa8], bl
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.004aa5e5
pop ecx
pop ecx
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 0x2c
push eax
lea ecx, [ebp - 0xd8]
call fcn.004146f4
neg eax
sbb al, al
inc al
xor al, 1
je 0x4ab593
push str.ReadFileContents
lea ecx, [ebp - 0x5c]
call fcn.004147d9
push str.C:UsersAdamCodeCode_Psiphonpsicashpsicash_lib_androidpsicashlib_srcmaincpppsicashlibdatastore.cpp
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x2d
call fcn.004147d9
push str.datastore_file_checksum_mismatch
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x2e
call fcn.004147d9
push 0x17f
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 0x2f
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
push 1
lea ecx, [ebp - 0x6c]
call fcn.00488294
mov ecx, dword [ebp - 0xf8]
push eax
mov byte [ebp - 4], 0x30
call fcn.004a9fc9
lea ecx, [ebp - 0x68]
call fcn.0041fcfc
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00416ab1
push ebx
push 1
lea ecx, [ebp - 0x44]
call fcn.00416ab1
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.00416ab1
lea ecx, [ebp - 0xa4]
jmp 0x4ab45b
push ebx
push 1
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0x27
call fcn.00416ab1
mov edi, dword [ebp - 0xf8]
lea eax, [ebp - 0xc0]
push eax
mov ecx, edi
mov byte [edi + 0x1c], 1
call fcn.004ac7b0
push ebx
push 1
lea ecx, [ebp - 0xc0]
call fcn.00416ab1
push ebx
push 1
lea ecx, [ebp - 0xd8]
call fcn.00416ab1
lea ecx, [ebp - 0x104]
call fcn.004169a4
lea ecx, [ebp - 0x1d8]
call fcn.004a87cf
push ebx
push 1
lea ecx, [ebp - 0x8c]
call fcn.00416ab1
mov eax, edi
jmp 0x4ab6e6
call fcn.004e47ed
ret