Function at 0x58e370
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b2c16
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x616040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
jge 0x58e3ae
push 0x80070057
call fcn.00402740
cmp word [ecx], 0x40
jne 0x58eef2
mov eax, str._None
lea ecx, [ecx]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x58e3e6
test dx, dx
je 0x58e3e2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x58e3e6
add ecx, 4
add eax, 4
test dx, dx
jne 0x58e3c0
xor eax, eax
jmp 0x58e3eb
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
je 0x58e44f
push 0x2338
xor edx, edx
lea ecx, [ebp - 0x18]
call fcn.0058f590
add esp, 4
push eax
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.004032d0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x58f01b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5ea8c8
push esi
call fcn.00403c30
add esp, 8
test al, al
je 0x58e4fa
push str._SystemRoot_explorer.exe
lea ecx, [ebp - 0x10]
call fcn.00402f60
xor edx, edx
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.0058be00
mov eax, dword [ebp - 0x10]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.00403660
add esp, 4
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.00587db0
mov esi, dword [ebp + 8]
add esp, 4
test esi, esi
je 0x58e4c0
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x58e4c0
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.00585ef0
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x58f01b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str._Manual
push esi
call fcn.00403c30
add esp, 8
test al, al
je 0x58e553
push 0x23b2
xor edx, edx
lea ecx, [ebp - 0x18]
call fcn.0058f590
add esp, 4
push eax
mov ecx, ebx
mov dword [ebp - 4], 2
call fcn.004032d0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x58e58e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x58e58e
push str._ManualSend
push esi
call fcn.00403c30
add esp, 8
test al, al
je 0x58e5c8
push 0x2596
xor edx, edx
lea ecx, [ebp - 0x18]
call fcn.0058f590
add esp, 4
push eax
mov ecx, ebx
mov dword [ebp - 4], 3
call fcn.004032d0
lea ecx, [ebp - 0x18]
call fcn.00402b60
mov esi, dword [ebp + 8]
test esi, esi
je 0x58f01b
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x58f01b
push 4
push 0x5eca6c
push 0
call dword [sym.imp.SHELL32.dll_ExtractIconW]
mov dword [esi], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str._Mailer
push esi
call fcn.00403c30
add esp, 8
test al, al
je 0x58e5f8
lea ecx, [ebp - 0x10]
call fcn.00402b30
lea edx, [ebp - 0x10]
mov dword [ebp - 4], 4
mov ecx, ebx
call fcn.005875c0
jmp 0x58e7a4
push str._OCR
push esi
call fcn.00403c30
add esp, 8
test al, al
je 0x58e62f
lea ecx, [ebp - 0x10]
call fcn.00402b30
push 0
push 0
lea edx, [ebp - 0x10]
mov dword [ebp - 4], 5
mov ecx, ebx
call fcn.00589950
add esp, 8
jmp 0x58e7a4
push str._SUOCR
push esi
call fcn.00403c30
add esp, 8
test al, al
je 0x58e714
push 0x246f
xor edx, edx
lea ecx, [ebp - 0x18]
call fcn.0058f590
add esp, 4
push eax
mov ecx, ebx
mov dword [ebp - 4], 6
call fcn.004032d0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.00402b60
mov esi, dword [ebp + 8]
test esi, esi
je 0x58f01b
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x58f01b
lea ecx, [ebp - 0x10]
call fcn.00402b30
mov dword [ebp - 4], 7
mov edx, 1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], 0x104
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or edx, ecx
jge 0x58e6ca
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00402c20
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push ecx
push eax
push str.open
push str..txt
push 2
push 0x20
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00403da0
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.00585ef0
lea ecx, [ebp - 0x10]
mov dword [esi], eax
call fcn.00402b60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str._NewApp
push esi
call fcn.00403c30
add esp, 8
test al, al
je 0x58e739
lea ecx, [ebp - 0x10]
call fcn.00402b30
mov dword [ebp - 4], 8
push 0
jmp 0x58e793
push 0x5e9bd4
push esi
call fcn.00403c30
add esp, 8
test al, al
je 0x58e770
lea ecx, [ebp - 0x10]
call fcn.00402b30
push 0x1e240
push 0
lea edx, [ebp - 0x10]
mov dword [ebp - 4], 9
mov ecx, ebx
call fcn.0058af20
add esp, 8
jmp 0x58e7a4
push str._NewAppOCR
push esi
call fcn.00403c30
add esp, 8
test al, al
je 0x58e7e2
lea ecx, [ebp - 0x10]
call fcn.00402b30
mov dword [ebp - 4], 0xa
push 4
push 0
push 0
lea edx, [ebp - 0x10]
mov ecx, ebx
call fcn.00589280
add esp, 0xc
mov esi, dword [ebp + 8]
test esi, esi
je 0x58eed8
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x58eed8
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.00585ef0
lea ecx, [ebp - 0x10]
mov dword [esi], eax
call fcn.00402b60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str._Viewer
push esi
call fcn.00403c30
add esp, 8
test al, al
je 0x58e8c7
push 0x23ba
xor edx, edx
lea ecx, [ebp - 0x18]
call fcn.0058f590
add esp, 4
push eax
mov ecx, ebx
mov dword [ebp - 4], 0xb
call fcn.004032d0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.00402b60
mov esi, dword [ebp + 8]
test esi, esi
je 0x58f01b
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x58f01b
lea ecx, [ebp - 0x10]
call fcn.00402b30
mov dword [ebp - 4], 0xc
mov edx, 1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], 0x104
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or edx, ecx
jge 0x58e87d
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00402c20
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push ecx
push eax
push str.open
push str..jpg
push 2
push 0x20
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00403da0
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.00585ef0
lea ecx, [ebp - 0x10]
mov dword [esi], eax
call fcn.00402b60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str._Evernote
push esi
call fcn.00403c30
add esp, 8
test al, al
je 0x58e9a3
lea ecx, [ebp - 0x18]
call fcn.00402b30
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0xd
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsEvernote.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58ea2a
lea eax, [ebp - 0x18]
mov edx, 0x5e9af0
push eax
call fcn.0058b690
add esp, 4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov dword [ebp - 0x10], 0
push eax
call fcn.00403660
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0xe
mov ecx, esp
push eax
call fcn.00402f30
mov ecx, ebx
call fcn.00587db0
mov esi, dword [ebp + 8]
add esp, 4
test esi, esi
je 0x58e981
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x58e981
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.00585ef0
mov dword [esi], eax
lea ecx, [ebp - 0x14]
call fcn.00402b60
lea ecx, [ebp - 0x18]
call fcn.00402b60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str._Box_Sync
push esi
call fcn.00403c30
add esp, 8
test al, al
je 0x58ea50
push str._Box_Sync
lea ecx, [ebp - 0x14]
call fcn.00402f60
lea edx, [ebp - 0x14]
mov dword [ebp - 4], 0xf
lea ecx, [ebp - 0x18]
call fcn.00589660
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x11
call fcn.00402b60
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x58ea2a
push ecx
lea eax, [ebp - 0x18]
mov ecx, esp
push eax
call fcn.00402f30
mov ecx, ebx
call fcn.00587db0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
add esp, 4
mov dword [eax], 0
call fcn.00402b60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5e9af0
mov ecx, ebx
call fcn.00403020
lea ecx, [ebp - 0x18]
call fcn.00402b60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str._DropBox
push esi
call fcn.00403c30
add esp, 8
test al, al
je 0x58ebc8
push str._DropBox
lea ecx, [ebp - 0x14]
call fcn.00402f60
lea edx, [ebp - 0x14]
mov dword [ebp - 4], 0x12
lea ecx, [ebp - 0x18]
call fcn.00589660
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x14
call fcn.00402b60
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push 0x5e9af0
test eax, eax
je 0x58ea2f
lea ecx, [ebp - 0x10]
call fcn.00402f60
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x15
call fcn.00585920
mov byte [ebp - 4], 0x16
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x58eb16
mov edi, dword [ebp - 0x10]
lea ecx, [esi - 0x10]
add edi, 0xfffffff0
cmp ecx, edi
je 0x58eb6c
cmp dword [edi + 0xc], 0
jl 0x58eb10
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x58eb10
push ecx
call fcn.00403660
add esp, 4
lea edx, [edi + 0xc]
mov esi, eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x58eb08
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
lea eax, [esi + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x58eb6c
push dword [esi - 0xc]
push esi
jmp 0x58eb64
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
lea edx, [eax - 0x10]
lea esi, [ecx - 0x10]
cmp edx, esi
je 0x58eb6c
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x58eb60
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x58eb60
push edx
call fcn.00403660
add esp, 4
mov dword [ebp - 0x1c], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x58eb58
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
add eax, 0x10
mov dword [ebp - 0x10], eax
jmp 0x58eb6c
push dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x10]
call fcn.004035a0
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
push eax
call fcn.00402f30
mov ecx, ebx
call fcn.00587db0
mov esi, dword [ebp + 8]
add esp, 4
test esi, esi
je 0x58eb9e
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x58eb9e
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.00585ef0
mov dword [esi], eax
lea ecx, [ebp - 0x14]
call fcn.00402b60
lea ecx, [ebp - 0x10]
call fcn.00402b60
lea ecx, [ebp - 0x18]
call fcn.00402b60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str._OneDrive
push esi
call fcn.00403c30
add esp, 8
test al, al
je 0x58ec69
push str._OneDrive
lea ecx, [ebp - 0x18]
call fcn.00402f60
lea edx, [ebp - 0x18]
mov dword [ebp - 4], 0x17
lea ecx, [ebp - 0x14]
call fcn.00589660
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x19
call fcn.00402b60
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov ecx, ebx
test eax, eax
je 0x58ec45
push str.OneDrive
call fcn.00403020
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov dword [eax], 0
call fcn.00402b60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5e9af0
call fcn.00403020
lea ecx, [ebp - 0x14]
call fcn.00402b60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str._SugerSync
push esi
call fcn.00403c30
add esp, 8
test al, al
jne 0x58ec8d
push str._Box.net
push esi
call fcn.00403c30
add esp, 8
test al, al
je 0x58ecab
push 0x5e9af0
mov ecx, ebx
call fcn.00403020
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5e9bb0
push esi
call fcn.00403c30
add esp, 8
test al, al
je 0x58ecd3
lea ecx, [ebp - 0x18]
call fcn.00402b30
mov dword [ebp - 4], 0x1a
mov ecx, 0x5e7498
jmp 0x58ecf9
push str._Picture
push esi
call fcn.00403c30
add esp, 8
test al, al
je 0x58ed3d
lea ecx, [ebp - 0x18]
call fcn.00402b30
mov dword [ebp - 4], 0x1b
mov ecx, 0x5e74c8
lea eax, [ebp - 0x18]
mov edx, ebx
push eax
call fcn.00586f80
mov esi, dword [ebp + 8]
add esp, 4
test esi, esi
je 0x58ed23
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x58ed23
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
call fcn.00585ef0
mov dword [esi], eax
lea ecx, [ebp - 0x18]
call fcn.00402b60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str._TBFolder
push esi
call fcn.00403c30
add esp, 8
test al, al
je 0x58edc1
lea ecx, [ebp - 0x10]
call fcn.00402b30
lea edx, [ebp - 0x10]
mov dword [ebp - 4], 0x1c
mov ecx, 0x5e74c8
call fcn.005873d0
mov esi, dword [ebp - 0x10]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or ecx, eax
jge 0x58ed92
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00402c20
mov esi, dword [ebp - 0x10]
push str.ToolBox
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00403da0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x58eed8
push str.ToolBox
jmp 0x58eec1
push str._MPNFolder
push esi
call fcn.00403c30
add esp, 8
test al, al
je 0x58ee42
lea ecx, [ebp - 0x10]
call fcn.00402b30
lea edx, [ebp - 0x10]
mov dword [ebp - 4], 0x1d
mov ecx, 0x5e74c8
call fcn.005873d0
mov esi, dword [ebp - 0x10]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or ecx, eax
jge 0x58ee16
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00402c20
mov esi, dword [ebp - 0x10]
push str.MP_Navigator
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00403da0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x58eed8
push str.MP_Navigator
jmp 0x58eec1
push str._MPNEXFolder
push esi
call fcn.00403c30
add esp, 8
test al, al
je 0x58f01b
lea ecx, [ebp - 0x10]
call fcn.00402b30
lea edx, [ebp - 0x10]
mov dword [ebp - 4], 0x1e
mov ecx, 0x5e74c8
call fcn.005873d0
mov esi, dword [ebp - 0x10]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or ecx, eax
jge 0x58ee9b
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00402c20
mov esi, dword [ebp - 0x10]
push str.MP_Navigator_Ex
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00403da0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x58eed8
push str.MP_Navigator_Ex
mov ecx, ebx
call fcn.00403020
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.00585ef0
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
lea ecx, [ebp - 0x10]
call fcn.00402b60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, str.AdobeDC
mov eax, ecx
lea esp, [esp]
mov di, word [eax]
cmp di, word [edx]
jne 0x58ef26
test di, di
je 0x58ef22
mov di, word [eax + 2]
cmp di, word [edx + 2]
jne 0x58ef26
add eax, 4
add edx, 4
test di, di
jne 0x58ef00
xor eax, eax
jmp 0x58ef2b
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
je 0x58ef4a
push 0x1c
push str.Adobe_Acrobat_DC___Reader_DC
mov ecx, ebx
call fcn.004035a0
mov eax, dword [ebp + 8]
jmp 0x58f015
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x58ef6f
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.00403660
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0x1f
jmp 0x58ef97
push dword [esi]
call dword [sym.imp.SHELL32.dll_PathIsExe]
test eax, eax
je 0x58f006
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.00403660
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0x20
lea eax, [esi - 0x10]
mov edi, esp
push eax
call fcn.00403660
add esp, 4
add eax, 0x10
mov ecx, ebx
mov dword [edi], eax
call fcn.00587db0
mov edi, dword [ebp + 8]
add esp, 4
test edi, edi
je 0x58efd3
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x58efd3
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
call fcn.00585ef0
mov esi, dword [ebp - 0x18]
mov dword [edi], eax
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x58f01b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov ecx, ebx
call fcn.004032d0
mov eax, dword [ebp + 8]
test eax, eax
je 0x58f01b
mov dword [eax], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret