Function at 0x1000528e
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push 0x29c
mov eax, 0x1003c987
call fcn.10023bba
mov ebx, ecx
xor esi, esi
push ebx
mov dword [ebp - 0x254], esi
call fcn.1000a08f
cmp edx, esi
ja 0x100052c6
jb 0x100052ba
cmp eax, 0x7d000
jae 0x100052c6
mov edi, ebx
call fcn.10004ed3
jmp 0x10005685
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push esi
push eax
call fcn.10025220
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push str..jpg
push str..flv
mov eax, ebx
call fcn.1000b662
mov edx, ebx
lea ecx, [ebp - 0x234]
call fcn.1000512c
lea edx, [ebp - 0x218]
lea ecx, [ebp - 0x250]
mov dword [ebp - 4], esi
call fcn.1000512c
mov byte [ebp - 4], 1
cmp dword [ebp - 0x21c], 8
mov edi, dword [ebp - 0x230]
jae 0x10005336
lea edi, [ebp - 0x230]
call fcn.10009f6d
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x10005350
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x1000536c
lea eax, [ebp - 0x230]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
push eax
push ebx
call esi
test eax, eax
jne 0x100053a4
push ebx
push str.MoveFileW_failed:_s
call fcn.10019e14
pop ecx
pop ecx
mov edi, ebx
call fcn.10004ed3
push 0
push 1
lea esi, [ebp - 0x250]
call fcn.10001b39
push 0
jmp 0x10005678
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100053e1
cmp dword [ebp - 0x238], 8
mov eax, dword [ebp - 0x24c]
jae 0x100053ca
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
jne 0x100053e1
lea eax, [ebp - 0x218]
push eax
jmp 0x1000537b
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x100053f6
lea eax, [ebp - 0x230]
push eax
push 0x1004017c
call fcn.10019b3e
pop ecx
pop ecx
push 0
push 0
lea eax, [ebp - 0x270]
call fcn.10011c51
mov byte [ebp - 4], 4
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x1000542b
lea eax, [ebp - 0x230]
push eax
call fcn.1000a08f
push edx
push eax
lea ebx, [ebp - 0x28c]
call fcn.1000a943
sub esp, 0x10
mov byte [ebp - 4], 5
mov edx, eax
mov esi, esp
mov dword [ebp - 0x258], esp
call fcn.10010de4
lea eax, [ebp - 0x270]
push eax
mov edx, str.sr_flv_size
mov byte [ebp - 4], 6
call fcn.10011eef
mov edi, eax
mov byte [ebp - 4], 5
call fcn.10011037
xor esi, esi
push 0
inc esi
push esi
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.10001a41
mov eax, dword [ebp - 0x24c]
push 8
pop ebx
cmp dword [ebp - 0x238], ebx
jae 0x1000549c
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100054d6
mov eax, dword [ebp - 0x24c]
cmp dword [ebp - 0x238], ebx
jae 0x100054bb
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x2a8]
push eax
call fcn.100051ce
pop ecx
pop ecx
mov byte [ebp - 4], 7
mov dword [ebp - 0x254], esi
jmp 0x100054f3
push 0x1003fb64
lea ecx, [ebp - 0x28c]
call fcn.10001789
mov dword [ebp - 4], ebx
mov dword [ebp - 0x254], 2
sub esp, 0x18
mov edx, eax
mov esi, esp
mov dword [ebp - 0x258], esp
call fcn.10010de4
lea eax, [ebp - 0x270]
push eax
mov edx, str.sr_thumb
mov dword [ebp - 4], 9
call fcn.10011eef
mov edi, eax
mov byte [ebp - 4], bl
call fcn.10011037
test byte [ebp - 0x254], 2
je 0x10005546
and dword [ebp - 0x254], 0xfffffffd
push 0
push 1
lea ecx, [ebp - 0x28c]
call fcn.10001a41
mov dword [ebp - 4], 4
test byte [ebp - 0x254], 1
je 0x10005565
push 0
push 1
lea ecx, [ebp - 0x2a8]
call fcn.10001a41
mov ecx, dword [ebp - 0x230]
cmp dword [ebp - 0x21c], ebx
jae 0x10005579
lea ecx, [ebp - 0x230]
lea eax, [ebp - 0x2a8]
push eax
call fcn.10004f5b
sub esp, 0x14
mov byte [ebp - 4], 0xa
mov edx, eax
mov esi, esp
mov dword [ebp - 0x258], esp
call fcn.10010de4
lea eax, [ebp - 0x270]
push eax
mov edx, str.data_time
mov byte [ebp - 4], 0xb
call fcn.10011eef
mov edi, eax
mov byte [ebp - 4], 0xa
call fcn.10011037
xor edi, edi
push edi
push 1
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 4
call fcn.10001a41
mov eax, dword [ebp - 0x230]
cmp dword [ebp - 0x21c], ebx
jae 0x100055e3
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x270]
call fcn.1001c74f
test eax, eax
jne 0x10005641
mov eax, dword [ebp - 0x230]
cmp dword [ebp - 0x21c], ebx
jae 0x10005607
lea eax, [ebp - 0x230]
push eax
push str.CachedReport_failed:_s
call fcn.10019ca9
mov edi, dword [ebp - 0x230]
pop ecx
pop ecx
cmp dword [ebp - 0x21c], ebx
jae 0x10005628
lea edi, [ebp - 0x230]
call fcn.10004ed3
lea esi, [ebp - 0x270]
mov byte [ebp - 4], 1
call fcn.10010fb4
jmp 0x1000538e
mov esi, dword [ebp - 0x24c]
cmp dword [ebp - 0x238], ebx
jae 0x10005655
lea esi, [ebp - 0x24c]
call fcn.10005229
lea esi, [ebp - 0x270]
mov byte [ebp - 4], 1
call fcn.10010fb4
push edi
push 1
lea esi, [ebp - 0x250]
call fcn.10001b39
push edi
push 1
lea esi, [ebp - 0x234]
call fcn.10001b39
call fcn.10023c3d
ret