Function at 0x41f0f0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4fb2f1
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x530790]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
push edi
mov eax, dword [0x530790]
xor eax, esp
push eax
lea eax, [esp + 0x244]
mov dword fs:[0], eax
mov eax, dword [esp + 0x254]
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x28], eax
cmp esi, ebx
je 0x41f2b1
xor edi, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x24c], ebx
mov edx, dword [0x534ab0]
mov eax, dword [edx + 0xc]
mov ecx, 0x534ab0
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push esi
lea ecx, [esp + 0x1c]
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_s
push ecx
mov byte [esp + 0x258], 1
call fcn.004198b0
add esp, 0xc
mov dword [esp + 0x2c], reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], SysReAllocString
xor esi, esi
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + esi*4 + 0x2c]
lea edx, [esp + 0x1c]
push edx
push 1
push ebx
push ecx
push eax
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x41f275
xor eax, eax
cmp edi, ebx
je 0x41f1c7
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebx
cmp eax, ebx
jne 0x41f275
push 0x206
lea eax, [esp + 0x3a]
xor edx, edx
push ebx
push eax
mov word [esp + 0x40], dx
call fcn.004ccbe0
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x38]
push edx
push ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x28], 0x104
call fcn.0041d760
test eax, eax
jne 0x41f275
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x18]
call fcn.004186a0
push ebx
push 0x51184c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x254], 2
call fcn.00423680
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41f2da
mov byte [esp + 0x24c], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41f275
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc esi
cmp esi, 2
jb 0x41f196
mov byte [esp + 0x24c], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f2a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, ebx
je 0x41f2b1
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [esp + 0x244]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.004cd040
add esp, 0x240
ret
mov edx, dword [esp + 0x14]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41f2e3
mov ecx, dword [esp + 0x28]
sub eax, esi
sar eax, 1
push eax
push edx
call fcn.0041c0c0
mov byte [esp + 0x24c], 1
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 0x41f325
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24c], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f34c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, ebx
je 0x41f357
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x41f2b3