Function at 0x414090
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d18a5
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x64c00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
call fcn.00405800
mov ecx, eax
test ecx, ecx
je 0x41461d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x635b44
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.00406c20
test al, al
jne 0x4140fe
push 0
push 0x635b44
lea ecx, [ebp - 0x14]
call fcn.00406ed0
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
push str.install_reg_root
push str.parent_info
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.00412cf0
mov byte [ebp - 4], 3
or ebx, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41413f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00405800
mov ecx, eax
test ecx, ecx
je 0x414627
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x635b44
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00406c20
test al, al
jne 0x41417d
push 0
push 0x635b44
lea ecx, [ebp - 0x14]
call fcn.00406ed0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 5
push eax
push str.install_reg_path
push str.parent_info
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.00412cf0
mov byte [ebp - 4], 7
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4141b8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00405800
mov ecx, eax
test ecx, ecx
je 0x414631
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x635b44
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.00406c20
test al, al
jne 0x4141f6
push 0
push 0x635b44
lea ecx, [ebp - 0x14]
call fcn.00406ed0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 9
push eax
push str.install_reg_key
push str.parent_info
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.00412cf0
mov byte [ebp - 4], 0xb
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x414231
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00405800
mov ecx, eax
test ecx, ecx
je 0x41463b
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xd
call fcn.00411d60
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
test ecx, ecx
je 0x414272
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x24]
lea ecx, [ebp - 0x10]
push ecx
push 0x20219
push 0
push edi
push eax
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4142e6
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4142a1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x20119
push 0
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4142e6
call fcn.00405800
test eax, eax
je 0x414645
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
mov byte [ebp - 4], 0xe
jmp 0x4143ba
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00411c70
test eax, eax
jne 0x41438d
call fcn.00405800
test eax, eax
je 0x414645
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
push 0x635b44
mov byte [ebp - 4], 0xf
call fcn.00406c20
test al, al
jne 0x41433b
mov ecx, dword [ebp + 8]
push 0
push 0x635b44
call fcn.00406ed0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x414349
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0xb
mov eax, ebx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41436e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x414425
mov ecx, dword [esi]
push esi
jmp 0x414420
mov esi, dword [ebp - 0x14]
cmp dword [esi - 0xc], 0
jne 0x414468
call fcn.00405800
test eax, eax
je 0x414645
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
mov byte [ebp - 4], 0x10
push 0x635b44
call fcn.00406c20
test al, al
jne 0x4143d7
mov ecx, dword [ebp + 8]
push 0
push 0x635b44
call fcn.00406ed0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4143e5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0xb
mov eax, ebx
add esi, 0xfffffff0
mov dword [ebp - 0x10], 0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x414407
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov eax, ebx
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x414425
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x414440
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x414606
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x414606
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4144ad
test al, 0x10
jne 0x4144ad
mov edx, esi
lea ecx, [ebp - 0x1c]
call fcn.004078d0
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x11
call fcn.00406a90
mov byte [ebp - 4], 0xd
mov eax, ebx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4144ad
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x14]
call fcn.00407ae0
call fcn.00405800
mov ecx, eax
test ecx, ecx
je 0x414645
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push 0x635b44
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x12
call fcn.00406c20
test al, al
jne 0x4144f3
push 0
push 0x635b44
lea ecx, [ebp - 0x1c]
call fcn.00406ed0
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
push eax
push str.sub_dir
push str.install_reg
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x13
push eax
call fcn.00412cf0
mov byte [ebp - 4], 0x15
mov eax, ebx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41452f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x2c]
mov eax, dword [esi - 0xc]
test eax, eax
je 0x41454b
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.004089b0
lea ecx, [ebp - 0x14]
call fcn.00407ae0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov ecx, eax
mov dword [ebp - 0x28], eax
call fcn.00406d70
mov ecx, dword [ebp + 8]
add eax, 0x10
mov byte [ebp - 4], 0xd
add esi, 0xfffffff0
mov dword [ecx], eax
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41457e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x41458c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x28]
mov eax, ebx
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 0xb
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4145ae
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov eax, ebx
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4145cc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4145e7
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x414606
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00405600
push 0x80004005
call fcn.00405600
push 0x80004005
call fcn.00405600
push 0x80004005
call fcn.00405600
push 0x80004005
call fcn.00405600
int3