Function at 0x40d8b5
Capabilities:
Check if file exists

Disassembly:
push 0xb0
mov eax, 0x5bdc90
call fcn.00598f2b
mov dword [ebp - 0x5c], ecx
push 1
call fcn.0040d164
pop ecx
mov dword [ebp - 0x24], eax
mov eax, dword [0x63696c]
mov esi, 0x63696c
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x44]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.00440517
cmp dword [ebp + 8], 0xffffffff
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], edi
jne 0x40d99f
mov eax, dword [0x63696c]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
call fcn.0044612c
cmp word [section..JuziBro], di
je 0x40d976
mov eax, dword [0x63696c]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 3
call fcn.0044612c
mov edx, eax
call fcn.00447f10
push 0x83b
call fcn.0047e8f4
mov esi, dword [ebp - 0x14]
pop ecx
push eax
push esi
push 0x5dddd8
lea eax, [ebp - 0x1c]
call fcn.00404f66
add esp, 0xc
lea eax, [esi - 0x10]
call fcn.00407b6b
jmp 0x40d98b
push 0x83b
call fcn.0047e8f4
pop ecx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00407af8
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00407b6b
jmp 0x40da5c
mov eax, dword [ebp - 0x24]
push edi
call fcn.0046ffe2
test eax, eax
je 0x40df15
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
push str.select__from_bookmark_main_where_bm_id___d
call fcn.00404f66
pop ecx
pop ecx
push dword [ebp - 0x2c]
push dword [ebp - 0x24]
call fcn.0047016d
mov ebx, eax
cmp ebx, edi
je 0x40df15
push ebx
call fcn.004701be
test eax, eax
je 0x40da4d
lea edi, [ebp - 0x94]
call fcn.0040d079
mov eax, edi
push eax
push 0
push ebx
mov byte [ebp - 4], 4
call fcn.004701ef
test eax, eax
je 0x40da32
lea eax, [ebp - 0x88]
push eax
push 4
push ebx
call fcn.004701ef
test eax, eax
je 0x40da32
push ebx
push 5
lea edi, [ebp - 0x90]
call fcn.00470212
test eax, eax
je 0x40da32
xor eax, eax
inc eax
cmp dword [ebp - 0x88], eax
jne 0x40da32
mov dword [ebp - 0x14], eax
lea esi, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.004a8e68
push ebx
call fcn.004701be
test eax, eax
jne 0x40d9e1
xor edi, edi
push ebx
call fcn.004701db
cmp dword [ebp - 0x14], edi
je 0x40df15
push dword [ebp - 0x24]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40dc2a
mov eax, dword [ebp - 0x24]
push edi
call fcn.0046ffe2
test eax, eax
je 0x40dc2a
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
push str.select__from_bookmark_main_where_bm_parent___d
call fcn.00404f66
pop ecx
pop ecx
push dword [ebp - 0x2c]
push dword [ebp - 0x24]
call fcn.0047016d
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x40dc2a
lea eax, [ebp - 0xb4]
push eax
call fcn.0040fb09
mov byte [ebp - 4], 5
jmp 0x40db86
lea edi, [ebp - 0x94]
call fcn.0040d079
mov eax, edi
push eax
push 0
push ebx
mov byte [ebp - 4], 6
call fcn.004701ef
test eax, eax
je 0x40db77
lea eax, [ebp - 0x88]
push eax
push 4
push ebx
call fcn.004701ef
test eax, eax
je 0x40db77
lea eax, [ebp - 0x7c]
push eax
push 3
push ebx
call fcn.004701ef
test eax, eax
je 0x40db77
lea eax, [ebp - 0x84]
push eax
push 1
push ebx
call fcn.004701ef
test eax, eax
je 0x40db77
lea eax, [ebp - 0x80]
push eax
push 2
push ebx
call fcn.004701ef
test eax, eax
je 0x40db77
push ebx
push 5
lea edi, [ebp - 0x90]
call fcn.00470212
test eax, eax
je 0x40db77
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xb4]
push eax
lea ebx, [ebp - 0x1c]
call fcn.0040fb5a
lea ebx, [ebp - 0x94]
mov esi, eax
call fcn.0040d854
cmp dword [ebp - 0x84], 0xffffffff
jne 0x40db74
mov eax, ebx
push eax
lea eax, [ebp - 0x44]
call fcn.0040f7f9
mov ebx, dword [ebp - 0x14]
lea esi, [ebp - 0x94]
mov byte [ebp - 4], 5
call fcn.004a8e68
push ebx
call fcn.004701be
test eax, eax
jne 0x40dabd
push ebx
call fcn.004701db
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x38]
push 0x38
cdq
pop ecx
idiv ecx
test eax, eax
jbe 0x40dc1a
jmp 0x40dc0a
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
lea ebx, [ebp - 0xb4]
call fcn.0040fc29
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xb4]
lea edi, [ebp - 0x28]
lea esi, [ebp - 0x20]
mov dword [ebp - 0x20], eax
call fcn.004acc17
test al, al
jne 0x40dc1a
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x38]
push 0x38
cdq
pop ecx
idiv ecx
cmp eax, dword [ebp - 0x98]
je 0x40dc1a
mov esi, edi
call fcn.0041083f
add eax, 8
push eax
lea eax, [ebp - 0x44]
call fcn.0040f7f9
lea eax, [ebp - 0x44]
call fcn.0040f7cc
mov eax, dword [eax + 0x14]
cmp eax, 0xffffffff
jne 0x40dbac
lea eax, [ebp - 0xb4]
push eax
mov byte [ebp - 4], 1
call fcn.0040fc01
mov esi, dword [ebp - 0x38]
cmp esi, dword [ebp - 0x34]
jbe 0x40dc37
call fcn.005908ee
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x34]
cmp dword [ebp - 0x38], esi
jbe 0x40dc4d
call fcn.005908ee
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x1c], esi
lea edi, [ebp - 0x20]
lea esi, [ebp - 0x18]
mov dword [ebp - 0x20], eax
call fcn.004a9e81
test al, al
je 0x40dc98
call fcn.00528a4c
cmp dword [eax + 0xc], 1
je 0x40dc8e
push dword [ebp - 0x14]
lea eax, [ebp - 0x4c]
push dword [ebp - 0x18]
lea ecx, [ebp - 0x44]
call fcn.0040f8db
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
jmp 0x40dc40
lea esi, [ebp - 0x18]
call fcn.0040fc8a
jmp 0x40dc40
mov edi, dword [ebp - 0x5c]
mov ebx, dword [edi + 0x2c]
add edi, 0x20
lea esi, [ebp - 0x20]
mov dword [ebp - 0x24], edi
call fcn.004754c4
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov edi, dword [ebp - 0x24]
mov ebx, dword [edi + 0x10]
lea esi, [ebp - 0x20]
call fcn.004754c4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40dcd2
cmp eax, dword [ebp - 0x20]
je 0x40dcd7
call fcn.005908ee
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
je 0x40dcfe
lea esi, [ebp - 0x18]
call fcn.00528a4c
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
jne 0x40dcf4
call fcn.0040fd0c
lea esi, [ebp - 0x18]
call fcn.0040fd0c
jmp 0x40dcb8
mov ebx, dword [edi + 0x10]
lea esi, [ebp - 0x20]
call fcn.004754c4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40dd15
cmp eax, dword [ebp - 0x20]
je 0x40dd1a
call fcn.005908ee
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x1c]
je 0x40ddd6
cmp esi, dword [ebp - 0x34]
jbe 0x40dd33
call fcn.005908ee
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp - 0x34]
cmp dword [ebp - 0x38], esi
jbe 0x40dd49
call fcn.005908ee
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], esi
lea edi, [ebp - 0x4c]
lea esi, [ebp - 0x20]
mov dword [ebp - 0x4c], eax
call fcn.004a9e81
test al, al
je 0x40dec4
mov ecx, 0x63696c
lea esi, [ebp - 0x50]
call fcn.0040c2a6
lea esi, [ebp - 0x20]
mov byte [ebp - 4], 7
call fcn.00528a4c
mov eax, dword [eax]
mov dword [ebp - 0x58], eax
call fcn.00528a4c
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x54], eax
call fcn.00528a4c
add eax, 4
lea edi, [ebp - 0x50]
call fcn.0040a3cc
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
lea esi, [ebp - 0x18]
call fcn.0040fd0c
push ebx
push edi
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x24]
call fcn.00410427
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x50]
add eax, 0xfffffff0
call fcn.00407b6b
lea esi, [ebp - 0x20]
call fcn.0040fc8a
jmp 0x40dd3c
cmp esi, dword [ebp - 0x34]
jbe 0x40dde0
call fcn.005908ee
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x34]
cmp dword [ebp - 0x38], esi
jbe 0x40ddf6
call fcn.005908ee
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], esi
lea edi, [ebp - 0x4c]
lea esi, [ebp - 0x18]
mov dword [ebp - 0x4c], eax
call fcn.004a9e81
test al, al
je 0x40dec4
mov ecx, 0x63696c
lea esi, [ebp - 0x50]
call fcn.0040c2a6
lea esi, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.00528a4c
mov eax, dword [eax]
mov dword [ebp - 0x58], eax
call fcn.00528a4c
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x54], eax
call fcn.00528a4c
add eax, 4
lea edi, [ebp - 0x50]
call fcn.0040a3cc
mov edi, dword [ebp - 0x24]
mov ecx, dword [edi + 0xc]
test ecx, ecx
jne 0x40de59
xor esi, esi
jmp 0x40de66
mov eax, dword [edi + 0x14]
sub eax, ecx
push 0xc
cdq
pop esi
idiv esi
mov esi, eax
mov ebx, dword [edi + 0x10]
mov eax, ebx
sub eax, ecx
push 0xc
cdq
pop ecx
idiv ecx
cmp eax, esi
jae 0x40de88
lea eax, [ebp - 0x58]
push eax
push 1
push ebx
call fcn.0041064a
mov dword [edi + 0x10], eax
jmp 0x40dea8
lea esi, [ebp - 0x20]
call fcn.004754c4
push dword [ebp - 0x1c]
lea eax, [ebp - 0x58]
push dword [ebp - 0x20]
push eax
lea eax, [ebp - 0xbc]
push eax
mov eax, edi
call fcn.00410379
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x50]
add eax, 0xfffffff0
call fcn.00407b6b
lea esi, [ebp - 0x18]
call fcn.0040fc8a
jmp 0x40dde9
mov esi, dword [ebp - 0x38]
cmp esi, dword [ebp - 0x34]
jbe 0x40ded1
call fcn.005908ee
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x34]
cmp dword [ebp - 0x38], esi
jbe 0x40dee7
call fcn.005908ee
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], esi
lea edi, [ebp - 0x4c]
lea esi, [ebp - 0x18]
mov dword [ebp - 0x4c], eax
call fcn.004a9e81
test al, al
je 0x40df15
call fcn.00528a4c
push dword [eax]
mov ecx, dword [ebp - 0x5c]
call fcn.0040d8b5
call fcn.0040fc8a
jmp 0x40deda
lea esi, [ebp - 0x44]
call fcn.0040fe0b
push dword [ebp - 0x44]
call fcn.0058f3c4
mov eax, dword [ebp - 0x2c]
pop ecx
add eax, 0xfffffff0
call fcn.00407b6b
call fcn.00599003
ret 4