Function at 0x4165c0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x50f88b
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x53c1a4]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53c1a4]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
mov esi, edx
call fcn.00406d70
mov dword [esp + 0x278], 0
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x41664e
lea ecx, [eax - 1]
test ecx, ecx
jl 0x416a71
cmp ecx, eax
jg 0x416a71
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x41664e
cmp ax, 0x2f
je 0x41664e
mov edx, 0x51faf0
lea edi, [esp + 0x14]
call fcn.00417f00
test esi, esi
jne 0x416656
xor eax, eax
jmp 0x41666f
mov eax, esi
lea edx, [eax + 2]
jmp 0x416660
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416660
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x1c]
push ecx
call fcn.00418e70
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x4166b7
lea ecx, [eax - 1]
test ecx, ecx
jl 0x416a71
cmp ecx, eax
jg 0x416a71
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x4166b7
cmp ax, 0x2f
je 0x4166b7
mov edx, 0x51faf0
lea edi, [esp + 0x14]
call fcn.00417f00
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
mov ebx, str.data.zip
call fcn.00418040
mov eax, dword [eax]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 8
push eax
call esi
mov edi, eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or ebp, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4166fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x416752
mov dword [esp + 0x278], ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x416725
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x270]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.004ea83a
add esp, 0x268
ret
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ebx, str.image.db
call fcn.00418040
mov eax, dword [eax]
add esp, 8
push eax
call esi
mov edi, eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41678f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jne 0x416701
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ebx, str.video.db
call fcn.00418040
mov eax, dword [eax]
add esp, 8
push eax
call esi
mov edi, eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4167d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jne 0x416701
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ebx, str.audio.db
call fcn.00418040
mov eax, dword [eax]
add esp, 8
push eax
call esi
mov edi, eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x416817
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
test edi, edi
jne 0x41684a
push ecx
lea edx, [esp + 0x1c]
push edx
mov ebx, str.contact.db
call fcn.00418040
mov eax, dword [eax]
add esp, 8
push eax
call esi
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.00406e40
test edi, edi
je 0x416854
lea ecx, [esp + 0x14]
call fcn.00406e40
jmp 0x416725
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ebx, str.sms.db
call fcn.00418040
mov eax, dword [eax]
add esp, 8
push eax
call esi
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.00406e40
test edi, edi
jne 0x416846
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
mov ebx, str.call.db
call fcn.00418040
mov eax, dword [eax]
add esp, 8
push eax
call esi
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.00406e40
lea ecx, [esp + 0x14]
test edi, edi
jne 0x41684a
push ecx
lea edx, [esp + 0x1c]
push edx
mov ebx, str.alarm.db
call fcn.00418040
mov eax, dword [eax]
add esp, 8
push eax
call esi
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.00406e40
test edi, edi
jne 0x416846
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ebx, str.wifi.db
call fcn.00418040
mov eax, dword [eax]
add esp, 8
push eax
call esi
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.00406e40
test edi, edi
jne 0x416846
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
mov ebx, str.contacts.zip
call fcn.00418040
mov eax, dword [eax]
add esp, 8
push eax
call esi
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.00406e40
lea ecx, [esp + 0x14]
test edi, edi
jne 0x41684a
push ecx
lea edx, [esp + 0x1c]
push edx
mov ebx, str.smses.zip
call fcn.00418040
mov eax, dword [eax]
add esp, 8
push eax
call esi
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.00406e40
test edi, edi
jne 0x416846
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ebx, str.calllogs.zip
call fcn.00418040
mov eax, dword [eax]
add esp, 8
push eax
call esi
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.00406e40
test edi, edi
jne 0x416846
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
mov ebx, str.efs.zip
call fcn.00418040
mov eax, dword [eax]
add esp, 8
push eax
call esi
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.00406e40
test edi, edi
jne 0x416846
mov edx, 0x51fd50
lea edi, [esp + 0x14]
xor ebp, ebp
call fcn.00417f00
mov ecx, dword [esp + 0x14]
push ecx
call esi
test eax, eax
je 0x416a61
mov edx, edi
push edx
lea eax, [esp + 0x1c]
push eax
mov ebx, str..apk
call fcn.00418040
mov edx, dword [esp + 0x20]
add esp, 8
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x416a26
lea ecx, [esp + 0x18]
call fcn.00406e40
mov ecx, edi
call fcn.00406e40
xor eax, eax
jmp 0x41672a
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov bl, 0x10
mov edi, edi
cmp word [esp + 0x48], 0x2e
je 0x416a3e
test byte [esp + 0x1c], bl
je 0x416a4c
lea eax, [esp + 0x1c]
push eax
push esi
call edi
test eax, eax
jne 0x416a30
jmp 0x416a51
mov ebp, 1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x18]
call fcn.00406e40
lea ecx, [esp + 0x14]
call fcn.00406e40
mov eax, ebp
jmp 0x41672a
push 0x80070057
call fcn.00402a90
int3