Function at 0x42c8d0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4aaf46
mov eax, dword fs:[0]
push eax
sub esp, 0x820
mov eax, dword [0x4dffd0]
xor eax, esp
mov dword [esp + 0x81c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4dffd0]
xor eax, esp
push eax
lea eax, [esp + 0x834]
mov dword fs:[0], eax
xor ebx, ebx
push 0x7fe
lea eax, [esp + 0x36]
push ebx
push eax
mov word [esp + 0x3c], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [esp + 0x1c], 0x400
mov dword [esp + 0x24], str.CLSID8DA8B074_0AF4_446B_99A8_E92D714290A9LocalServer32
mov dword [esp + 0x28], str.CLSIDEC0744D2_871A_47CC_B063_C357B4CBA49DLocalServer32
mov dword [esp + 0x2c], str.CLSID38DE5EA9_F65E_4188_821D_D12A2D75B470LocalServer32
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + ecx*4 + 0x24]
lea edx, [esp + 0x14]
push edx
push 0x20019
push ebx
push eax
push SysReAllocString
mov dword [esp + 0x850], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x42cb19
mov eax, dword [0x500de4]
mov ebp, dword [esp + 0x14]
mov edx, dword [eax + 0xc]
mov ecx, 0x500de4
mov dword [esp + 0x20], ebp
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
push 0x800
lea eax, [esp + 0x34]
push ebx
push eax
mov byte [esp + 0x848], 1
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x34]
push edx
push ebx
lea ecx, [esp + 0x2c]
call fcn.00401e40
mov edx, dword [esp + 0x1c]
cmp edx, ebx
je 0x42cabc
lea eax, [esp + 0x30]
lea esi, [eax + 2]
jmp 0x42c9e0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x42c9e0
sub eax, esi
sar eax, 1
add eax, 1
cmp edx, eax
jne 0x42cabc
lea eax, [esp + 0x30]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x42ca01
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
call fcn.00405620
push 0x22
lea ecx, [esp + 0x18]
call fcn.0042c450
push 0x22
lea ecx, [esp + 0x18]
call fcn.0042c690
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or edx, 0xffffffff
test eax, eax
lea eax, [esi - 0x10]
mov byte [esp + 0x83c], bl
lea ecx, [eax + 0xc]
je 0x42ca95
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ca67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebp, ebx
mov dword [esp + 0x83c], 0xffffffff
je 0x42ca7d
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, 3
mov dword [esp + 0x18], eax
jb 0x42c949
xor eax, eax
jmp 0x42caf1
mov edi, 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42caad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebp, ebx
je 0x42cab8
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x42caf1
lea eax, [edi - 0x10]
mov esi, 1
mov byte [esp + 0x83c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42cae4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebp, ebx
je 0x42caef
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x834]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x81c]
xor ecx, esp
call fcn.0048e5b2
add esp, 0x82c
ret
mov eax, 1
jmp 0x42caf1