Function at 0x10154f40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc2c
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10259810]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test al, 1
jne 0x10154fb7
or eax, 1
mov dword [0x10259810], eax
call fcn.10003980
mov ecx, eax
test ecx, ecx
je 0x1015549f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov ecx, 0x1025980c
push 0x10219d7c
mov dword [0x1025980c], eax
call fcn.10004a70
test al, al
jne 0x10154faa
push 0
push 0x10219d7c
mov ecx, 0x1025980c
call fcn.10004050
push 0x102179e0
call fcn.101e22c0
add esp, 4
cmp dword [0x10259808], 0
jne 0x10155413
call fcn.10003980
mov ecx, eax
test ecx, ecx
je 0x1015549f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc28], 0
push 0x20a
mov dword [ebp - 0xc2c], eax
lea eax, [ebp - 0x210]
push 0
push eax
mov dword [ebp - 0xc24], 0
call fcn.102134e7
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
add esp, 0xc
push 0x104
push eax
push dword [0x10256b30]
call edi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
call fcn.10003980
mov ecx, eax
test ecx, ecx
je 0x1015549f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [ebp - 0xc20]
mov dword [ebp - 0xc20], eax
lea eax, [ebp - 0x210]
push eax
call fcn.10004a70
test al, al
jne 0x10155092
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10155070
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xc20]
call fcn.10004050
push str.I18N.dll
lea eax, [ebp - 0x210]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x210]
push eax
call esi
test eax, eax
jne 0x10155145
call fcn.10003980
mov ecx, eax
test ecx, ecx
je 0x1015549f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov ecx, ebx
push 0x10219d7c
mov dword [ebx], eax
call fcn.10004a70
test al, al
jne 0x101550f3
push 0
push 0x10219d7c
mov ecx, ebx
call fcn.10004050
mov edx, dword [ebp - 0xc20]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10155113
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xc2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x10155429
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.10212f74
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0xc1c]
push eax
push dword [0x10256b30]
call edi
cmp dword [ebp - 0xc28], 0
mov edi, dword [ebp - 0xc20]
jne 0x10155292
lea eax, [ebp - 0x210]
push eax
call fcn.1001d810
add esp, 4
test eax, eax
lea eax, [ebp - 0x210]
push eax
jne 0x10155200
call esi
test eax, eax
je 0x101551a2
push 1
lea eax, [ebp - 0x210]
push 0x1024d040
push eax
call fcn.10035520
add esp, 0xc
push 0x10219d7c
mov ecx, ebx
call fcn.10004700
mov edx, dword [ebp - 0xc20]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101551ce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xc2c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x10155429
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.10212f74
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0xc28], eax
test eax, eax
je 0x101551a2
push str.CreateI18N
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x10155244
mov eax, dword [ebp - 0xc28]
test eax, eax
je 0x101551a2
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0xc28], 0
jmp 0x101551a2
lea ecx, [ebp - 0xc24]
push ecx
call eax
mov ecx, dword [ebp - 0xc24]
add esp, 4
test ecx, ecx
je 0x101551a2
mov eax, dword [ecx]
push edi
push ecx
call dword [eax + 0x20]
lea ecx, [ebp - 0xc1c]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10155270
sub ecx, edx
lea eax, [ebp - 0xc1c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xc2c]
call fcn.10004050
call fcn.10003980
test eax, eax
je 0x1015549f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0xc2c]
mov dword [ebp - 0xc20], eax
lea eax, [ebp - 0xc20]
push 0
push eax
call fcn.101515d0
mov esi, dword [ebp - 0xc20]
push esi
call fcn.1001d810
add esp, 4
test eax, eax
jne 0x101552f5
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x101552f1
push 1
push 0x1024d040
push esi
call fcn.10035520
add esp, 0xc
xor eax, eax
jmp 0x10155300
push 2
push 0
push esi
call dword [0x10219950]
lea edx, [esi - 0x10]
mov dword [ebp - 0xc20], eax
or esi, 0xffffffff
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x10155320
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x20a
lea eax, [ebp - 0x41c]
push 0
push eax
call fcn.102134e7
mov eax, dword [ebp - 0xc24]
lea edx, [ebp - 0x41c]
add esp, 0xc
mov ecx, dword [eax]
push 0x104
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
je 0x10155381
lea ecx, [ebp - 0x41c]
lea edx, [ecx + 2]
jmp 0x10155360
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10155360
sub ecx, edx
lea eax, [ebp - 0x41c]
sar ecx, 1
push ecx
push eax
mov ecx, 0x102596e0
call fcn.10004050
mov eax, dword [ebp - 0xc20]
test eax, eax
je 0x101553d7
mov ecx, 0x1025aba0
xchg dword [ecx], eax
mov eax, dword [ebp - 0xc24]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push 0
push 0x1025980c
lea ecx, [ebp - 0xc2c]
mov dword [0x1024e2f0], eax
call fcn.101515d0
push dword [0x1025980c]
call fcn.1000bcb0
add esp, 4
test eax, eax
jne 0x1015543c
push eax
push 0x10219d7c
mov ecx, 0x1025980c
call fcn.10004050
mov dword [0x10259808], 1
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x101553f8
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xc2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x10155413
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x1025980c]
add eax, 0xfffffff0
push eax
call fcn.10004ba0
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.10212f74
mov esp, ebp
pop ebp
ret
mov eax, dword [0x1025980c]
cmp dword [eax - 4], 1
jle 0x10155459
push dword [eax - 0xc]
mov ecx, 0x1025980c
call fcn.100038a0
mov eax, dword [0x1025980c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [0x1025980c]
push dword [eax - 8]
push eax
call fcn.10200d80
mov edx, eax
add esp, 8
test edx, edx
js 0x10155495
mov ecx, dword [0x1025980c]
cmp edx, dword [ecx - 8]
jg 0x10155495
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [0x1025980c]
mov word [eax + edx*2], cx
jmp 0x101553d7
push 0x80070057
call fcn.100030c0
push 0x80004005
call fcn.100030c0
int3