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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x854
mov eax, dword [0x43e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x105
lea eax, [ebp - 0x220]
xor bl, bl
push eax
push 0
mov byte [ebp - 0x849], bl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x220]
call fcn.00402950
cmp dword [0x43fc0c], 0
mov esi, eax
jne 0x42f1a3
mov ecx, esi
call fcn.00402620
cmp dword [0x43fc0c], 0
movzx eax, ax
jne 0x42f18a
cmp ax, 0xffff
je 0x42f0ff
nop dword [eax]
cwde
cmp eax, 0x10
jg 0x42f012
je case.0x42f029.257
sub eax, 2
cmp eax, 6
ja case.default.0x42f029
movzx eax, byte [eax + 0x42f2e8]
jmp dword [eax*4 + 0x42f2e4]
cmp eax, 0x110
jg 0x42f030
je case.0x42f029.257
sub eax, 0x101
cmp eax, 5
ja case.default.0x42f029
jmp dword [eax*4 + 0x42f2f0]
cmp eax, 0x220
jg 0x42f045
je case.0x42f029.257
sub eax, 0x200
je case.0x42f029.257
sub eax, 0x10
jmp 0x42f04a
cmp eax, 0x300
jne case.default.0x42f029
push 1
push 0
push dword [esi + 0x18]
push dword [esi]
call fcn.00410712
add esp, 0x10
test eax, eax
je 0x42f0d1
push 0x40
push str._fseeki64
push 0x43fe18
mov dword [0x43fc0c], 0xd7
call fcn.0040bfa6
add esp, 0xc
xor eax, eax
mov word [0x43fe96], ax
mov eax, dword [esi + 0x18]
mov dword [0x43fc08], eax
push 0x104
push str.SEEK_CUR
push 0x43fc10
call fcn.0040bfa6
add esp, 0xc
xor eax, eax
mov word [0x43fe16], ax
push 0x104
push str.C:JenkinsAE_build_workHibun_AE_Current_src_sftlcmn_sftl_arc1.c
push 0x43fe98
call fcn.0040bfa6
add esp, 0xc
xor eax, eax
mov word [0x44009e], ax
cmp dword [0x43fc0c], 0
jne 0x42f18a
mov ecx, esi
call fcn.00402620
cmp dword [0x43fc0c], 0
movzx eax, ax
jne 0x42f18a
cmp ax, 0xffff
jne 0x42eff0
push dword [esi]
call fcn.0040ae9a
add esp, 4
push esi
call fcn.0040facf
add esp, 4
test bl, bl
jne 0x42f1b8
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406bb3
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x849]
mov ecx, esi
call fcn.00403ce0
cmp dword [0x43fc0c], 0
jne 0x42f18a
mov bl, byte [ebp - 0x849]
jmp 0x42f0ff
push 0x104
xor eax, eax
mov dword [0x43fc0c], 8
push str.C:JenkinsAE_build_workHibun_AE_Current_src_sfslfdec_sfmkcore.c
push 0x43fe98
mov word [0x43fe96], ax
mov dword [0x43fc08], eax
mov word [0x43fe16], ax
call fcn.0040bfa6
add esp, 0xc
xor eax, eax
mov word [0x44009e], ax
xor ebx, ebx
test esi, esi
je 0x42f1a5
push dword [esi]
call fcn.0040ae9a
add esp, 4
push esi
call fcn.0040facf
add esp, 4
xor ebx, ebx
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406bb3
mov esp, ebp
pop ebp
ret
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0
mov dword [ebp - 0x850], eax
lea eax, [ebp - 0x428]
push 0
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0040ac25
add esp, 0x14
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x638]
push str._s_s
push eax
call fcn.00401d40
add esp, 0x10
lea eax, [ebp - 0x848]
push eax
push 0
push 0x43a2cc
lea eax, [ebp - 0x638]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x42f27d
push 0x104
push str.C:JenkinsAE_build_workHibun_AE_Current_src_sfslfdec_sfmkcore.c
push 0x43fe98
mov dword [0x43fc0c], 0xffffef1a
mov word [0x43fe96], ax
mov dword [0x43fc08], eax
mov word [0x43fe16], ax
call fcn.0040bfa6
add esp, 0xc
xor eax, eax
mov word [0x44009e], ax
xor ebx, ebx
push dword [ebp - 0x850]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406bb3
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0x32
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop
lea eax, [ebp - 0x848]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
je 0x42f2be
call edi
cmp eax, 2
je 0x42f2be
call edi
cmp eax, 3
je 0x42f2be
push esi
call ebx
add esi, 0x32
cmp esi, 0x41a
jb 0x42f290
push dword [ebp - 0x850]
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406bb3
mov esp, ebp
pop ebp
ret