Function at 0x45bfcc
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value
Set registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x45bfd4
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x45c252
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0045bdd0
push esi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
sete bl
test edi, edi
je 0x45c00e
mov eax, ebx
xor al, 1
mov byte [edi], al
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
lea edx, [ebp - 0x28]
mov eax, 0x45c26c
call fcn.0044e86c
push dword [ebp - 0x28]
push 0x45c298
lea edx, [ebp - 0x2c]
mov eax, 0x45c2a4
call fcn.0044e86c
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.004043a8
mov eax, dword [ebp - 0x24]
call fcn.004044e8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
not eax
test eax, eax
jne 0x45c069
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 8
mov dword [ebp - 0xc], 4
test bl, bl
jne 0x45c129
cmp dword [ebp - 0x10], 0
je 0x45c129
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
lea edx, [ebp - 0x30]
mov eax, 0x45c2b8
call fcn.0044e86c
mov eax, dword [ebp - 0x30]
call fcn.004044e8
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45c129
cmp dword [ebp - 0x20], 3
jne 0x45c129
cmp dword [ebp - 8], 8
jne 0x45c129
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
lea edx, [ebp - 0x34]
mov eax, 0x45c2c8
call fcn.0044e86c
mov eax, dword [ebp - 0x34]
call fcn.004044e8
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45c129
cmp dword [ebp - 0x20], 3
jne 0x45c129
cmp dword [ebp - 0xc], 4
jne 0x45c129
cmp dword [ebp - 0x14], 0x10000
jne 0x45c117
cmp dword [ebp - 0x18], 0x10000
jbe 0x45c129
jmp 0x45c119
jle 0x45c129
mov eax, esi
call fcn.0045bd1c
cmp eax, dword [ebp - 0x1c]
je 0x45c21e
push 0
push 0
push 2
push 0
push 0
push 0xc0000000
push esi
call sub.kernel32.dll_CreateFileW
mov edi, eax
cmp edi, 0xffffffff
je 0x45c21a
cmp byte [0x465924], 0
je 0x45c161
lea edx, [ebp - 4]
mov eax, 0x45c2dc
call fcn.0045bf38
jmp 0x45c16e
lea edx, [ebp - 4]
mov eax, 0x45c2dc
call fcn.0045bf38
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004042e8
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x45c198
mov eax, dword [ebp - 4]
call fcn.004042e8
cmp eax, dword [ebp - 8]
je 0x45c19c
xor ebx, ebx
jmp 0x45c19e
mov bl, 1
push edi
call sub.kernel32.dll_CloseHandle
test bl, bl
je 0x45c220
cmp dword [ebp - 0x10], 0
je 0x45c220
mov dword [ebp - 0x18], 0x10000
mov dword [ebp - 0x14], 0x10000
mov eax, esi
call fcn.0045bd1c
mov dword [ebp - 0x1c], eax
push 8
lea eax, [ebp - 0x18]
push eax
push 3
push 0
mov eax, 0x45c2b8
lea edx, [ebp - 0x38]
call fcn.0044e86c
mov eax, dword [ebp - 0x38]
call fcn.004044e8
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExA
push 4
lea eax, [ebp - 0x1c]
push eax
push 3
push 0
mov eax, 0x45c2c8
lea edx, [ebp - 0x3c]
call fcn.0044e86c
mov eax, dword [ebp - 0x3c]
call fcn.004044e8
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExA
jmp 0x45c220
xor ebx, ebx
jmp 0x45c220
mov bl, 1
cmp dword [ebp - 0x10], 0
je 0x45c22f
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c259
lea eax, [ebp - 0x3c]
mov edx, 7
call fcn.0040404c
lea eax, [ebp - 4]
call fcn.00404028
ret