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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6b5f
mov eax, dword fs:[0]
push eax
sub esp, 0x6c8
mov eax, dword [0x66a8c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
call dword [0x60974c]
add esp, 4
push 2
call dword [0x609748]
add esp, 4
lea ecx, [ebp - 0x9c]
push ecx
call fcn.004ba2d0
add esp, 4
mov dword [ebp - 4], 0
call dword [0x609744]
mov dword [ebp - 0x684], eax
cmp dword [ebp - 0x684], 1
je 0x4ba4a0
cmp dword [ebp - 0x684], 2
je 0x4ba869
jmp 0x4bafde
lea edx, [ebp - 0x3f0]
push edx
call fcn.004be420
add esp, 4
mov dword [ebp - 0x688], eax
mov eax, dword [ebp - 0x688]
mov dword [ebp - 0x68c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x68c]
push ecx
lea edx, [ebp - 0xb8]
push edx
call fcn.005bfa30
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3f0]
call fcn.00403d10
lea ecx, [ebp - 0xb8]
call fcn.00408810
movzx eax, al
test eax, eax
je 0x4ba530
mov byte [ebp - 0x3f1], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb8]
call fcn.00401750
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call dword [0x609634]
mov al, byte [ebp - 0x3f1]
jmp 0x4baffe
lea ecx, [ebp - 0xb8]
call fcn.00401790
push eax
lea ecx, [ebp - 0x9c]
call dword [0x609740]
lea ecx, [ebp - 0x9c]
call dword [0x609684]
push eax
call dword [0x6096c0]
add esp, 4
cmp dword [0x6437c4], 2
jne 0x4ba690
lea ecx, [ebp - 0x478]
push ecx
call dword [0x60973c]
add esp, 4
mov dword [ebp - 0x690], eax
mov edx, dword [ebp - 0x690]
mov dword [ebp - 0x694], edx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x694]
call dword [0x609648]
push eax
lea ecx, [ebp - 0xd4]
call fcn.004016d0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x478]
call dword [0x609634]
push str.......3rdWkeDllwke.dll
lea ecx, [ebp - 0xd4]
call fcn.00418080
lea ecx, [ebp - 0xd4]
call fcn.00401790
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4ba622
mov byte [ebp - 0x479], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xd4]
call fcn.00401750
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb8]
call fcn.00401750
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call dword [0x609634]
mov al, byte [ebp - 0x479]
jmp 0x4baffe
lea ecx, [ebp - 0xd4]
call fcn.00401790
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push fcn.004c2be0
sub esp, 0x84
mov ecx, esp
mov dword [ebp - 0x480], esp
push 0xffffffffffffffff
push 0x5d6c24
call dword [0x60964c]
mov dword [ebp - 0x698], eax
mov eax, dword [ebp - 0x698]
mov dword [ebp - 0x69c], eax
mov byte [ebp - 4], 7
call dword [0x609738]
mov byte [ebp - 4], 6
mov ecx, eax
call dword [0x609734]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xd4]
call fcn.00401750
jmp 0x4ba855
cmp dword [0x6437c4], 3
jne 0x4ba855
lea ecx, [ebp - 0x504]
push ecx
call dword [0x60973c]
add esp, 4
mov dword [ebp - 0x6a0], eax
mov edx, dword [ebp - 0x6a0]
mov dword [ebp - 0x6a4], edx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x6a4]
call dword [0x609648]
push eax
lea ecx, [ebp - 0x10c]
call fcn.004016d0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x504]
call dword [0x609634]
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0xf0]
call fcn.00401710
mov byte [ebp - 4], 0xb
push str.......3rdCefResCefRes.7z
lea ecx, [ebp - 0xf0]
call fcn.00418080
lea ecx, [ebp - 0xf0]
call fcn.00401790
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4ba779
mov byte [ebp - 0x505], 0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xf0]
call fcn.00401750
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10c]
call fcn.00401750
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb8]
call fcn.00401750
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call dword [0x609634]
mov al, byte [ebp - 0x505]
jmp 0x4baffe
push 0
lea ecx, [ebp - 0xf0]
push ecx
lea edx, [ebp - 0x528]
push edx
call fcn.005c0350
add esp, 8
mov dword [ebp - 0x6a8], eax
mov eax, dword [ebp - 0x6a8]
mov dword [ebp - 0x6ac], eax
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x6ac]
call fcn.00403c80
push eax
lea ecx, [ebp - 0x10c]
call fcn.00401790
push eax
call fcn.0042b810
add esp, 0xc
mov dword [ebp - 0x50c], eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x528]
call fcn.00403d10
cmp dword [ebp - 0x50c], 0
je 0x4ba837
mov byte [ebp - 0x529], 0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xf0]
call fcn.00401750
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10c]
call fcn.00401750
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb8]
call fcn.00401750
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call dword [0x609634]
mov al, byte [ebp - 0x529]
jmp 0x4baffe
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xf0]
call fcn.00401750
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10c]
call fcn.00401750
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb8]
call fcn.00401750
jmp 0x4bafde
push 0x66e2ec
mov ecx, 0x66e008
call fcn.004bf5f0
movzx ecx, al
test ecx, ecx
jne 0x4ba8a4
mov byte [ebp - 0x52a], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call dword [0x609634]
mov al, byte [ebp - 0x52a]
jmp 0x4baffe
lea edx, [ebp - 0x144]
push edx
mov ecx, 0x66e008
call fcn.004bfd60
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x144]
call fcn.00403c80
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4ba903
mov byte [ebp - 0x52b], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x144]
call fcn.00403d10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call dword [0x609634]
mov al, byte [ebp - 0x52b]
jmp 0x4baffe
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x128]
push ecx
call fcn.0041bb00
add esp, 8
mov byte [ebp - 4], 0xe
lea edx, [ebp - 0x144]
push edx
lea eax, [ebp - 0x160]
push eax
call fcn.0041bba0
add esp, 8
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x128]
push ecx
lea edx, [ebp - 0x548]
push edx
call fcn.005bfa30
add esp, 8
mov dword [ebp - 0x6b0], eax
mov eax, dword [ebp - 0x6b0]
mov dword [ebp - 0x6b4], eax
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x6b4]
call fcn.00401790
push eax
call dword [0x6096c0]
add esp, 4
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x548]
call fcn.00401750
push 1
lea ecx, [ebp - 0x160]
push ecx
lea edx, [ebp - 0x564]
push edx
call fcn.005bfa30
add esp, 8
mov dword [ebp - 0x6b8], eax
mov eax, dword [ebp - 0x6b8]
mov dword [ebp - 0x6bc], eax
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x6bc]
call fcn.00401790
push eax
call dword [0x6096bc]
add esp, 8
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x564]
call fcn.00401750
cmp dword [0x6437c4], 2
jne 0x4bac9d
push str.20171025_download_wkekernel
lea ecx, [ebp - 0x168]
call fcn.004bca70
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x168]
call fcn.004bcaa0
test eax, eax
je 0x4baa18
mov dword [0x6437c4], 1
jmp 0x4bac89
mov byte [ebp - 0x28c], 0
push 0x103
push 0
lea ecx, [ebp - 0x28b]
push ecx
call fcn.00591690
add esp, 0xc
push 0
push 0x1a
lea edx, [ebp - 0x28c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push str.wkewke.dll
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [ebp - 0x28c]
push ecx
lea ecx, [ebp - 0x580]
call fcn.00404560
mov byte [ebp - 4], 0x13
push 1
lea edx, [ebp - 0x580]
push edx
push 0x66e258
lea eax, [ebp - 0x184]
push eax
call fcn.0041b9a0
add esp, 0x10
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x580]
call fcn.00403d10
lea ecx, [ebp - 0x168]
call fcn.004bcb20
lea ecx, [ebp - 0x184]
call fcn.00408810
movzx ecx, al
test ecx, ecx
je 0x4bab5f
push str..down_failure_wke
lea ecx, [ebp - 0x59c]
call fcn.00404560
mov byte [ebp - 4], 0x16
lea edx, [ebp - 0x59c]
push edx
call fcn.004cb890
add esp, 4
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x59c]
call fcn.00403d10
mov byte [ebp - 0x59d], 0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x184]
call fcn.00403d10
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x168]
call fcn.004bcac0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x160]
call fcn.00403d10
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x128]
call fcn.00403d10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x144]
call fcn.00403d10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call dword [0x609634]
mov al, byte [ebp - 0x59d]
jmp 0x4baffe
lea ecx, [ebp - 0x184]
call fcn.00403c80
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4babe5
mov byte [ebp - 0x59e], 0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x184]
call fcn.00403d10
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x168]
call fcn.004bcac0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x160]
call fcn.00403d10
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x128]
call fcn.00403d10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x144]
call fcn.00403d10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call dword [0x609634]
mov al, byte [ebp - 0x59e]
jmp 0x4baffe
lea eax, [ebp - 0x184]
push eax
lea ecx, [ebp - 0x5bc]
push ecx
call fcn.005bfa30
add esp, 8
mov dword [ebp - 0x6c0], eax
mov edx, dword [ebp - 0x6c0]
mov dword [ebp - 0x6c4], edx
mov byte [ebp - 4], 0x17
mov ecx, dword [ebp - 0x6c4]
call fcn.00401790
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x5bc]
call fcn.00401750
push fcn.004c2be0
sub esp, 0x84
mov ecx, esp
mov dword [ebp - 0x5c0], esp
push 0xffffffffffffffff
push str.CWkeWebkitUI
call dword [0x60964c]
mov dword [ebp - 0x6c8], eax
mov eax, dword [ebp - 0x6c8]
mov dword [ebp - 0x6cc], eax
mov byte [ebp - 4], 0x18
call dword [0x609738]
mov byte [ebp - 4], 0x15
mov ecx, eax
call dword [0x609734]
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x184]
call fcn.00403d10
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x168]
call fcn.004bcac0
jmp 0x4bafb1
cmp dword [0x6437c4], 3
jne 0x4bafb1
push str.20171117_download_cefkernel
lea ecx, [ebp - 0x294]
call fcn.004bca70
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x294]
call fcn.004bcaa0
test eax, eax
je 0x4bacdc
mov dword [0x6437c4], 1
jmp 0x4bafa2
mov byte [ebp - 0x3d4], 0
push 0x103
push 0
lea ecx, [ebp - 0x3d3]
push ecx
call fcn.00591690
add esp, 0xc
push 0
push 0x1a
lea edx, [ebp - 0x3d4]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0x5d6d2c
lea eax, [ebp - 0x3d4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov ecx, 0x66e36c
call fcn.00403c80
push eax
lea ecx, [ebp - 0x3d4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov ecx, 0x66e518
call fcn.00403c80
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
lea edx, [ebp - 0x3d4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x3d4]
push eax
lea ecx, [ebp - 0x5dc]
call fcn.00404560
mov byte [ebp - 4], 0x1a
push 1
lea ecx, [ebp - 0x5dc]
push ecx
push 0x66e518
lea edx, [ebp - 0x2b0]
push edx
call fcn.0041b9a0
add esp, 0x10
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x5dc]
call fcn.00403d10
lea ecx, [ebp - 0x294]
call fcn.004bcb20
lea ecx, [ebp - 0x2b0]
call fcn.00408810
movzx eax, al
test eax, eax
je 0x4bae44
push str..down_failure_cef
lea ecx, [ebp - 0x5f8]
call fcn.00404560
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x5f8]
push ecx
call fcn.004cb890
add esp, 4
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x5f8]
call fcn.00403d10
mov dword [0x6437c4], 1
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x2b0]
call fcn.00403d10
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x294]
call fcn.004bcac0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x160]
call fcn.00403d10
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x128]
call fcn.00403d10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x144]
call fcn.00403d10
jmp 0x4bafde
lea edx, [ebp - 0x3d4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4baeaf
mov dword [0x6437c4], 1
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x2b0]
call fcn.00403d10
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x294]
call fcn.004bcac0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x160]
call fcn.00403d10
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x128]
call fcn.00403d10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x144]
call fcn.00403d10
jmp 0x4bafde
lea eax, [ebp - 0x67c]
push eax
call dword [0x60973c]
add esp, 4
mov dword [ebp - 0x6d0], eax
mov ecx, dword [ebp - 0x6d0]
mov dword [ebp - 0x6d4], ecx
mov byte [ebp - 4], 0x1e
mov ecx, dword [ebp - 0x6d4]
call dword [0x609648]
push eax
lea ecx, [ebp - 0x2cc]
call fcn.004016d0
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x67c]
call dword [0x609634]
push 0
lea edx, [ebp - 0x3d4]
push edx
lea ecx, [ebp - 0x2cc]
call fcn.00401790
push eax
call fcn.0042b810
add esp, 0xc
test eax, eax
je 0x4baf84
mov dword [0x6437c4], 1
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x2cc]
call fcn.00401750
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x2b0]
call fcn.00403d10
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x294]
call fcn.004bcac0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x160]
call fcn.00403d10
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x128]
call fcn.00403d10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x144]
call fcn.00403d10
jmp 0x4bafde
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x2cc]
call fcn.00401750
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x2b0]
call fcn.00403d10
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x294]
call fcn.004bcac0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x160]
call fcn.00403d10
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x128]
call fcn.00403d10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x144]
call fcn.00403d10
mov byte [ebp - 0x67d], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call dword [0x609634]
mov al, byte [ebp - 0x67d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00590c4b
mov esp, ebp
pop ebp
ret