Function at 0x55c6f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f4536
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x6670f4]
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 ebx, ecx
mov dword [ebp - 0x274], ebx
mov edi, dword [ebp + 8]
lea eax, [ebx + 0x10]
push eax
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x27c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x278], 1
cmp dword [ebx + 8], 0
mov dword [ebp - 4], 0
je 0x55c95a
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x55c95a
mov eax, dword [ebx + 4]
lea esi, [ebx + 4]
cmp dword [eax - 0xc], 0
jne 0x55c92d
test edi, edi
jne 0x55c782
xor ecx, ecx
jmp 0x55c796
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x55c787
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.004c0470
lea eax, [ebp - 0x26c]
push esi
push eax
call fcn.00567f60
add esp, 8
mov eax, dword [eax]
mov ebx, dword [esi]
sub ebx, 0x10
mov byte [ebp - 4], 1
mov dword [ebp - 0x268], eax
lea edi, [eax - 0x10]
cmp edi, ebx
je 0x55c858
cmp dword [ebx + 0xc], 0
jl 0x55c84d
mov ecx, dword [edi]
cmp ecx, dword [ebx]
jne 0x55c84d
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
mov ecx, eax
lea eax, [edi + 0xc]
jl 0x55c7f0
cmp ecx, dword [edi]
jne 0x55c7f0
lock inc dword [eax]
jmp 0x55c82f
mov eax, dword [ecx]
lea edx, [edi + 4]
push 2
push dword [edx]
mov dword [ebp - 0x264], edx
call dword [eax]
mov edi, eax
test edi, edi
je 0x55c98a
mov ecx, dword [ebp - 0x264]
mov eax, dword [ecx]
mov dword [edi + 4], eax
mov eax, dword [ecx]
inc eax
add eax, eax
push eax
push dword [ebp - 0x268]
push eax
lea eax, [edi + 0x10]
push eax
call fcn.0055cb30
add esp, 0x10
or eax, 0xffffffff
lea ecx, [ebx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x55c846
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [edi + 0x10]
mov dword [esi], eax
jmp 0x55c858
push dword [eax - 0xc]
mov ecx, esi
push eax
call fcn.004c0470
mov edx, dword [ebp - 0x26c]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x55c87a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
mov ebx, 0x60bb0c
sub ebx, eax
mov dword [ebp - 0x264], 0x60bb0c
push 0x17
push 0x60bb0c
mov edi, dword [eax - 0xc]
sar ebx, 1
mov dword [ebp - 0x26c], edi
call fcn.005a976e
mov ecx, eax
add esp, 8
mov eax, SysReAllocString
mov dword [ebp - 0x268], ecx
sub eax, ecx
cmp eax, edi
jl 0x55c98f
add edi, ecx
js 0x55c999
mov edx, dword [esi]
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x55c8e3
push edi
mov ecx, esi
call fcn.004b4690
mov edx, dword [esi]
mov ecx, dword [ebp - 0x26c]
cmp ebx, ecx
ja 0x55c8f6
lea eax, [edx + ebx*2]
mov dword [ebp - 0x264], eax
mov eax, dword [ebp - 0x268]
add eax, eax
push eax
push dword [ebp - 0x264]
push eax
lea eax, [edx + ecx*2]
push eax
call fcn.0055cb30
mov eax, dword [esi]
add esp, 0x10
cmp edi, dword [eax - 8]
jg 0x55c98f
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [esi]
mov word [eax + edi*2], cx
mov eax, dword [ebp - 0x274]
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x260]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x55c953
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x270], 1
jmp 0x55c95a
mov ecx, esi
call fcn.004bd3a0
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x270]
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.0050ed5c
mov esp, ebp
pop ebp
ret 4
call fcn.004b5400
push 0x80070057
call fcn.004b3510
push 0x80070057
call fcn.004b3510
int3