Function at 0x1003fd80
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6f0
mov eax, dword [0x10138e70]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0
mov dword [ebp - 0x6ec], 0
mov dword [ebp - 0x6f0], 0
mov dword [ebp - 0x6e8], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x100401f7
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push eax
call fcn.1006ff30
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x6e4], ax
lea eax, [ebp - 0x6e2]
push eax
call fcn.1006ff30
add esp, 0x18
lea eax, [ebp - 0x220]
push 0
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x2f
push esi
call fcn.1007204b
mov edi, eax
add esp, 8
test edi, edi
jne 0x1003fe71
push 0x5c
push esi
call fcn.1007204b
mov edi, eax
add esp, 8
test edi, edi
jne 0x1003fe71
push 0xbba
push 0x1009e5c8
mov byte [ebp - 0x18], al
xorps xmm0, xmm0
mov word [ebp - 7], ax
mov byte [ebp - 5], al
lea eax, [ebp - 0x18]
push 0x14
push eax
mov dword [ebp - 0x6ec], 0xbba
movdqu xmmword [ebp - 0x17], xmm0
call fcn.10070ff2
add esp, 0x10
lea eax, [ebp - 0x18]
push eax
jmp 0x100401d2
push str._apk_
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.1006e675
add esp, 0xc
lea eax, [ebp - 0x220]
mov ecx, 0x1013df24
push eax
call fcn.10041220
lea eax, [edi + 2]
push eax
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.1006e675
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x1003ff7f
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0x4dc], ax
lea eax, [ebp - 0x4da]
push eax
call fcn.1006ff30
mov ecx, dword [0x1013df34]
add esp, 0xc
mov eax, dword [ecx]
call dword [eax + 4]
push 0x64
lea ecx, [ebp - 0x4dc]
push ecx
mov edx, dword [eax]
lea ecx, [ebp - 0x220]
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x1003ff72
lea eax, [esi + 0x1250]
push eax
lea eax, [ebp - 0x4dc]
push eax
call fcn.1006eb63
add esp, 8
test eax, eax
jne 0x1003ff72
push 0x104
lea eax, [ebp - 0x6e4]
push eax
lea eax, [ebp - 0x220]
push eax
call edi
test eax, eax
je 0x1003ff5b
lea eax, [ebp - 0x6e4]
push eax
push 0x824
push esi
call fcn.1006e6e1
add esp, 0xc
jmp 0x1003ff7f
lea eax, [ebp - 0x220]
push eax
push 0x824
push esi
call fcn.1006e6e1
add esp, 0xc
jmp 0x1003ff7f
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.http:__
push esi
call fcn.1006e7fb
add esp, 8
test eax, eax
jne 0x1003ffb6
push str.https:__
push esi
call fcn.1006e7fb
add esp, 8
test eax, eax
jne 0x1003ffb6
lea eax, [ebp - 0x6ec]
push eax
lea eax, [ebp - 0x6e8]
push eax
push 1
push esi
jmp 0x1004002a
mov ecx, dword [0x1013df34]
mov eax, dword [ecx]
call dword [eax + 0x24]
lea ecx, [ebp - 0x220]
push ecx
push esi
mov edx, dword [eax]
mov ecx, eax
call dword [edx]
test eax, eax
je 0x1004014f
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x104
lea eax, [ebp - 0x6e4]
push eax
lea eax, [ebp - 0x220]
push eax
call edi
test eax, eax
jne 0x10040013
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x6e4]
push 0x104
push eax
call fcn.1006e6e1
add esp, 0xc
lea eax, [ebp - 0x6ec]
push eax
lea eax, [ebp - 0x6e8]
push eax
push 0
lea eax, [ebp - 0x6e4]
push eax
mov ecx, 0x1013df21
call fcn.10042410
test eax, eax
je 0x1004007e
push dword [ebp - 0x6e8]
mov ecx, 0x1013df40
push 1
push dword [esi + 0x1320]
call fcn.10042f40
cmp dword [esi + 0x1318], 0
je 0x10040077
lea eax, [ebp - 0x6f0]
mov ecx, 0x1013df21
push eax
push dword [esi + 0x131c]
lea eax, [esi + 0x1048]
push eax
call fcn.10042520
push 1
jmp 0x10040118
mov eax, dword [ebp - 0x6e8]
test eax, eax
jne 0x10040103
push 0x3e8
call fcn.1006daa9
add esp, 4
mov dword [ebp - 0x6e8], eax
test eax, eax
je 0x100401f6
push 0x1f3
lea eax, [ebp - 0x413]
mov byte [ebp - 0x414], 0
push 0
push eax
call fcn.1006ff30
add esp, 0xc
lea eax, [ebp - 0x414]
mov ecx, 0x1013df24
push 0x1f4
push eax
call fcn.10041270
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x6ec]
push str._d___s
push 0x3e8
push dword [ebp - 0x6e8]
call fcn.10070ff2
add esp, 0x14
push dword [ebp - 0x6e8]
jmp 0x10040104
push eax
push 0
push dword [esi + 0x1320]
mov ecx, 0x1013df40
call fcn.10042f40
push 0
push dword [esi + 0x1320]
mov ecx, 0x1013df24
call fcn.10042040
mov eax, dword [ebp - 0x6e8]
test eax, eax
je 0x100401f6
push eax
call fcn.1006da71
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006f41a
mov esp, ebp
pop ebp
ret
push 0x3e8
mov dword [ebp - 0x6ec], 0xbb9
call fcn.1006daa9
add esp, 4
mov dword [ebp - 0x6e8], eax
test eax, eax
je 0x100401f6
push 0x1f3
lea eax, [ebp - 0x413]
mov byte [ebp - 0x414], 0
push 0
push eax
call fcn.1006ff30
add esp, 0xc
lea eax, [ebp - 0x414]
mov ecx, 0x1013df24
push 0x1f4
push eax
call fcn.10041270
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x6ec]
push str._d___s
push 0x3e8
push dword [ebp - 0x6e8]
call fcn.10070ff2
add esp, 0x14
push dword [ebp - 0x6e8]
push 0
push dword [esi + 0x1320]
mov ecx, 0x1013df40
call fcn.10042f40
push 0
push dword [esi + 0x1320]
mov ecx, 0x1013df24
call fcn.10042040
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1006f41a
mov esp, ebp
pop ebp
ret