Function at 0x10045dc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fdcb7
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x1014f644]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x9c], eax
mov eax, dword [0x1015a538]
mov dword [ebp - 0xa0], ebx
test eax, eax
jne 0x10045e3d
push 0xf0
call fcn.10071bdd
add esp, 4
mov dword [ebp - 0x94], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x10045e2f
push eax
call fcn.10043d50
jmp 0x10045e31
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x1015a538], eax
lea esi, [eax + 0x40]
mov edi, eax
test esi, esi
je 0x10045e4b
add eax, 0x50
jmp 0x10045e4d
xor eax, eax
push str.start_verify_cef_resource_in_dir:
push eax
call fcn.100418d0
add esp, 8
test esi, esi
je 0x10045e64
lea eax, [edi + 0x50]
jmp 0x10045e66
xor eax, eax
push eax
mov ecx, ebx
call fcn.10041660
mov ecx, fcn.10043ea0
add esp, 4
test ecx, ecx
je 0x10045e83
push edi
call fcn.10043ea0
add esp, 4
mov edx, dword [ebp - 0x9c]
push edx
call fcn.100084c0
cmp dword [ebx + 0x10], 0
je 0x10045ecd
mov esi, 0x10
cmp dword [ebx + 0x14], esi
jb 0x10045ea3
mov eax, dword [ebx]
jmp 0x10045ea5
mov eax, ebx
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push eax
call edi
test eax, eax
setne al
test al, al
je 0x10045ecd
cmp dword [ebx + 0x14], esi
jb 0x10045ec0
mov eax, dword [ebx]
jmp 0x10045ec2
mov eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x10045f37
call fcn.10043e20
mov edi, eax
lea esi, [edi + 0x40]
test esi, esi
je 0x10045ee0
lea eax, [edi + 0x50]
jmp 0x10045ee2
xor eax, eax
push str.verify_failed_
push eax
call fcn.100418d0
add esp, 8
test esi, esi
je 0x10045ef9
lea eax, [edi + 0x50]
jmp 0x10045efb
xor eax, eax
push eax
mov ecx, ebx
call fcn.10041660
add esp, 4
test esi, esi
je 0x10045f0f
lea eax, [edi + 0x50]
jmp 0x10045f11
xor eax, eax
push str._not_found
push eax
call fcn.100418d0
mov eax, fcn.10043ea0
add esp, 8
test eax, eax
je 0x10046039
push edi
call fcn.10043ea0
jmp 0x10046036
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x94], esp
push 0xf
xor esi, esi
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], esi
push str.cwb_package.dat
mov byte [ecx], 0
call fcn.100071e0
push ebx
lea ecx, [ebp - 0x64]
call fcn.10041220
mov dword [ebp - 4], 1
push 0x5c
mov dword [ebp - 0x8c], esi
call fcn.10071bdd
add esp, 4
cmp eax, esi
je 0x10046600
mov dword [ebp - 0x90], eax
mov dword [eax], eax
mov eax, dword [ebp - 0x90]
mov dword [eax + 4], eax
mov esi, dword [ebp + 0xc]
mov byte [ebp - 4], 2
cmp dword [esi + 4], 0
je 0x10046057
lea ecx, [ebp - 0x90]
push ecx
call fcn.10046720
mov edx, dword [ebp - 0x94]
mov eax, dword [esi]
mov ecx, dword [eax]
push edx
lea edx, [ebp - 0x90]
push edx
push eax
push ecx
lea eax, [ebp - 0x98]
push eax
call fcn.10047500
add esp, 0x14
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x90]
push edx
call fcn.10046e70
test al, al
jne 0x100461bb
call fcn.10043e20
mov esi, eax
call fcn.100468b0
mov ecx, fcn.10043ea0
test ecx, ecx
je 0x1004600c
push eax
call fcn.10043ea0
add esp, 4
lea edx, [ebp - 0x90]
push edx
call fcn.10046720
mov eax, dword [ebp - 0x90]
push eax
call fcn.100719b6
add esp, 4
cmp dword [ebp - 0x50], 0x10
jb 0x10046039
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.100719b6
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100719c1
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x54], 0
je 0x10046090
cmp dword [ebp - 0x50], 0x10
mov eax, dword [ebp - 0x64]
jae 0x10046069
lea eax, [ebp - 0x64]
push eax
call edi
test eax, eax
setne al
test al, al
je 0x10046090
cmp dword [ebp - 0x50], 0x10
mov eax, dword [ebp - 0x64]
jae 0x10046081
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x10046145
push ebx
lea esi, [ebp - 0x48]
call fcn.1005e7e0
mov ebx, eax
mov byte [ebp - 4], 3
call fcn.10043e20
mov esi, eax
lea edi, [esi + 0x40]
test edi, edi
je 0x100460b2
lea eax, [esi + 0x50]
jmp 0x100460b4
xor eax, eax
push str.check_local_cefdir_failed:
push eax
call fcn.100418d0
add esp, 8
test edi, edi
je 0x100460cb
lea eax, [esi + 0x50]
jmp 0x100460cd
xor eax, eax
push str.cwb_package.dat
push eax
call fcn.100418d0
add esp, 8
call fcn.10046920
mov esi, eax
lea edx, [esi + 0x40]
test edx, edx
je 0x100460ee
lea eax, [esi + 0x50]
jmp 0x100460f0
xor eax, eax
push ebx
push eax
call fcn.10012d70
mov eax, fcn.10043ea0
add esp, 8
test eax, eax
je 0x1004610c
push esi
call fcn.10043ea0
add esp, 4
mov esi, 0x10
cmp dword [ebp - 0x34], esi
jb 0x10046122
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.100719b6
add esp, 4
lea edx, [ebp - 0x90]
push edx
call fcn.10046720
mov eax, dword [ebp - 0x90]
push eax
call fcn.100719b6
add esp, 4
cmp dword [ebp - 0x50], esi
jmp 0x1004602b
lea edx, [ebp - 0x90]
push edx
lea ecx, [ebp - 0x64]
call fcn.100469c0
test al, al
jne 0x100461bb
call fcn.10043e20
mov ecx, str.check_local_cefdir_failed:
mov esi, eax
call fcn.100468f0
mov ecx, str.cwb_package.dat
mov esi, eax
call fcn.100468f0
mov ecx, str._content_invalid
mov esi, eax
call fcn.100468f0
mov ecx, fcn.10043ea0
test ecx, ecx
je 0x10046193
push eax
call fcn.10043ea0
add esp, 4
lea edx, [ebp - 0x90]
push edx
call fcn.10046720
mov eax, dword [ebp - 0x90]
push eax
call fcn.100719b6
add esp, 4
lea esi, [ebp - 0x64]
call fcn.100317d0
jmp 0x10046039
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax]
mov byte [ebp - 0x81], 1
mov dword [ebp - 0x98], ecx
cmp ecx, eax
je 0x10046503
jmp 0x100461e0
mov esi, dword [ebp - 0x98]
push 0xffffffffffffffff
xor edi, edi
push edi
add esi, 8
mov ebx, 0xf
push esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], edi
mov byte [ebp - 0x48], 0
call fcn.10006dc0
sub esp, 0x1c
mov ecx, esp
mov byte [ebp - 4], 4
mov dword [ebp - 0xa4], esp
push 0xffffffffffffffff
push edi
lea edx, [ebp - 0x48]
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x10], edi
push edx
mov byte [ecx], 0
call fcn.10006dc0
mov eax, dword [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10041220
mov byte [ebp - 4], 5
cmp dword [ebp - 0x1c], edi
je 0x10046279
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x1004624e
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
setne al
test al, al
je 0x10046279
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x1004626a
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x10046386
lea ecx, [ebp - 0x2c]
push ecx
lea esi, [ebp - 0x80]
call fcn.1005e7e0
mov ebx, eax
mov byte [ebp - 4], 6
call fcn.10043e20
mov edi, eax
lea esi, [edi + 0x40]
test esi, esi
je 0x1004629e
lea eax, [edi + 0x50]
jmp 0x100462a0
xor eax, eax
push str.check_local_cefdir_failed_
push eax
call fcn.100418d0
add esp, 8
test esi, esi
je 0x100462b7
lea eax, [edi + 0x50]
jmp 0x100462b9
xor eax, eax
push ebx
push eax
call fcn.10012d70
add esp, 8
test esi, esi
je 0x100462cc
lea eax, [edi + 0x50]
jmp 0x100462ce
xor eax, eax
push str._not_found
push eax
call fcn.100418d0
mov edx, fcn.10043ea0
add esp, 8
test edx, edx
je 0x100462ee
push edi
call fcn.10043ea0
add esp, 4
mov ebx, 0x10
mov byte [ebp - 4], 5
cmp dword [ebp - 0x6c], ebx
jb 0x10046308
mov eax, dword [ebp - 0x80]
push eax
call fcn.100719b6
add esp, 4
mov edi, dword [ebp - 0x9c]
mov esi, dword [edi]
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x48]
push ecx
push edx
push esi
call fcn.10027170
mov ecx, dword [edi + 4]
mov edx, 0x9249248
sub edx, ecx
cmp edx, 1
jb 0x1004652f
inc ecx
mov dword [edi + 4], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov byte [ebp - 0x81], 0
cmp dword [ebp - 0x18], ebx
jb 0x10046355
mov eax, dword [ebp - 0x2c]
push eax
call fcn.100719b6
add esp, 4
xor esi, esi
mov edi, 0xf
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], 0
cmp dword [ebp - 0x34], ebx
jb 0x1004637b
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.100719b6
add esp, 4
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
jmp 0x100464df
add esi, 0x1c
push esi
lea ecx, [ebp - 0x2c]
call fcn.100451d0
add esp, 4
test al, al
jne 0x100464a4
lea edx, [ebp - 0x2c]
push edx
lea esi, [ebp - 0x80]
call fcn.1005e7e0
mov ebx, eax
mov byte [ebp - 4], 7
call fcn.10043e20
mov edi, eax
lea esi, [edi + 0x40]
test esi, esi
je 0x100463c2
lea eax, [edi + 0x50]
jmp 0x100463c4
xor eax, eax
push str.check_local_cefdir_failed_
push eax
call fcn.100418d0
add esp, 8
test esi, esi
je 0x100463db
lea eax, [edi + 0x50]
jmp 0x100463dd
xor eax, eax
push ebx
push eax
call fcn.10012d70
add esp, 8
test esi, esi
je 0x100463f0
lea eax, [edi + 0x50]
jmp 0x100463f2
xor eax, eax
push str._md5_verify_fail
push eax
call fcn.100418d0
mov eax, fcn.10043ea0
add esp, 8
test eax, eax
je 0x10046412
push edi
call fcn.10043ea0
add esp, 4
mov ebx, 0x10
mov byte [ebp - 4], 5
cmp dword [ebp - 0x6c], ebx
jb 0x1004642c
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.100719b6
add esp, 4
mov edi, dword [ebp - 0x9c]
mov esi, dword [edi]
mov eax, dword [esi + 4]
lea edx, [ebp - 0x48]
push edx
push eax
push esi
call fcn.10027170
mov ecx, dword [edi + 4]
mov edx, 0x9249248
sub edx, ecx
cmp edx, 1
jb 0x1004652f
inc ecx
mov dword [edi + 4], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov byte [ebp - 0x81], 0
cmp dword [ebp - 0x18], ebx
jb 0x10046479
mov eax, dword [ebp - 0x2c]
push eax
call fcn.100719b6
add esp, 4
xor edi, edi
mov esi, 0xf
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
cmp dword [ebp - 0x34], ebx
jb 0x1004649f
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.100719b6
add esp, 4
mov dword [ebp - 0x34], esi
jmp 0x100464dc
mov esi, 0x10
cmp dword [ebp - 0x18], esi
jb 0x100464ba
mov edx, dword [ebp - 0x2c]
push edx
call fcn.100719b6
add esp, 4
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
cmp dword [ebp - 0x34], esi
jb 0x100464d9
mov eax, dword [ebp - 0x48]
push eax
call fcn.100719b6
add esp, 4
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], edi
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx]
mov byte [ebp - 0x48], 0
mov dword [ebp - 0x98], eax
cmp eax, dword [ebp - 0x90]
jne 0x100461e0
mov ebx, dword [ebp - 0xa0]
mov eax, dword [0x1015a538]
test eax, eax
jne 0x10046544
push 0xf0
call fcn.10071bdd
add esp, 4
mov dword [ebp - 0xa4], eax
mov byte [ebp - 4], 8
test eax, eax
je 0x10046539
push eax
call fcn.10043d50
jmp 0x1004653b
push str.list_T__too_long
call fcn.1006e70d
xor eax, eax
mov byte [ebp - 4], 2
mov dword [0x1015a538], eax
lea esi, [eax + 0x40]
mov edi, eax
test esi, esi
je 0x10046552
add eax, 0x50
jmp 0x10046554
xor eax, eax
push str.verify_cef_res_in_dir
push eax
call fcn.100418d0
add esp, 8
test esi, esi
je 0x1004656b
lea eax, [edi + 0x50]
jmp 0x1004656d
xor eax, eax
push eax
mov ecx, ebx
call fcn.10041660
add esp, 4
test esi, esi
je 0x10046581
lea eax, [edi + 0x50]
jmp 0x10046583
xor eax, eax
push str._result:
push eax
call fcn.100418d0
mov bl, byte [ebp - 0x81]
add esp, 8
mov ecx, str.true
test bl, bl
jne 0x100465a5
mov ecx, str.false
test esi, esi
je 0x100465ae
lea eax, [edi + 0x50]
jmp 0x100465b0
xor eax, eax
push ecx
push eax
call fcn.100418d0
mov edx, fcn.10043ea0
add esp, 8
test edx, edx
je 0x100465cc
push edi
call fcn.10043ea0
add esp, 4
lea eax, [ebp - 0x90]
push eax
call fcn.10046720
mov ecx, dword [ebp - 0x90]
push ecx
call fcn.100719b6
add esp, 4
cmp dword [ebp - 0x50], 0x10
jb 0x100465f9
mov edx, dword [ebp - 0x64]
push edx
call fcn.100719b6
add esp, 4
mov al, bl
jmp 0x1004603b
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0x94], esi
call fcn.10071a69
push 0x10140c60
lea ecx, [ebp - 0xb0]
push ecx
mov dword [ebp - 0xb0], vtable.std::bad_alloc.0
call fcn.10077e5e
int3