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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100dc60e
mov eax, dword fs:[0]
push eax
sub esp, 0xb08
mov eax, dword [0x10118974]
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 dword [ebp - 0xa78], ecx
mov eax, dword [ebp + 8]
push 0x208
mov dword [ebp - 0xa7c], eax
mov dword [ebp - 0xa70], eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100ac300
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.100ac300
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 - 0x218]
mov edx, 0x104
lea esi, [ebp - 0xa38]
mov eax, ecx
sub esi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x100539b2
movzx eax, word [esi + ecx]
test ax, ax
je 0x100539b2
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x10053994
lea eax, [ecx - 2]
test edx, edx
push 0x208
cmovne eax, ecx
xor ecx, ecx
push ecx
mov word [eax], cx
lea eax, [ebp - 0x420]
push eax
call fcn.100ac300
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.10009a50
mov ecx, eax
test ecx, ecx
je 0x10053d8d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xa74], eax
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x830]
mov dword [ebp - 4], 0
push eax
call edi
push str.JsBasiclog
lea eax, [ebp - 0x830]
push eax
call edi
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10053a50
lea eax, [ebp - 0x830]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
call fcn.10009a50
mov ecx, eax
test ecx, ecx
je 0x10053d97
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xa6c], eax
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa6c]
test eax, 0xffff0000
jne 0x10053a8f
movzx eax, ax
push eax
call fcn.10009df0
jmp 0x10053a95
push eax
call fcn.1002e010
push 0
lea eax, [ebp - 0xa6c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0xa70]
push eax
call fcn.1006c0e0
push dword [eax]
lea eax, [ebp - 0xa74]
mov byte [ebp - 4], 3
push str.JsBasicLog_s.js_basic.log
push eax
call fcn.10013850
mov edx, dword [ebp - 0xa70]
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 0x10053aec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xa6c]
mov eax, ebx
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10053b0d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0xa74]
lea eax, [ebp - 0x218]
push esi
push eax
call edi
push 0x100e4a18
push 0x6400000
push 0
push 1
lea eax, [ebp - 0x218]
push eax
call fcn.10064bb0
call fcn.10064ac0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x10053cb4
push 0x55
push str.d:jenkins.jenkinsworkspacemgamecef_basicjs_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.1000b3d0
push 3
push 0x100e4e3c
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.1000b3d0
mov byte [ebp - 4], 5
call fcn.10064ac0
mov ebx, eax
lea ecx, [ebp - 0xb14]
push 0x67
lea eax, [ebp - 0xa68]
push eax
lea eax, [ebp - 0xa50]
push eax
call fcn.10007d20
mov edi, eax
push str.WebWindowFactoryImp_Init
push edi
mov byte [ebp - 4], 6
call fcn.100053e0
mov edx, dword [ebx]
add esp, 8
mov ecx, ebx
push edi
call dword [edx + 0x1c]
lea ecx, [ebp - 0xb14]
call fcn.10009120
mov edx, dword [ebp - 0xa3c]
mov byte [ebp - 4], 4
cmp edx, 0x10
jb 0x10053c37
mov ecx, dword [ebp - 0xa50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10053c2d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10053da1
push edx
push ecx
call fcn.100915df
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 0x10053c90
mov ecx, dword [ebp - 0xa68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10053c86
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10053da6
push edx
push ecx
call fcn.100915df
add esp, 8
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
or ebx, 0xffffffff
mov dword [ebp - 0xa58], 0
mov dword [ebp - 0xa54], 0xf
mov byte [ebp - 0xa68], 0
push 0x38
call fcn.10088930
add esp, 4
mov dword [ebp - 0xa70], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x10053cd5
mov ecx, eax
call fcn.1003f740
jmp 0x10053cd7
xor eax, eax
mov ecx, dword [ebp - 0xa78]
mov byte [ebp - 4], 0
mov dword [ecx + 8], eax
test eax, eax
je 0x10053cf4
push 0x1f4
mov ecx, eax
call fcn.1003f900
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.100ac300
add esp, 0xc
lea eax, [ebp - 0x628]
push 0x104
push eax
push dword [0x1011db80]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.WebBridge.dll
lea eax, [ebp - 0x628]
push eax
call edi
mov edi, dword [ebp - 0xa7c]
lea eax, [ebp - 0x628]
push eax
mov ecx, edi
call fcn.10007a60
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10053d6d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.1009195e
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.10009840
push 0x80004005
call fcn.10009840
call fcn.100af803
call fcn.100af803
int3