Function at 0x100f2630
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.100cd220
mov dword [esi], vtable.CExtHomePage.0
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0xc0], eax
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0xc4], eax
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0xc8], eax
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0xcc], eax
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0xd0], eax
lea eax, [ebp - 0x414]
push 0x208
push 0
mov dword [esi + 0xd4], 0
mov dword [esi + 0xd8], 0
mov dword [esi + 0xdc], 0
push eax
mov dword [esi + 0xfc], 0
mov dword [esi + 0x100], 0
call sub.msvcrt.dll_memset
push 0x208
lea eax, [ebp - 0x20c]
mov dword [esi + 0xbc], 0
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x418]
push 0x1020527c
push eax
call fcn.100092f0
push 0x103
push dword [eax]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.101ef1c0
mov edx, dword [ebp - 0x418]
add esp, 0x30
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100f2768
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str..._safemon
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100f2783
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
lea ecx, [esi + 0xc4]
call fcn.10003740
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100f27b0
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
lea ecx, [esi + 0xc8]
call fcn.10003740
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
jmp 0x100f27e0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100f27e0
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
lea ecx, [esi + 0xcc]
call fcn.10003740
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
jmp 0x100f2810
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100f2810
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
lea ecx, [esi + 0xd0]
call fcn.10003740
mov eax, dword [esi + 0xc4]
mov ebx, str.HomePageLib.dat
sub ebx, eax
mov dword [ebp - 0x418], str.HomePageLib.dat
push 0x10
push str.HomePageLib.dat
mov eax, dword [eax - 0xc]
sar ebx, 1
mov dword [ebp - 0x420], eax
call fcn.101e6fd0
mov ecx, dword [esi + 0xc4]
add esp, 8
mov edx, dword [ebp - 0x420]
add edx, eax
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x41c], edx
mov edx, 1
sub edx, dword [ecx - 4]
mov ecx, dword [ecx - 8]
sub ecx, dword [ebp - 0x41c]
or edx, ecx
mov dword [ebp - 0x424], eax
jge 0x100f28b1
push dword [ebp - 0x41c]
lea ecx, [esi + 0xc4]
call fcn.10003310
mov ecx, dword [esi + 0xc4]
jmp 0x100f28b7
mov ecx, dword [ebp - 0x428]
mov edx, dword [ebp - 0x420]
cmp ebx, edx
ja 0x100f28ca
lea eax, [ecx + ebx*2]
mov dword [ebp - 0x418], eax
mov eax, dword [ebp - 0x424]
add eax, eax
push eax
push dword [ebp - 0x418]
push eax
lea eax, [ecx + edx*2]
push eax
call fcn.10004510
mov eax, dword [esi + 0xc4]
xor ecx, ecx
mov edx, dword [ebp - 0x41c]
push 0xa
push str.HPLib.dat
mov dword [eax - 0xc], edx
mov eax, dword [esi + 0xc4]
mov dword [ebp - 0x418], str.HPLib.dat
mov word [eax + edx*2], cx
mov ecx, str.HPLib.dat
mov eax, dword [esi + 0xc8]
sub ecx, eax
sar ecx, 1
mov dword [ebp - 0x424], ecx
mov ebx, dword [eax - 0xc]
mov dword [ebp - 0x420], ebx
call fcn.101e6fd0
mov ecx, dword [esi + 0xc8]
mov edx, eax
mov dword [ebp - 0x42c], edx
add esp, 0x18
add edx, ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x41c], edx
mov ebx, 1
mov edx, ebx
sub edx, dword [ecx - 4]
mov ecx, dword [ecx - 8]
sub ecx, dword [ebp - 0x41c]
or edx, ecx
jge 0x100f2981
push dword [ebp - 0x41c]
lea ecx, [esi + 0xc8]
call fcn.10003310
mov ecx, dword [esi + 0xc8]
jmp 0x100f2987
mov ecx, dword [ebp - 0x428]
mov eax, dword [ebp - 0x424]
mov edx, dword [ebp - 0x420]
cmp eax, edx
ja 0x100f29a0
lea eax, [ecx + eax*2]
mov dword [ebp - 0x418], eax
mov eax, dword [ebp - 0x42c]
add eax, eax
push eax
push dword [ebp - 0x418]
push eax
lea eax, [ecx + edx*2]
push eax
call fcn.10004510
mov eax, dword [esi + 0xc8]
xor ecx, ecx
mov edx, dword [ebp - 0x41c]
push 0xb
push str._bfhlib.dat
mov dword [eax - 0xc], edx
mov eax, dword [esi + 0xc8]
mov dword [ebp - 0x420], str._bfhlib.dat
mov word [eax + edx*2], cx
mov ecx, str._bfhlib.dat
mov eax, dword [esi + 0xcc]
sub ecx, eax
sar ecx, 1
mov dword [ebp - 0x428], ecx
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x418], eax
call fcn.101e6fd0
mov ecx, dword [esi + 0xcc]
lea edi, [esi + 0xd0]
mov edx, dword [ebp - 0x418]
add esp, 0x18
add edx, eax
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x41c], edx
mov edx, ebx
sub edx, dword [ecx - 4]
mov ecx, dword [ecx - 8]
sub ecx, dword [ebp - 0x41c]
or edx, ecx
mov dword [ebp - 0x424], eax
jge 0x100f2a5c
push dword [ebp - 0x41c]
lea ecx, [esi + 0xcc]
call fcn.10003310
mov ecx, dword [esi + 0xcc]
jmp 0x100f2a62
mov ecx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x428]
mov edx, dword [ebp - 0x418]
cmp eax, edx
ja 0x100f2a7b
lea eax, [ecx + eax*2]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp - 0x424]
add eax, eax
push eax
push dword [ebp - 0x420]
push eax
lea eax, [ecx + edx*2]
push eax
call fcn.10004510
mov eax, dword [esi + 0xcc]
xor ecx, ecx
mov edx, dword [ebp - 0x41c]
push 0xb
push str.cfhlib.dat
mov dword [eax - 0xc], edx
mov eax, dword [esi + 0xcc]
mov dword [ebp - 0x424], str.cfhlib.dat
mov word [eax + edx*2], cx
mov ecx, str.cfhlib.dat
mov eax, dword [edi]
sub ecx, eax
sar ecx, 1
mov dword [ebp - 0x42c], ecx
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x418], eax
call fcn.101e6fd0
mov edx, dword [edi]
add esp, 0x18
mov dword [ebp - 0x420], eax
add eax, dword [ebp - 0x418]
mov ecx, dword [edx - 8]
sub ebx, dword [edx - 4]
sub ecx, eax
or ebx, ecx
jge 0x100f2b06
push eax
mov ecx, edi
call fcn.10003310
mov edx, dword [edi]
mov eax, dword [ebp - 0x42c]
mov ebx, dword [ebp - 0x418]
cmp eax, ebx
ja 0x100f2b1f
lea eax, [edx + eax*2]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp - 0x420]
add eax, eax
push eax
push dword [ebp - 0x424]
push eax
lea eax, [edx + ebx*2]
push eax
call fcn.10004510
mov eax, dword [edi]
add esp, 0x10
mov ecx, dword [ebp - 0x420]
xor edx, edx
add ecx, ebx
mov dword [eax - 0xc], ecx
mov eax, dword [edi]
mov word [eax + ecx*2], dx
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100f2b79
push edi
lea eax, [esi + 0xcc]
mov ecx, esi
push eax
lea eax, [esi + 0xc8]
push eax
lea eax, [esi + 0xc4]
push eax
call fcn.100f3920
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x10210ca4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str..._safemon
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.SomProxy.dll
lea eax, [ebp - 0x20c]
push eax
push 0x102040c0
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.1000aa70
add esp, 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.101b13a0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
add esp, 8
test eax, eax
jne 0x100f2c12
lea eax, [ebp - 0x414]
push eax
call fcn.100a1350
add esp, 4
test eax, eax
je 0x100f2c1b
lea eax, [ebp - 0x414]
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0xe4], eax
mov dword [esi + 0xe8], 0
mov dword [esi + 0xec], 0
mov dword [esi + 0xf0], 0
test eax, eax
je 0x100f2c7d
push str.URLIsUsual
push eax
call edi
push str.OnSetHomePage
push dword [esi + 0xe4]
mov dword [esi + 0xe8], eax
call edi
push str.IsSupportSuperBlank
push dword [esi + 0xe4]
mov dword [esi + 0xec], eax
call edi
mov dword [esi + 0xf0], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x10210ca4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str..._safemon
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.WdHPFileSafe.dll
lea eax, [ebp - 0x20c]
push eax
push 0x102040c0
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.1000aa70
add esp, 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.101b13a0
add esp, 8
test eax, eax
jne 0x100f2d23
lea eax, [ebp - 0x414]
push eax
call fcn.100a1350
add esp, 4
test eax, eax
je 0x100f2d2c
lea eax, [ebp - 0x414]
push eax
call ebx
mov dword [esi + 0xf4], eax
test eax, eax
je 0x100f2d50
push str.CreateHPCtrl
push eax
call edi
mov dword [esi + 0xf8], eax
test eax, eax
je 0x100f2d50
call eax
mov dword [esi + 0xfc], eax
mov ecx, dword [esi + 0xfc]
test ecx, ecx
je 0x100f2d6b
mov edx, dword [ecx]
lea eax, [esi + 0x100]
push eax
push str.IHomePageSafeEx1
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret