Function at 0x407e55
Capabilities:
Check if file exists

Disassembly:
push 0x9c
mov eax, 0x4f8344
call fcn.004de80b
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
and dword [ebp - 0x28], 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
mov esi, ebx
call fcn.0040a6dc
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
lea edi, [ebp - 0x14]
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x14], eax
call fcn.0046b5c0
test al, al
jne 0x407ea8
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [eax + 0xc]
jb 0x407ea8
mov eax, esi
jmp 0x407eb6
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx]
lea edi, [ebp - 0x14]
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], eax
call fcn.0046b5c0
test al, al
je 0x408274
call fcn.00407db9
mov dword [ebp - 0x20], eax
mov eax, dword [0x545cc4]
mov ecx, 0x545cc4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x4c]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.0040828d
mov byte [ebp - 4], 1
cmp dword [ebp + 0xc], 0xffffffff
mov dword [ebp - 0x10], esi
jne 0x407f33
or dword [ebp - 0x4c], 0xffffffff
push 0x83b
call fcn.0043e4f0
pop ecx
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00406723
jmp 0x407ff7
mov eax, dword [ebp - 0x20]
push esi
call fcn.004314f7
test eax, eax
je 0x40825f
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push str.select__from_bookmark_main_where_bm_id___d
call fcn.00405e6e
pop ecx
pop ecx
push dword [ebp - 0x18]
push dword [ebp - 0x20]
call fcn.004315c1
mov ebx, eax
test ebx, ebx
je 0x40825f
jmp 0x407fda
lea edi, [ebp - 0x88]
call fcn.00407cd8
mov eax, edi
push eax
push 0
push ebx
mov byte [ebp - 4], 2
call fcn.00431643
test eax, eax
je 0x407fcb
lea eax, [ebp - 0x7c]
push eax
push 4
push ebx
call fcn.00431643
test eax, eax
je 0x407fcb
push ebx
push 5
lea edi, [ebp - 0x84]
call fcn.00431666
test eax, eax
je 0x407fcb
xor esi, esi
inc esi
cmp dword [ebp - 0x7c], esi
jne 0x407fcb
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x4c], eax
mov eax, edi
lea edi, [ebp - 0x48]
call fcn.004099a7
mov dword [ebp - 0x10], esi
lea esi, [ebp - 0x88]
mov byte [ebp - 4], 1
call fcn.0044b8cc
push ebx
call fcn.00431612
test eax, eax
jne 0x407f6d
push ebx
call fcn.0043162f
cmp dword [ebp - 0x10], 0
je 0x40825f
mov ebx, dword [ebp + 8]
push dword [ebp - 0x20]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40821f
mov eax, dword [ebp - 0x20]
push 0
call fcn.004314f7
test eax, eax
je 0x40821f
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push str.select__from_bookmark_main_where_bm_parent___d
call fcn.00405e6e
pop ecx
pop ecx
push dword [ebp - 0x18]
push dword [ebp - 0x20]
call fcn.004315c1
mov ebx, eax
mov dword [ebp + 0xc], ebx
test ebx, ebx
je 0x40821c
lea eax, [ebp - 0xa8]
push eax
call fcn.00409eef
mov byte [ebp - 4], 3
jmp 0x408178
lea edi, [ebp - 0x88]
call fcn.00407cd8
mov eax, edi
push eax
push 0
push ebx
mov byte [ebp - 4], 4
call fcn.00431643
test eax, eax
je 0x408169
lea eax, [ebp - 0x7c]
push eax
push 4
push ebx
call fcn.00431643
test eax, eax
je 0x408169
lea eax, [ebp - 0x70]
push eax
push 3
push ebx
call fcn.00431643
test eax, eax
je 0x408169
lea eax, [ebp - 0x78]
push eax
push 1
push ebx
call fcn.00431643
test eax, eax
je 0x408169
lea eax, [ebp - 0x74]
push eax
push 2
push ebx
call fcn.00431643
test eax, eax
je 0x408169
push ebx
push 5
lea edi, [ebp - 0x84]
call fcn.00431666
test eax, eax
je 0x408169
push ebx
push 6
lea edi, [ebp - 0x80]
call fcn.00431666
test eax, eax
je 0x408169
lea eax, [ebp - 0x6c]
push eax
push 7
push ebx
call fcn.00431643
test eax, eax
je 0x408169
lea eax, [ebp - 0x68]
push eax
push 8
push ebx
call fcn.00431643
test eax, eax
je 0x408169
lea eax, [ebp - 0x60]
push eax
push 9
push ebx
call fcn.00431643
test eax, eax
je 0x408169
lea eax, [ebp - 0x58]
push eax
push 0xa
push ebx
call fcn.00431643
test eax, eax
je 0x408169
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xa8]
push eax
lea ebx, [ebp - 0x10]
call fcn.00409f40
lea ebx, [ebp - 0x88]
mov esi, eax
call fcn.004082fc
cmp dword [ebp - 0x78], 0xffffffff
jne 0x408166
mov eax, ebx
push eax
lea eax, [ebp - 0x44]
call fcn.00409b78
mov ebx, dword [ebp + 0xc]
lea esi, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.0044b8cc
push ebx
call fcn.00431612
test eax, eax
jne 0x408059
push ebx
call fcn.0043162f
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x38]
push 0x38
cdq
pop ecx
idiv ecx
test eax, eax
jbe 0x40820c
jmp 0x4081fc
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ebx, [ebp - 0xa8]
call fcn.0040a00f
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xa8]
lea edi, [ebp - 0x2c]
lea esi, [ebp - 0x14]
mov dword [ebp - 0x14], eax
call fcn.0046b5c0
test al, al
jne 0x40820c
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x38]
push 0x38
cdq
pop ecx
idiv ecx
cmp eax, dword [ebp - 0x8c]
je 0x40820c
mov esi, edi
call fcn.0040aa33
add eax, 8
push eax
lea eax, [ebp - 0x44]
call fcn.00409b78
lea eax, [ebp - 0x44]
call fcn.00409b4b
mov eax, dword [eax + 0x14]
cmp eax, 0xffffffff
jne 0x40819e
lea eax, [ebp - 0xa8]
push eax
mov byte [ebp - 4], 1
call fcn.00409fe7
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x4c]
push ebx
lea ebx, [ebp + 0xc]
mov dword [ebp + 0xc], eax
call fcn.00409c94
mov esi, eax
mov eax, dword [ebp - 0x4c]
mov dword [esi], eax
lea edi, [esi + 4]
lea eax, [ebp - 0x48]
call fcn.004099a7
lea eax, [esi + 8]
lea esi, [ebp - 0x44]
call fcn.004099e8
mov eax, dword [ebp - 0x4c]
push dword [ebp + 8]
lea ebx, [ebp + 0xc]
mov dword [ebp + 0xc], eax
call fcn.00409c94
mov dword [ebp - 0x28], eax
lea edi, [ebp - 0x4c]
call fcn.004082da
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00406ace
jmp 0x408282
lea esi, [ebp - 0x14]
call fcn.0046b595
add eax, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
call fcn.004de8e3
ret 8