Function at 0x180003fa0
Capabilities:
Check if file exists
Delete file

Disassembly:
mov rax, rsp
push rbp
push r13
push r14
lea rbp, [rax - 0x68]
sub rsp, 0x150
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rax, qword [0x18002f0d0]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rdx, qword [0x180032598]
lea rcx, [rsp + 0x30]
call fcn.1800137d0
mov rdi, rax
call fcn.1800142d0
lea rbx, [0x180029560]
lea r8, [0x180029588]
test eax, eax
cmovne r8, rbx
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.180001630
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or rsi, 0xffffffffffffffff
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180004038
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18000406b
mov rax, qword [rsp + 0x20]
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x180004064
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov al, 1
jmp 0x1800042b0
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x28], rax
lea rdx, str.http:__neirong.funshion.com_airport_files_
test rdx, 0xffffffffffff0000
jne 0x1800040b8
movzx edi, dx
xor edx, edx
mov ecx, edi
call fcn.180002750
test rax, rax
je 0x1800040c9
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1800017e0
jmp 0x1800040c9
mov r8d, 0x2a
lea rcx, [rsp + 0x28]
call fcn.180002130
nop
call fcn.1800142d0
test eax, eax
mov rcx, rbx
jne 0x1800040dc
lea rcx, [0x180029588]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rdx, rax
xor r14d, r14d
test rax, rax
jne 0x1800040f2
mov ecx, r14d
jmp 0x180004103
xor eax, eax
mov rcx, rsi
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r8d, ecx
lea rcx, [rsp + 0x28]
call fcn.180003a10
xor r13b, r13b
mov r12d, 3
mov rbx, qword [rsp + 0x28]
nop
lea rcx, [rbp - 0x70]
call fcn.1800109f0
nop
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], r14
mov word [rsp + 0x68], r14w
xor eax, eax
mov rcx, rsi
mov rdx, qword [rsp + 0x20]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x68]
call fcn.180001e00
nop
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r14
mov word [rsp + 0x40], r14w
xor eax, eax
mov rcx, rsi
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.180001e00
nop
mov r9d, 0x3a98
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x70]
call fcn.180010b60
mov edi, eax
cmp qword [rsp + 0x58], 8
jb 0x1800041c0
mov rcx, qword [rsp + 0x40]
call fcn.1800047e8
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r14
mov word [rsp + 0x40], r14w
cmp qword [rbp - 0x80], 8
jb 0x1800041e5
mov rcx, qword [rsp + 0x68]
call fcn.1800047e8
test edi, edi
je 0x180004248
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180004254
mov eax, dword [0x1800325c8]
test al, 1
jne 0x180004224
or eax, 1
mov dword [0x1800325c8], eax
lea rcx, [0x1800325c0]
call fcn.180016200
lea rcx, [0x180021e30]
call fcn.18000505c
nop
cmp byte [0x1800325c3], 0
jne 0x180004267
lea rcx, [rsp + 0x20]
call fcn.180016820
test al, al
jne 0x180004267
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x180004254
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
lea rcx, [rbp - 0x70]
call fcn.180010ac0
dec r12d
je 0x180004274
jmp 0x180004120
mov r13b, 1
lea rcx, [rbp - 0x70]
call fcn.180010ac0
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000428f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rax, qword [rsp + 0x20]
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x1800042ac
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
movzx eax, r13b
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.180004800
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop rbp
ret