Function at 0x10031b80
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009db52
mov eax, dword fs:[0]
push eax
sub esp, 0xb04
mov eax, dword [0x100cb2bc]
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 + 8]
push 0x208
mov dword [ebp - 0xa74], eax
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10073780
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.10073780
add esp, 0x18
lea eax, [ebp - 0xa38]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x420]
mov edx, 0x104
lea esi, [ebp - 0xa38]
mov eax, ecx
sub esi, eax
nop dword [eax + eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x10031c2e
movzx eax, word [ecx + esi]
test ax, ax
je 0x10031c2e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x10031c10
lea eax, [ecx - 2]
test edx, edx
push 0x208
cmovne eax, ecx
xor ecx, ecx
push ecx
mov word [eax], cx
lea eax, [ebp - 0x628]
push eax
call fcn.10073780
add esp, 0xc
lea eax, [ebp - 0x628]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.1000b120
mov ecx, eax
test ecx, ecx
je 0x10032395
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xa78], eax
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x830]
mov dword [ebp - 4], 0
push eax
call esi
push str.JsBasiclog
lea eax, [ebp - 0x830]
push eax
call esi
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10031ccc
lea eax, [ebp - 0x830]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
call fcn.1000b120
mov ecx, eax
test ecx, ecx
je 0x1003239f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xa70], eax
lea eax, [ebp - 0x628]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa70]
test eax, 0xffff0000
jne 0x10031d0b
movzx eax, ax
push eax
call fcn.1000b230
jmp 0x10031d11
push eax
call fcn.1000b8d0
push 0
lea eax, [ebp - 0xa70]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0xa6c]
push eax
call fcn.100495d0
push dword [eax]
lea eax, [ebp - 0xa78]
mov byte [ebp - 4], 3
push str.JsBasicLog_s.js_basic.log
push eax
call fcn.1000b010
mov edx, dword [ebp - 0xa6c]
or ebx, 0xffffffff
add esp, 0x18
mov byte [ebp - 4], 2
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10031d68
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xa70]
mov eax, ebx
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10031d89
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0xa78]
lea eax, [ebp - 0x420]
push edi
push eax
call esi
push 0x100a3a4c
push 0x6400000
push 0
push 1
lea eax, [ebp - 0x420]
push eax
call fcn.10042b80
call fcn.10042a90
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x10031f0c
push 0x3b
push str.d:work_basic_mgamejs_basicjs_basicweb_window_factroy.cc
lea ecx, [ebp - 0xa68]
mov dword [ebp - 0xa58], eax
mov dword [ebp - 0xa54], 0xf
mov byte [ebp - 0xa68], al
call fcn.100065f0
push 3
push 0x100a38bc
lea ecx, [ebp - 0xa50]
mov byte [ebp - 4], 4
mov dword [ebp - 0xa40], 0
mov dword [ebp - 0xa3c], 0xf
mov byte [ebp - 0xa50], 0
call fcn.100065f0
mov byte [ebp - 4], 5
call fcn.10042a90
mov ebx, eax
lea ecx, [ebp - 0xb10]
push 0x25
lea eax, [ebp - 0xa68]
push eax
lea eax, [ebp - 0xa50]
push eax
call fcn.10003990
mov esi, eax
push str.WebWindowFactoryImp_Init
push esi
mov byte [ebp - 4], 6
call fcn.1000a1f0
mov edx, dword [ebx]
add esp, 8
mov ecx, ebx
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0xb10]
call fcn.10004ba0
mov edx, dword [ebp - 0xa3c]
mov byte [ebp - 4], 4
cmp edx, 0x10
jb 0x10031eb3
mov ecx, dword [ebp - 0xa50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10031ea9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100323a9
push edx
push ecx
call fcn.10051a28
add esp, 8
mov edx, dword [ebp - 0xa54]
mov dword [ebp - 0xa40], 0
mov dword [ebp - 0xa3c], 0xf
mov byte [ebp - 0xa50], 0
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x10031f0c
mov ecx, dword [ebp - 0xa68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10031f02
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100323ae
push edx
push ecx
call fcn.10051a28
add esp, 8
push 0x38
call fcn.100519f8
add esp, 4
mov dword [ebp - 0xa6c], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x10031f2d
mov ecx, eax
call fcn.1001fc50
jmp 0x10031f2f
xor eax, eax
mov ebx, dword [ebp - 0xa74]
mov byte [ebp - 4], 0
mov dword [ebx + 0xc], eax
test eax, eax
je 0x10031f4c
push 0x1f4
mov ecx, eax
call fcn.1001fe10
push 0x3c
call fcn.100519f8
mov esi, eax
add esp, 4
mov dword [ebp - 0xa6c], esi
test esi, esi
je 0x10031f99
mov dword [esi], 0
call fcn.1000b120
mov ecx, eax
test ecx, ecx
je 0x100323b3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 4], eax
lea eax, [esi + 8]
push 2
push eax
call fcn.1003ded5
add esp, 8
mov dword [esi + 0x38], 0
jmp 0x10031f9b
xor esi, esi
mov dword [ebx + 8], esi
test esi, esi
je 0x10031fac
push dword [ebx + 0xc]
mov ecx, esi
call fcn.1001e270
push 0x208
xor esi, esi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.10073780
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x100cfe14]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.WebView.dll
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.10042a90
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1003215f
push 0x3b
push str.d:work_basic_mgamejs_basicjs_basicweb_window_factroy.cc
lea ecx, [ebp - 0xa68]
mov dword [ebp - 0xa58], esi
mov dword [ebp - 0xa54], 0xf
mov byte [ebp - 0xa68], al
call fcn.100065f0
push 3
push 0x100a38bc
lea ecx, [ebp - 0xa50]
mov byte [ebp - 4], 8
mov dword [ebp - 0xa40], esi
mov dword [ebp - 0xa3c], 0xf
mov byte [ebp - 0xa50], 0
call fcn.100065f0
mov byte [ebp - 4], 9
call fcn.10042a90
mov dword [ebp - 0xa6c], eax
lea ecx, [ebp - 0xb10]
push 0x39
lea eax, [ebp - 0xa68]
push eax
lea eax, [ebp - 0xa50]
push eax
call fcn.10003990
mov ebx, eax
push str.InitDll_WebView.dll
push ebx
mov byte [ebp - 4], 0xa
call fcn.10004a70
mov eax, dword [ebp - 0xa6c]
add esp, 8
mov ecx, eax
mov edx, dword [eax]
push ebx
call dword [edx + 0x1c]
lea ecx, [ebp - 0xb10]
call fcn.10004ba0
mov edx, dword [ebp - 0xa3c]
mov byte [ebp - 4], 8
cmp edx, 0x10
jb 0x10032100
mov ecx, dword [ebp - 0xa50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100320f6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100323bd
push edx
push ecx
call fcn.10051a28
add esp, 8
mov edx, dword [ebp - 0xa54]
mov dword [ebp - 0xa40], 0
mov dword [ebp - 0xa3c], 0xf
mov byte [ebp - 0xa50], 0
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x10032159
mov ecx, dword [ebp - 0xa68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003214f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100323c2
push edx
push ecx
call fcn.10051a28
add esp, 8
mov ebx, dword [ebp - 0xa74]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10032280
lea eax, [ebp - 0x218]
push eax
call fcn.10053460
add esp, 4
test eax, eax
je 0x10032280
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x100321b1
push dword [0x100cb1f4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100321b1
call eax
mov esi, eax
test esi, esi
je 0x10032280
mov eax, dword [esi]
push esi
call dword [eax + 4]
test eax, eax
jne 0x10032278
call fcn.10042a90
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x10032358
push 0x3b
push str.d:work_basic_mgamejs_basicjs_basicweb_window_factroy.cc
lea ecx, [ebp - 0xa50]
mov dword [ebp - 0xa40], eax
mov dword [ebp - 0xa3c], 0xf
mov byte [ebp - 0xa50], al
call fcn.100065f0
push 3
push 0x100a38bc
lea ecx, [ebp - 0xa68]
mov byte [ebp - 4], 0xe
mov dword [ebp - 0xa58], 0
mov dword [ebp - 0xa54], 0xf
mov byte [ebp - 0xa68], 0
call fcn.100065f0
mov byte [ebp - 4], 0xf
call fcn.10042a90
mov ebx, eax
lea ecx, [ebp - 0xb10]
push 0x42
lea eax, [ebp - 0xa50]
push eax
lea eax, [ebp - 0xa68]
push eax
call fcn.10003990
mov esi, eax
push str.InitMultiTabWebView_Failed
push esi
mov byte [ebp - 4], 0x10
call fcn.1000a1f0
jmp 0x1003232c
mov dword [ebx + 4], esi
jmp 0x10032358
call fcn.10042a90
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x10032358
push 0x3b
push str.d:work_basic_mgamejs_basicjs_basicweb_window_factroy.cc
lea ecx, [ebp - 0xa50]
mov dword [ebp - 0xa40], eax
mov dword [ebp - 0xa3c], 0xf
mov byte [ebp - 0xa50], al
call fcn.100065f0
push 3
push 0x100a38bc
lea ecx, [ebp - 0xa68]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0xa58], 0
mov dword [ebp - 0xa54], 0xf
mov byte [ebp - 0xa68], 0
call fcn.100065f0
mov byte [ebp - 4], 0xc
call fcn.10042a90
mov ebx, eax
lea ecx, [ebp - 0xb10]
push 0x3c
lea eax, [ebp - 0xa50]
push eax
lea eax, [ebp - 0xa68]
push eax
call fcn.10003990
mov esi, eax
push str.init_WebView.dll_failed
push esi
mov byte [ebp - 4], 0xd
call fcn.10004a70
mov edx, dword [ebx]
add esp, 8
mov ecx, ebx
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0xb10]
call fcn.10004ba0
lea ecx, [ebp - 0xa68]
call fcn.10004360
lea ecx, [ebp - 0xa50]
call fcn.10004360
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10032377
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
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.10051a36
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.1000aeb0
push 0x80004005
call fcn.1000aeb0
call fcn.10076ce3
call fcn.10076ce3
push 0x80004005
call fcn.1000aeb0
call fcn.10076ce3
call fcn.10076ce3
int3