Function at 0x45c838
Capabilities:
Delete file
Enumerate files on windows
Set registry value

Disassembly:
push ebx
push esi
add esp, 0xfffffeb4
mov eax, dword [0x48d5a8]
cmp byte [eax], 0
jne 0x45caba
mov eax, dword [0x48db48]
mov ax, word [eax]
mov edx, dword [0x48d550]
mov word [edx + 0x1df8], ax
mov eax, dword [0x48d550]
cmp byte [eax + 0x18d5], 0
je 0x45c896
mov eax, dword [0x48db74]
cmp byte [eax], 2
seta al
and eax, 0x7f
mov edx, dword [0x48d550]
mov ecx, dword [0x48d910]
mov cx, word [ecx]
mov word [edx + eax*2 + 0x17b8], cx
mov eax, dword [0x48d6a0]
cmp byte [eax], 0
jne 0x45c8a5
call fcn.00410c64
mov eax, dword [0x48dbb8]
cmp byte [eax], 0
jne 0x45c942
mov eax, dword [0x48d254]
cmp byte [eax], 0
je 0x45c904
push esp
mov eax, dword [0x48d62c]
mov eax, dword [eax]
push eax
push 0x80000001
call sub.advapi32.dll_RegCreateKeyA
mov eax, dword [0x48d550]
movzx eax, byte [eax + 0x18a0]
imul eax, eax, 0x12c
push eax
mov eax, dword [0x48d784]
mov eax, dword [eax]
push eax
push 3
push 0
mov eax, dword [0x48d838]
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
jmp 0x45c942
push 0
mov eax, dword [0x48d838]
mov eax, dword [eax + 0x14]
call fcn.00412904
push eax
call sub.kernel32.dll__lcreat
mov ebx, eax
mov eax, dword [0x48d550]
movzx eax, byte [eax + 0x18a0]
imul eax, eax, 0x12c
push eax
mov eax, dword [0x48d784]
mov eax, dword [eax]
push eax
push ebx
call sub.kernel32.dll__hwrite
push ebx
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [0x48d550]
cmp byte [eax + 0x188d], 2
je 0x45c962
mov eax, dword [0x48d550]
cmp byte [eax + 0x18d3], 0
je 0x45caba
mov edx, dword [0x48d550]
add edx, 0x200
mov eax, dword [0x48da44]
call fcn.00405c48
push 0x45cac8
mov eax, dword [0x48da44]
push eax
call sub.kernel32.dll_lstrcatA
mov byte [esp + 0x38], 0
lea eax, [esp + 0xc]
push eax
mov eax, dword [0x48da44]
push eax
call sub.kernel32.dll_FindFirstFileA
mov esi, eax
jmp 0x45caa9
mov edx, dword [0x48d550]
add edx, 0x200
mov eax, dword [0x48d370]
call fcn.00405c48
lea eax, [esp + 0x38]
push eax
mov eax, dword [0x48d370]
push eax
call sub.kernel32.dll_lstrcatA
mov eax, dword [0x48d370]
mov ecx, 0x10000000
mov edx, 0x80000000
call fcn.0040eba4
mov ebx, eax
push 0
push 0
push 0x110
push ebx
call sub.kernel32.dll_SetFilePointer_1
push 2
mov eax, dword [0x48db3c]
push eax
push ebx
call sub.kernel32.dll__lread
push 1
push 0
mov eax, dword [0x48db3c]
movzx eax, word [eax]
add eax, 0x22
add eax, 4
push eax
push ebx
call sub.kernel32.dll_SetFilePointer_1
push 4
lea eax, [esp + 8]
push eax
push ebx
call sub.kernel32.dll__lread
push 1
lea eax, [esp + 0xc]
push eax
push ebx
call sub.kernel32.dll__lread
push ebx
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [0x48d550]
cmp byte [eax + 0x188d], 2
jne 0x45ca5f
mov eax, dword [0x48daa0]
mov eax, dword [eax]
cmp eax, dword [esp + 4]
jne 0x45ca5f
cmp byte [esp + 8], 1
je 0x45ca5f
cmp byte [esp + 8], 0xf
jne 0x45ca74
mov eax, dword [0x48d550]
cmp byte [eax + 0x18d3], 0
je 0x45ca94
cmp byte [esp + 8], 0xf
jne 0x45ca94
mov eax, dword [0x48d370]
push eax
call sub.kernel32.dll_DeleteFileA_1
mov eax, dword [0x48d370]
call fcn.0040ebbc
or ecx, 0xffffffff
or edx, 0xffffffff
call fcn.00412668
lea eax, [esp + 0xc]
push eax
push esi
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x45cab4
cmp byte [esp + 0x38], 0
jne 0x45c9a4
push esi
call sub.kernel32.dll_FindClose
call fcn.00410db4
add esp, 0x14c
pop esi
pop ebx
ret