Function at 0x10087b20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013e6a7
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x10182f40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x26
push str.42E6214F_10D0_48C6_B217_6C6FCBE51646
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x24c], 0xf
mov dword [ebp - 0x250], 0
mov byte [ebp - 0x260], 0
call fcn.1006f560
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0
call fcn.100872f0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 1
call fcn.1006d3d0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x234]
cmp eax, 0x10
jb 0x10087bc4
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.1006d540
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.10118ce0
cmp dword [ebp - 0x24c], 0x10
lea edx, [ebp - 0x260]
push dword [ebp - 0x250]
cmovae edx, dword [ebp - 0x260]
lea ecx, [ebp - 0x290]
call fcn.10087100
add esp, 0x10
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28c]
mov ecx, dword [ebp - 0x290]
sub eax, ecx
je 0x1008804a
push eax
push ecx
lea eax, [ebp - 0x114]
push eax
call fcn.10118e40
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10118ce0
add esp, 0x14
lea edx, [ebp - 0x114]
lea ecx, [ebp - 0x218]
call fcn.10088340
add esp, 4
lea ecx, [ebp - 0x230]
call fcn.10088090
and dword [ebp - 0x278], 0xfffffe00
mov dword [ebp - 0x274], 0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10087cb0
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
lea edx, [ebp - 0x280]
cmovae ecx, dword [ebp - 0x230]
call fcn.10076b50
mov eax, dword [ebp - 0x268]
and eax, 0xffffff01
mov dword [ebp - 0x264], 0
or eax, 1
mov dword [ebp - 0x270], 3
mov dword [ebp - 0x268], eax
push ecx
push 0x1016e5f8
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 6
call fcn.10081710
lea ecx, [ebp - 0x270]
push ecx
push ecx
push str.new_open
mov ecx, eax
call fcn.10081710
mov ecx, eax
call fcn.10080f90
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 5
call fcn.10080ed0
mov eax, dword [ebp - 0x268]
and eax, 0xffffff04
mov dword [ebp - 0x264], 0
or eax, 0x104
mov dword [ebp - 0x268], eax
call fcn.10080be0
push 0xffffffffffffffff
push edi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x270], eax
push ecx
push 0x1016e5f8
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 7
call fcn.10081710
lea ecx, [ebp - 0x270]
push ecx
push ecx
push str.new_open_url
mov ecx, eax
call fcn.10081710
mov ecx, eax
call fcn.10080f90
lea ecx, [ebp - 0x270]
call fcn.10080ed0
mov eax, dword [ebp - 0x268]
and eax, 0xffffff05
mov dword [ebp - 0x264], 0
or eax, 5
mov byte [ebp - 0x270], 1
mov dword [ebp - 0x268], eax
push ecx
push str.session
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 8
call fcn.10081710
lea ecx, [ebp - 0x270]
push ecx
push ecx
push str.kduba_url_preset
mov ecx, eax
call fcn.10081710
mov ecx, eax
call fcn.10080f90
lea ecx, [ebp - 0x270]
call fcn.10080ed0
mov eax, dword [ebp - 0x268]
and eax, 0xffffff01
mov dword [ebp - 0x264], 0
or eax, 1
mov dword [ebp - 0x270], 4
mov dword [ebp - 0x268], eax
mov byte [ebp - 4], 9
push ecx
push str.session
lea ecx, [ebp - 0x280]
call fcn.10081710
lea ecx, [ebp - 0x270]
push ecx
push ecx
push str.restore_on_startup
mov ecx, eax
call fcn.10081710
mov ecx, eax
call fcn.10080f90
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 5
call fcn.10080ed0
push ecx
push str.session
lea ecx, [ebp - 0x280]
call fcn.10081710
cmp byte [eax + 8], 0
je 0x10087ed9
mov esi, dword [eax]
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x284]
mov dword [ebp - 0x268], str.startup_urls
push eax
mov ecx, esi
mov dword [ebp - 0x264], 0
call fcn.10081ca0
mov eax, dword [eax]
cmp eax, dword [esi]
jne 0x10087e9c
mov byte [ebp - 4], 5
jmp 0x10087ed9
add eax, 0x18
mov byte [ebp - 4], 5
cmp eax, 0x1018aee8
je 0x10087ed9
push ecx
push str.session
lea ecx, [ebp - 0x280]
call fcn.10081710
push str.startup_urls
lea ecx, [ebp - 0x240]
push ecx
mov ecx, eax
call fcn.10081970
lea ecx, [ebp - 0x240]
call fcn.10080ed0
mov eax, dword [ebp - 0x268]
and eax, 0xfffffe06
mov dword [ebp - 0x264], 0
or eax, 6
push 8
mov dword [ebp - 0x268], eax
call fcn.101149b1
mov esi, eax
add esp, 4
mov dword [ebp - 0x284], esi
mov byte [ebp - 4], 0xc
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.100824d0
mov dword [esi], eax
mov dword [ebp - 0x270], esi
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x238]
and eax, 0xffffff04
mov dword [ebp - 0x234], 0
or eax, 0x104
mov dword [ebp - 0x238], eax
call fcn.10080be0
push 0xffffffffffffffff
push edi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x270]
call fcn.10081940
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 0xd
call fcn.10080ed0
push ecx
push str.session
lea ecx, [ebp - 0x280]
call fcn.10081710
lea ecx, [ebp - 0x270]
push ecx
push ecx
push str.startup_urls
mov ecx, eax
call fcn.10081710
mov ecx, eax
call fcn.10080f90
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
lea edx, [ebp - 0x280]
cmovae ecx, dword [ebp - 0x230]
call fcn.100767c0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x230]
cmovae ecx, dword [ebp - 0x230]
lea edx, [ebp - 0x280]
push eax
call fcn.100878f0
add esp, 4
lea ecx, [ebp - 0x270]
call fcn.10080ed0
lea ecx, [ebp - 0x280]
call fcn.10080ed0
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x1008802d
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.1006f7f0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
lea ecx, [ebp - 0x290]
call fcn.10077680
mov eax, dword [ebp - 0x24c]
cmp eax, 0x10
jb 0x10088073
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.1006d540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101149a0
mov esp, ebp
pop ebp
ret