Function at 0x10008360
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x1004e428
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x10062da0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
push str.EDPEDISK_CEdpEDiskCtrlInterface::RewriteBackupSectors_enter
push 0
push 0xa96
push str.CEdpEDiskCtrlInterface::RewriteBackupSectors
mov ecx, str..EdpEDiskCtrlInterface.cpp
call fcn.10010760
add esp, 0x10
push 0x1005571a
lea ecx, [esp + 0x18]
call fcn.10002ca0
lea esi, [esp + 0x14]
mov dword [esp + 0x20], 0
call fcn.10008210
mov edx, dword [esp + 0x14]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x100083e3
push 0
mov ecx, esi
call fcn.10002ae0
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x100083fb
call fcn.10007e50
test al, al
je 0x100085aa
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x1000842d
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x100085c6
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10057294
push esi
call ebp
push 0x100572a8
push esi
mov edi, eax
call ebp
mov ebp, eax
test edi, edi
je 0x100085a3
test ebp, ebp
je 0x100085a3
push str.EDPEDISK_RewriteBackupSectors_CheckSafe6BakLabel_begin
push 0
push 0xab8
push str.CEdpEDiskCtrlInterface::RewriteBackupSectors
mov ecx, str..EdpEDiskCtrlInterface.cpp
call fcn.10010760
mov edx, dword [esp + 0x38]
add esp, 0x10
lea ecx, [esp + 0x13]
push ecx
push edx
mov byte [esp + 0x1b], 0
call edi
test eax, eax
setne al
test al, al
je 0x1000853f
cmp byte [esp + 0x13], 0
je 0x1000853f
push str.EDPEDISK_RewriteBackupSectors_RewriteSafe6BakLabel_begin
push 0
push 0xabf
push str.CEdpEDiskCtrlInterface::RewriteBackupSectors
mov ecx, str..EdpEDiskCtrlInterface.cpp
call fcn.10010760
mov eax, dword [esp + 0x38]
add esp, 0x10
push eax
call ebp
test eax, eax
jne 0x100084fa
push str.EDPEDISK_RewriteBackupSectors_RewriteSafe6BakLabel_failed
push 4
push 0xac2
push str.CEdpEDiskCtrlInterface::RewriteBackupSectors
mov ecx, str..EdpEDiskCtrlInterface.cpp
call fcn.10010760
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x14]
call fcn.10002d60
jmp 0x100085d2
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.EDPEDISK_CEdpEDiskCtrlInterface::RewriteBackupSectors_leave
push 0
push 0xad3
push str.CEdpEDiskCtrlInterface::RewriteBackupSectors
mov ecx, str..EdpEDiskCtrlInterface.cpp
call fcn.10010760
add esp, 0x10
lea ecx, [esp + 0x14]
call fcn.10002d60
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret 4
push str.EDPEDISK_RewriteBackupSectors_CheckSafe6BakLabel_failed
push 4
push 0xaca
push str.CEdpEDiskCtrlInterface::RewriteBackupSectors
mov ecx, str..EdpEDiskCtrlInterface.cpp
call fcn.10010760
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000858c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100085d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret 4