Function at 0x52e959
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
push ebx
push str.ExportFavHtml.dll
lea ecx, [ebp - 0x50]
call fcn.00408981
push 1
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0xf4]
push 5
push eax
call fcn.004ca5a0
add esp, 0x10
lea ecx, [ebp - 0x50]
call fcn.00403730
cmp dword [ebp - 0xe0], 8
lea eax, [ebp - 0xf4]
cmovae eax, dword [ebp - 0xf4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x52e9b5
xor bl, bl
jmp 0x52f0f3
cmp dword [ebp - 0xe0], 8
lea eax, [ebp - 0xf4]
push esi
cmovae eax, dword [ebp - 0xf4]
xor ebx, ebx
push edi
push 8
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edi, eax
push str.ExportFavHtml
push edi
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xb4], 0xf
call esi
push str.FreeExportFavHtmlStr
push edi
mov ebx, eax
call esi
mov edi, eax
test ebx, ebx
je 0x52ea40
test edi, edi
je 0x52ea40
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call ebx
mov esi, eax
pop ecx
test esi, esi
je 0x52ea40
cmp dword [ebp - 4], 0
je 0x52ea40
push esi
call fcn.0057db80
pop ecx
push eax
push esi
lea ecx, [ebp - 0xc8]
call fcn.0043cf29
push esi
call edi
pop ecx
cmp dword [ebp - 0xb8], 0
jne 0x52ea50
xor bl, bl
jmp 0x52f09c
push 0x18
call fcn.00413631
pop ecx
test eax, eax
je 0x52ea65
mov ecx, eax
call fcn.0043a43d
jmp 0x52ea67
xor eax, eax
mov edx, dword [ebp + 8]
xor ebx, ebx
inc ebx
mov ecx, dword [edx]
mov dword [edx], eax
test ecx, ecx
je 0x52ea7b
mov eax, dword [ecx]
push ebx
call dword [eax + 0xc]
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.0052f5db
pop ecx
pop ecx
push 0
push 0x5e01d0
lea ecx, [ebp - 0x124]
call fcn.0044c52f
xor edi, edi
mov dword [ebp - 0xc], 7
and dword [ebp - 0x20], edi
lea ecx, [ebp - 0xdc]
and dword [ebp - 0x10], edi
mov esi, eax
call fcn.0052e908
xor edx, edx
mov dword [ebp - 0x68], edx
mov ecx, edx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0xb0], edx
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0x98], edx
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x80], ecx
push 7
pop eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x84], eax
push eax
pop edx
mov dword [ebp - 0x6c], edx
cmp esi, 0xffffffff
je 0x52eefb
mov eax, esi
lea ecx, [ebp - 0x124]
sub eax, edi
push eax
push edi
lea eax, [ebp - 0x38]
push eax
call fcn.0043bb55
mov edi, eax
lea eax, [ebp - 0x20]
cmp eax, edi
je 0x52eb34
mov ecx, eax
call fcn.00403730
push edi
lea ecx, [ebp - 0x20]
call fcn.00444b1d
lea ecx, [ebp - 0x38]
call fcn.00403730
and dword [ebp - 4], 0
lea edi, [esi + 1]
push 0x5e01d4
call fcn.0057bbea
push 8
pop esi
cmp dword [ebp - 0xc], esi
lea ecx, [ebp - 0x20]
push eax
cmovae ecx, dword [ebp - 0x20]
push 0x5e01d4
push 0
push dword [ebp - 0x10]
push ecx
call fcn.00444702
add esp, 0x18
test eax, eax
jne 0x52ed86
push 0x60a05c
lea ecx, [ebp - 0x38]
call fcn.00408981
push str.HREF_
lea ecx, [ebp - 0x50]
call fcn.00408981
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.0052e7bb
mov esi, eax
add esp, 0x14
lea eax, [ebp - 0xb0]
cmp eax, esi
je 0x52ebce
mov ecx, eax
call fcn.00403730
push esi
lea ecx, [ebp - 0xb0]
call fcn.00444b1d
lea ecx, [ebp - 0x10c]
call fcn.00403730
lea ecx, [ebp - 0x50]
call fcn.00403730
lea ecx, [ebp - 0x38]
call fcn.00403730
push 0x60a05c
lea ecx, [ebp - 0x50]
call fcn.00408981
push str.ADD_DATE_
lea ecx, [ebp - 0x38]
call fcn.00408981
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.0052e7bb
mov esi, eax
add esp, 0x14
lea eax, [ebp - 0x98]
cmp eax, esi
je 0x52ec41
mov ecx, eax
call fcn.00403730
push esi
lea ecx, [ebp - 0x98]
call fcn.00444b1d
lea ecx, [ebp - 0x10c]
call fcn.00403730
lea ecx, [ebp - 0x38]
call fcn.00403730
lea ecx, [ebp - 0x50]
call fcn.00403730
push 0x5e020c
lea ecx, [ebp - 0x50]
call fcn.00408981
push 0x5e0210
lea ecx, [ebp - 0x38]
call fcn.00408981
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.0052e7bb
mov esi, eax
add esp, 0x14
lea eax, [ebp - 0x80]
cmp eax, esi
je 0x52ecae
mov ecx, eax
call fcn.00403730
push esi
lea ecx, [ebp - 0x80]
call fcn.00444b1d
lea ecx, [ebp - 0x10c]
call fcn.00403730
lea ecx, [ebp - 0x38]
call fcn.00403730
lea ecx, [ebp - 0x50]
call fcn.00403730
push 0x14
call fcn.00413631
pop ecx
test eax, eax
je 0x52ece0
mov ecx, eax
call fcn.0043a335
mov esi, eax
jmp 0x52ece2
xor esi, esi
push 0x60a200
lea ecx, [ebp - 0x38]
call fcn.00408981
lea eax, [ebp - 0xb0]
push eax
call fcn.0043a6cb
pop ecx
push eax
lea eax, [ebp - 0x38]
mov ecx, esi
push eax
call fcn.0043ad50
lea ecx, [ebp - 0x38]
call fcn.00403730
push 0x5dfe04
lea ecx, [ebp - 0x38]
call fcn.00408981
lea eax, [ebp - 0x80]
push eax
call fcn.0043a6cb
pop ecx
push eax
lea eax, [ebp - 0x38]
mov ecx, esi
push eax
call fcn.0043ad50
lea ecx, [ebp - 0x38]
call fcn.00403730
cmp dword [ebp - 0x58], 0
je 0x52ed6c
push str.path
lea ecx, [ebp - 0x38]
call fcn.00408981
lea eax, [ebp - 0x68]
push eax
call fcn.0043a6cb
pop ecx
push eax
lea eax, [ebp - 0x38]
mov ecx, esi
push eax
call fcn.0043ad50
lea ecx, [ebp - 0x38]
call fcn.00403730
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax]
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
sar eax, 2
push eax
call fcn.0043b731
jmp 0x52eed3
push 0x5e0214
call fcn.0057bbea
cmp dword [ebp - 0xc], esi
lea ecx, [ebp - 0x20]
push eax
cmovae ecx, dword [ebp - 0x20]
push 0x5e0214
push 0
push dword [ebp - 0x10]
push ecx
call fcn.00444702
add esp, 0x18
test eax, eax
jne 0x52ee54
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0xdc]
call fcn.0052e860
push 0x5e020c
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0xa
call fcn.00408981
push 0x5e0210
lea ecx, [ebp - 0x38]
call fcn.00408981
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x13c]
push eax
call fcn.0052e7bb
push eax
lea eax, [ebp - 0x10c]
push 0x6058cc
push eax
call fcn.004d7d40
add esp, 0x20
mov ecx, eax
cmp dword [eax + 0x14], esi
jb 0x52ee20
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x68]
call fcn.004092f8
lea ecx, [ebp - 0x10c]
call fcn.00403730
lea ecx, [ebp - 0x13c]
call fcn.00403730
lea ecx, [ebp - 0x38]
call fcn.00403730
lea ecx, [ebp - 0x50]
call fcn.00403730
jmp 0x52eed3
push str.__DL__P_
call fcn.0057bbea
cmp dword [ebp - 0xc], esi
lea ecx, [ebp - 0x20]
push eax
cmovae ecx, dword [ebp - 0x20]
push str.__DL__P_
push 0
push dword [ebp - 0x10]
push ecx
call fcn.00444702
add esp, 0x18
test eax, eax
jne 0x52eed3
mov ecx, dword [ebp - 0xcc]
test ecx, ecx
je 0x52eebd
mov eax, dword [ebp - 0xd0]
lea edx, [ebp - 0xdc]
add eax, ecx
mov ecx, dword [edx + 8]
dec ecx
mov dword [ebp - 4], eax
dec eax
and ecx, eax
mov eax, dword [edx + 4]
push dword [eax + ecx*4]
lea ecx, [ebp - 0x68]
call fcn.00405d53
lea ecx, [ebp - 0xdc]
call fcn.0052f7a1
jmp 0x52eed3
mov esi, 0x605890
push esi
call fcn.0057bbea
pop ecx
push eax
push esi
lea ecx, [ebp - 0x68]
call fcn.00407684
push edi
push 0x5e01d0
lea ecx, [ebp - 0x124]
call fcn.0044c52f
mov esi, eax
cmp esi, 0xffffffff
jne 0x52eb06
mov eax, dword [ebp - 0x84]
mov edx, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x80]
push 8
pop esi
cmp edx, esi
jb 0x52ef3a
lea eax, [edx*2 + 2]
mov dword [ebp - 4], ecx
mov dword [ebp + 8], eax
cmp eax, 0x1000
jb 0x52ef2b
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0040379f
mov eax, dword [ebp + 8]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
push eax
push ecx
call fcn.0056d0c8
mov eax, dword [ebp - 0x84]
pop ecx
pop ecx
and dword [ebp - 0x70], 0
xor ecx, ecx
mov word [ebp - 0x80], cx
push 7
pop edi
mov dword [ebp - 0x6c], edi
cmp eax, esi
jb 0x52ef86
mov ecx, dword [ebp - 0x98]
lea eax, [eax*2 + 2]
mov dword [ebp + 8], eax
mov dword [ebp - 4], ecx
cmp eax, 0x1000
jb 0x52ef7d
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0040379f
mov eax, dword [ebp + 8]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
push eax
push ecx
call fcn.0056d0c8
pop ecx
pop ecx
and dword [ebp - 0x88], 0
xor eax, eax
mov word [ebp - 0x98], ax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x84], edi
cmp eax, esi
jb 0x52efde
mov ecx, dword [ebp - 0xb0]
lea eax, [eax*2 + 2]
mov dword [ebp + 8], eax
mov dword [ebp - 4], ecx
cmp eax, 0x1000
jb 0x52efd5
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0040379f
mov eax, dword [ebp + 8]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
push eax
push ecx
call fcn.0056d0c8
pop ecx
pop ecx
and dword [ebp - 0xa0], 0
xor eax, eax
mov word [ebp - 0xb0], ax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x9c], edi
cmp eax, esi
jb 0x52f030
mov ecx, dword [ebp - 0x68]
lea eax, [eax*2 + 2]
mov dword [ebp + 8], eax
mov dword [ebp - 4], ecx
cmp eax, 0x1000
jb 0x52f027
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0040379f
mov eax, dword [ebp + 8]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
push eax
push ecx
call fcn.0056d0c8
pop ecx
pop ecx
and dword [ebp - 0x58], 0
lea ecx, [ebp - 0xdc]
xor eax, eax
mov dword [ebp - 0x54], edi
mov word [ebp - 0x68], ax
call fcn.0052e939
mov eax, dword [ebp - 0xc]
cmp eax, esi
jb 0x52f084
mov ecx, dword [ebp - 0x20]
lea eax, [eax*2 + 2]
mov dword [ebp + 8], eax
mov dword [ebp - 4], ecx
cmp eax, 0x1000
jb 0x52f07b
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0040379f
mov eax, dword [ebp + 8]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
push eax
push ecx
call fcn.0056d0c8
pop ecx
pop ecx
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x124]
xor eax, eax
mov dword [ebp - 0xc], edi
mov word [ebp - 0x20], ax
call fcn.00403730
mov eax, dword [ebp - 0xb4]
pop edi
pop esi
cmp eax, 0x10
jb 0x52f0db
mov ecx, dword [ebp - 0xc8]
inc eax
mov dword [ebp + 8], eax
mov dword [ebp - 4], ecx
cmp eax, 0x1000
jb 0x52f0d2
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0040379f
mov eax, dword [ebp + 8]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
push eax
push ecx
call fcn.0056d0c8
pop ecx
pop ecx
and dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0xf
mov byte [ebp - 0xc8], 0
lea ecx, [ebp - 0xf4]
call fcn.00403730
mov al, bl
pop ebx
leave
ret 4