Function at 0x101475c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x11ec
call fcn.101f99e0
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1025a8d0]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test al, 1
jne 0x10147633
or eax, 1
mov dword [0x1025a8d0], eax
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov ecx, 0x1025a8cc
push 0x10202940
mov dword [0x1025a8cc], eax
call fcn.10023e80
test al, al
jne 0x10147626
push 0
push 0x10202940
mov ecx, 0x1025a8cc
call fcn.10003740
push 0x102011a0
call fcn.101c8090
add esp, 4
cmp dword [0x1025a8c8], 0
jne 0x10147afd
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
add eax, 0x10
mov dword [ebp - 0x11ec], eax
lea eax, [ebp - 0x9dc]
push 0x3e8
push eax
push dword [0x10257d10]
mov dword [ebp - 0x11e8], 0
mov dword [ebp - 0x11e4], 0
call esi
lea eax, [ebp - 0x9dc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x11e0]
mov dword [ebp - 0x11e0], eax
lea eax, [ebp - 0x9dc]
push eax
call fcn.10023e80
test al, al
jne 0x101476e6
lea ecx, [ebp - 0x9dc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x101476c4
sub ecx, edx
lea eax, [ebp - 0x9dc]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x11e0]
call fcn.10003740
push str.I18N.dll
lea eax, [ebp - 0x9dc]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x9dc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1014778f
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov ecx, ebx
push 0x10202940
mov dword [ebx], eax
call fcn.10023e80
test al, al
jne 0x1014773d
push 0
push 0x10202940
mov ecx, ebx
call fcn.10003740
mov edx, dword [ebp - 0x11e0]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1014775d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x11ec]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x10147b13
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x11dc]
push eax
push dword [0x10257d10]
call esi
cmp dword [ebp - 0x11e8], 0
mov edi, dword [ebp - 0x11e0]
jne 0x10147894
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.101b13a0
add esp, 8
test eax, eax
jne 0x101477fb
lea eax, [ebp - 0x9dc]
push eax
call fcn.100a1350
add esp, 4
test eax, eax
jne 0x101477fb
push 1
lea eax, [ebp - 0x9dc]
push 0x10248918
push eax
call fcn.1001ac50
add esp, 0xc
xor esi, esi
jmp 0x10147899
lea eax, [ebp - 0x9dc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x11e8], eax
test eax, eax
jne 0x10147819
xor esi, esi
jmp 0x10147899
push str.CreateI18N
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x10147848
mov eax, dword [ebp - 0x11e8]
test eax, eax
je 0x10147844
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x11e8], 0
xor esi, esi
jmp 0x10147899
lea ecx, [ebp - 0x11e4]
push ecx
call eax
mov ecx, dword [ebp - 0x11e4]
add esp, 4
test ecx, ecx
jne 0x10147862
xor esi, esi
jmp 0x10147899
mov eax, dword [ecx]
push edi
push ecx
call dword [eax + 0x20]
lea ecx, [ebp - 0x11dc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10147872
sub ecx, edx
lea eax, [ebp - 0x11dc]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x11ec]
call fcn.10003740
mov esi, 1
call fcn.10002d70
mov ecx, eax
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
test esi, esi
jne 0x10147917
push 0x10202940
mov ecx, ebx
mov dword [ebx], eax
call fcn.10023e80
test al, al
jne 0x101478cb
push esi
push 0x10202940
mov ecx, ebx
call fcn.10003740
or esi, 0xffffffff
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x101478e5
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x11ec]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x10147b13
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x11e0], eax
lea ecx, [ebp - 0x11ec]
push 0
lea eax, [ebp - 0x11e0]
push eax
call fcn.10142ca0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.101b13a0
mov esi, dword [ebp - 0x11e0]
add esp, 8
test eax, eax
jne 0x1014796d
push esi
call fcn.100a1350
add esp, 4
test eax, eax
jne 0x1014796d
push 1
push 0x10248918
push esi
call fcn.1001ac50
add esp, 0xc
xor eax, eax
jmp 0x10147978
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
lea edx, [esi - 0x10]
mov dword [ebp - 0x11e0], eax
or esi, 0xffffffff
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x10147998
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x11e4]
lea edx, [ebp - 0x20c]
add esp, 0xc
mov ecx, dword [eax]
push 0x104
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
je 0x101479f4
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x101479d3
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, 0x1025a788
call fcn.10003740
mov eax, dword [ebp - 0x11e0]
test eax, eax
je 0x10147a9a
mov ecx, 0x1025bea8
xchg dword [ecx], eax
mov eax, dword [ebp - 0x11e4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push 0
push 0x1025a8cc
lea ecx, [ebp - 0x11ec]
mov dword [0x1023fe00], eax
call fcn.10142ca0
push dword [0x1025a8cc]
call fcn.1000aa00
add esp, 4
test eax, eax
jne 0x10147a50
push eax
push 0x10202940
mov ecx, 0x1025a8cc
call fcn.10003740
jmp 0x10147a9a
mov eax, dword [0x1025a8cc]
cmp dword [eax - 4], 1
jle 0x10147a6d
push dword [eax - 0xc]
mov ecx, 0x1025a8cc
call fcn.10002c20
mov eax, dword [0x1025a8cc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [0x1025a8cc]
push dword [eax - 8]
push eax
call fcn.101e6fd0
mov ecx, dword [0x1025a8cc]
add esp, 8
xor edx, edx
mov dword [ecx - 0xc], eax
mov ecx, dword [0x1025a8cc]
mov word [ecx + eax*2], dx
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 0x1020ea64
push 0
push dword [0x1023fe00]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
mov dword [0x1025a8c8], 1
sbb eax, eax
add edi, 0xfffffff0
and dword [0x1023fe04], eax
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10147ae2
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x11ec]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x10147afd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x1025a8cc]
add eax, 0xfffffff0
push eax
call fcn.10002a60
add esp, 4
add eax, 0x10
mov dword [ebx], eax
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret