Function at 0x4255e0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d31d6
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x655494]
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 eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x430]
push eax
mov byte [ebp - 0x421], 0
call fcn.004118b0
add esp, 4
mov ecx, dword [eax]
or ebx, 0xffffffff
mov esi, dword [edi]
sub esi, 0x10
mov dword [ebp - 4], 0
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x425691
cmp dword [esi + 0xc], 0
jl 0x425686
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x425686
push edx
call fcn.00408060
mov dword [ebp - 0x428], eax
lea ecx, [esi + 0xc]
add esp, 4
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x425679
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x428]
add eax, 0x10
mov dword [edi], eax
jmp 0x425691
push dword [ecx - 0xc]
push ecx
mov ecx, edi
call fcn.00409310
mov edx, dword [ebp - 0x430]
mov eax, ebx
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4256b5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x425897
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x438], 1
push 0
push eax
mov dword [ebp - 0x434], 0x104
call fcn.005245e0
add esp, 0xc
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x438]
push eax
push str.Setup_Path
push str.SOFTWAREBiscuitZip
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x425897
push str.BiscuitZip.exe
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x425897
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.005245e0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push dword [0x65efb4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.00408b50
mov ecx, eax
test ecx, ecx
je 0x4258b9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x428]
call fcn.00407f20
test al, al
jne 0x4257d7
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4257b5
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x428]
call fcn.00409310
mov esi, dword [ebp - 0x42c]
lea eax, [ebp - 0x428]
push esi
push eax
mov dword [ebp - 4], 2
call fcn.00416eb0
mov edx, dword [ebp - 0x428]
add esp, 8
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x425816
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x425897
mov ecx, dword [0x65c610]
test ecx, ecx
jne 0x42588d
push 0x653d28
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x65c610], 0
jne 0x42587c
push 0xa8
call fcn.004325e0
add esp, 4
mov dword [ebp - 0x42c], eax
mov dword [ebp - 4], 3
test eax, eax
je 0x425863
mov ecx, eax
call fcn.004152b0
jmp 0x425865
xor eax, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
xor edx, edx
lock or dword [ecx], edx
mov dword [0x65c610], eax
push 0x653d28
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x65c610]
push esi
call fcn.0041c9f0
mov al, 1
jmp 0x42589d
mov al, byte [ebp - 0x421]
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.00468f28
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00407f00
int3