Function at 0x1000c540
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1006bd48
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x100810f0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [0x10083758]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
xor edi, edi
mov dword [esp + 0x38], edi
push edx
mov dword [esp + 0x3c], esi
call fcn.10002620
mov dword [esp + 0x48], edi
mov eax, dword [0x100829cc]
mov edx, dword [eax + 0xc]
mov ecx, 0x100829cc
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x48], 1
mov eax, dword [0x100829cc]
mov edx, dword [eax + 0xc]
mov ecx, 0x100829cc
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
mov bl, 2
mov byte [esp + 0x48], bl
mov edx, dword [esp + 0x14]
mov edi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, edi
or eax, ecx
jge 0x1000c5ed
mov ecx, edi
lea eax, [esp + 0x14]
call fcn.10003b80
mov edx, dword [esp + 0x14]
lea eax, [edi + 1]
push eax
push edx
call fcn.1004f086
add esp, 8
test edi, edi
jl 0x1000cabd
mov eax, dword [esp + 0x14]
cmp edi, dword [eax - 8]
jg 0x1000cabd
mov dword [eax - 0xc], edi
mov edx, dword [esp + 0x14]
push 0x1007a234
push 0x1007a238
lea eax, [esp + 0x1c]
xor ecx, ecx
push eax
mov word [edx + edi*2], cx
call fcn.100027a0
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x34], esp
mov edi, esp
call fcn.10003bd0
add eax, 0x10
lea ecx, [esp + 0x28]
mov dword [edi], eax
call fcn.1000cad0
lea edi, [esp + 0x18]
mov byte [esp + 0x48], 3
call fcn.10003200
mov byte [esp + 0x48], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000c683
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x18]
cmp dword [edi - 0xc], 0
jne 0x1000c716
mov byte [esp + 0x48], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000c6b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
or edx, 0xffffffff
lea ecx, [edi + 0xc]
mov byte [esp + 0x48], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000c6d7
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000c6ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
mov ebx, edi
jge 0x1000c73e
mov ecx, 0x104
lea eax, [esp + 0x18]
call fcn.10003b80
mov edi, dword [esp + 0x18]
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
mov eax, dword [edi - 8]
push eax
push edi
call fcn.1004f227
add esp, 8
test eax, eax
jl 0x1000cabd
cmp eax, dword [edi - 8]
jg 0x1000cabd
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
lea eax, [esp + 0x24]
lea ecx, [esp + 0x18]
call fcn.1000d010
push eax
mov ecx, str.wotplugin.msg
call fcn.10002b50
mov bl, al
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000c7aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x1000c691
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x34], esp
mov ebx, esp
call fcn.10003bd0
add eax, 0x10
mov dword [ebx], eax
lea ebx, [esp + 0x20]
call fcn.1000cd20
mov byte [esp + 0x48], 4
mov ecx, dword [esi + 0x44]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x34]
add esi, 0x24
push eax
call fcn.10009f10
mov ecx, dword [esp + 0x30]
mov ebx, dword [esi + 0x18]
mov eax, dword [esi]
test ecx, ecx
je 0x1000c807
cmp ecx, eax
je 0x1000c80c
call fcn.1004f1fa
cmp dword [esp + 0x34], ebx
setne al
test al, al
je 0x1000c92e
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x34]
push edx
mov ebx, str.res_wbp_
call fcn.10005fb0
push eax
lea eax, [esp + 0x38]
push eax
mov ebx, str.0.8.4
mov byte [esp + 0x58], 5
call fcn.10005fb0
push eax
lea ecx, [esp + 0x3c]
push ecx
mov ebx, 0x1007a234
mov byte [esp + 0x60], 6
call fcn.10005fb0
add esp, 0x18
mov ebx, eax
lea edx, [esp + 0x18]
push edx
mov edi, esi
mov byte [esp + 0x4c], 7
call fcn.10009c80
push eax
lea eax, [esp + 0x28]
push eax
call fcn.10009900
add esp, 8
mov ecx, dword [ebp + 8]
mov byte [esp + 0x48], 8
mov eax, dword [eax]
push ecx
mov edx, eax
call fcn.10003a80
mov byte [esp + 0x48], 7
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000c8b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x48], 6
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000c8d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x48], 5
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000c8fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x48], 4
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000c923
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x18]
mov bl, 1
jmp 0x1000ca05
mov eax, 6
lea ecx, [esp + 0x30]
lea edx, [esp + 0x18]
call fcn.10002ae0
push eax
mov ecx, str.audio_
call fcn.10002b50
add esp, 4
test al, al
je 0x1000c97d
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jl 0x1000c97d
push 0x1007a23c
push eax
call fcn.1004ec8e
add esp, 8
test eax, eax
je 0x1000c97d
sub eax, dword [esp + 0x14]
sar eax, 1
cmp eax, 0xffffffff
je 0x1000c97d
mov bl, 1
jmp 0x1000c97f
xor bl, bl
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000c99f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x1000ca03
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000ca03
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x30]
push eax
mov ebx, str.res_
call fcn.10005fb0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x3c]
push edx
mov ebx, eax
mov byte [esp + 0x58], 9
call fcn.10009900
add esp, 0x10
mov ecx, dword [ebp + 8]
mov byte [esp + 0x48], 0xa
mov eax, dword [eax]
push ecx
mov edx, eax
call fcn.10003a80
lea eax, [esp + 0x30]
call fcn.100030a0
lea eax, [esp + 0x2c]
call fcn.100030a0
xor bl, bl
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 0x44]
push eax
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
mov byte [esp + 0x48], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000ca38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x48], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000ca5d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov byte [esp + 0x48], 0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000ca7e
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000caa6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.10005a00
int3