Function at 0x405ea0
Capabilities:
Delete directory
Get file size
Query or enumerate registry key
Query or enumerate registry value
Read file on windows
Resolve function by parsing pe exports
Write file on windows

Disassembly:
mov eax, 0x1090
call fcn.004a5d20
mov eax, dword [0x4c4004]
xor eax, esp
mov dword [esp + 0x108c], eax
mov eax, dword [esp + 0x1098]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10a0]
mov ebp, edx
push edi
mov dword [esp + 0x68], eax
xor eax, eax
push 0x7fe
push eax
mov dword [esp + 0x3c], eax
mov word [esp + 0xa0], ax
lea eax, [esp + 0xa2]
push eax
mov dword [esp + 0x9c], ecx
call fcn.0048e770
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push esi
mov esi, dword [sym.imp.kernel32.dll_CreateFileW]
call esi
mov dword [esp + 0x5c], eax
cmp eax, 0xffffffff
je 0x4064ff
push 0
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ebx, eax
mov dword [esp + 0x14], ebx
cmp ebx, 0xffffffff
je 0x4064ff
mov edi, dword [sym.imp.kernel32.dll_HeapCreate]
push 0
push 0
push 0
call edi
lea ecx, [ebx + 2]
mov dword [esp + 0x74], eax
mov ebx, dword [sym.imp.kernel32.dll_HeapAlloc]
push ecx
push 8
push eax
call ebx
mov dword [esp + 0x40], eax
test eax, eax
je 0x4064ff
push 0
lea ecx, [esp + 0x90]
mov dword [esp + 0x90], 0
push ecx
push dword [esp + 0x1c]
push eax
push dword [esp + 0x6c]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x4064ff
mov ecx, dword [esp + 0x14]
mov eax, 0
shr ecx, 1
mov dword [esp + 0x14], ecx
je 0x405fc8
mov edx, dword [esp + 0x40]
nop dword [eax]
cmp word [edx + eax*2], 0xd
jne 0x405fbd
xor edi, edi
mov word [edx + eax*2], di
inc eax
cmp eax, ecx
jb 0x405fb0
mov edi, dword [sym.imp.kernel32.dll_HeapCreate]
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push 0x4cbdd0
call esi
mov dword [esp + 0x3c], eax
cmp eax, 0xffffffff
je 0x4064ff
xor eax, eax
mov dword [esp + 0x30], 0
push 0x7fe
push eax
mov word [esp + 0x8a0], ax
lea eax, [esp + 0x8a2]
push eax
call fcn.0048e770
add esp, 0xc
mov dword [esp + 0x44], 0x1312d00
push 0
push 0
push 0
call edi
push 0x1312d00
mov esi, eax
push 8
push esi
mov dword [esp + 0x64], esi
call ebx
mov ebx, eax
mov dword [esp + 0x28], ebx
test ebx, ebx
je 0x4064ff
push ebp
push ebx
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
xorps xmm0, xmm0
push ebp
mov ebp, dword [sym.imp.kernel32.dll_lstrlenW]
movlpd qword [esp + 0x84], xmm0
call ebp
inc eax
xorps xmm0, xmm0
cdq
xor edi, edi
mov dword [esp + 0x6c], eax
mov esi, 1
mov eax, dword [esp + 0x84]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x80]
movlpd qword [esp + 0x78], xmm0
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x54], edx
nop dword [eax]
add ecx, 1
mov dword [esp + 0x80], ecx
adc eax, 0
mov dword [esp + 0x70], eax
lea eax, [ebx + edx*2]
push eax
lea eax, [esp + 0x89c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [esp + 0x898]
push eax
call ebp
cdq
add eax, 1
adc edx, 0
add dword [esp + 0x54], eax
lea eax, [esp + 0x38]
adc dword [esp + 0x64], edx
push eax
push 0x20019
push 0
lea eax, [esp + 0x8a4]
push eax
push dword [esp + 0xa0]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4065a0
push eax
push eax
push eax
lea eax, [esp + 0x28]
push eax
push 0
push 0
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
push 0
push dword [esp + 0x64]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x406596
mov eax, dword [esp + 0x24]
inc dword [esp + 0x1c]
inc eax
push 2
push eax
mov dword [esp + 0x2c], eax
call fcn.0048f633
push 2
push dword [esp + 0x28]
mov ebx, eax
mov dword [esp + 0x3c], ebx
call fcn.0048f633
add esp, 0x10
mov esi, eax
mov dword [esp + 0x18], esi
test ebx, ebx
je 0x4066fb
test esi, esi
je 0x4066fb
mov edi, dword [esp + 0x1c]
add edi, 0x4010
push 2
push edi
mov dword [esp + 0x28], edi
call fcn.0048f633
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4066ef
xor ebp, ebp
nop dword [eax]
nop dword [eax + eax]
cmp dword [0x4c4974], 0
je 0x4065cc
mov eax, dword [esp + 0x1c]
push 0
push 0
push 0
push 0
mov dword [esp + 0x40], eax
lea eax, [esp + 0x40]
push eax
push esi
push ebp
push dword [esp + 0x54]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
mov dword [esp + 0x60], esi
test esi, esi
mov esi, dword [esp + 0x18]
jne 0x406313
cmp word [esi], 0
je 0x406313
push esi
lea eax, [esp + 0x89c]
push eax
push 0x4ad240
push edi
push ebx
call fcn.0040a370
add esp, 0x14
cmp eax, 0xffffffff
je 0x406313
mov esi, dword [esp + 0x34]
mov edi, esi
cmp dword [esp + 0x14], esi
jbe 0x406273
mov eax, dword [esp + 0x40]
lea esi, [eax + edi*2]
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
lea edx, [esi + 2]
nop dword [eax]
mov cx, word [esi]
add esi, 2
test cx, cx
jne 0x406240
sub esi, edx
sar esi, 1
test eax, eax
je 0x406260
add edi, 2
add edi, esi
cmp dword [esp + 0x14], edi
ja 0x406227
jmp 0x406273
lea eax, [edi + 2]
add eax, esi
mov dword [esp + 0x34], eax
cmp dword [esp + 0x14], edi
ja 0x40630b
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push 0x4ada24
push ebx
call esi
test eax, eax
jne 0x40630b
push 0x4ada3c
push ebx
call esi
test eax, eax
jne 0x40630b
push ebx
push dword [esp + 0x6c]
lea eax, [esp + 0xa0]
push 0x4ada50
push 0x400
push eax
call fcn.0040a370
add esp, 0x14
cmp eax, 0xffffffff
je 0x40630b
push 0
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.kernel32.dll_lstrlenW]
mov esi, dword [esp + 0x44]
add eax, eax
mov edi, dword [sym.imp.kernel32.dll_WriteFile]
push eax
lea eax, [esp + 0xa4]
push eax
push esi
call edi
push 0
lea eax, [esp + 0x98]
push eax
push 4
push 0x4ad24c
push esi
call edi
mov edi, dword [esp + 0x20]
inc ebp
mov esi, dword [esp + 0x18]
jmp 0x4061b0
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x60]
inc ebp
cmp eax, 0x103
je 0x406327
test eax, eax
je 0x4061b0
push ebx
call fcn.0048f63e
mov edi, dword [esp + 0x28]
add esp, 4
add edi, 0x4010
mov dword [esp + 0x60], edi
push 2
push edi
call fcn.0048f633
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4065c0
xor ebp, ebp
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x30]
push 0
push 0
push 0
push 0
push eax
push dword [esp + 0x40]
mov dword [esp + 0x48], ecx
push ebp
push dword [esp + 0x54]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
test esi, esi
jne 0x406552
push 0x4ad268
push dword [esp + 0x30]
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x406552
push dword [esp + 0x2c]
lea eax, [esp + 0x89c]
push eax
push 0x4ad280
push edi
push ebx
call fcn.0040a370
add esp, 0x14
cmp eax, 0xffffffff
je 0x406552
mov esi, dword [esp + 0x34]
mov edi, esi
cmp dword [esp + 0x14], esi
jbe 0x406415
nop word [eax + eax]
mov eax, dword [esp + 0x40]
lea esi, [eax + edi*2]
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
lea edx, [esi + 2]
mov cx, word [esi]
add esi, 2
test cx, cx
jne 0x4063e2
sub esi, edx
sar esi, 1
test eax, eax
je 0x406402
add edi, 2
add edi, esi
cmp dword [esp + 0x14], edi
ja 0x4063d0
jmp 0x406415
lea eax, [edi + 2]
add eax, esi
mov dword [esp + 0x34], eax
cmp dword [esp + 0x14], edi
ja 0x406495
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push 0x4ada24
push ebx
call esi
test eax, eax
jne 0x406495
push 0x4ada3c
push ebx
call esi
test eax, eax
jne 0x406495
push ebx
push dword [esp + 0x6c]
lea eax, [esp + 0xa0]
push 0x4ada5c
push 0x400
push eax
call fcn.0040a370
add esp, 0x14
cmp eax, 0xffffffff
je 0x406495
push 0
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.kernel32.dll_lstrlenW]
mov esi, dword [esp + 0x44]
add eax, eax
mov edi, dword [sym.imp.kernel32.dll_WriteFile]
push eax
lea eax, [esp + 0xa4]
push eax
push esi
call edi
push 0
lea eax, [esp + 0x7c]
push eax
push 4
push 0x4ad24c
push esi
call edi
mov esi, dword [sym.imp.kernel32.dll_lstrlenW]
push ebx
call esi
mov edi, dword [esp + 0x6c]
cdq
add eax, edi
adc edx, dword [esp + 0x48]
add eax, 1
adc edx, 0
shld edx, eax, 1
add eax, eax
test edx, edx
jb 0x40651b
ja 0x4064c1
cmp eax, dword [esp + 0x44]
jb 0x40651b
mov eax, dword [esp + 0x44]
add eax, 0x1388000
push eax
push dword [esp + 0x2c]
mov dword [esp + 0x4c], eax
push 8
push dword [esp + 0x64]
call dword [sym.imp.kernel32.dll_HeapReAlloc]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x40651f
push 0x10
push 0x4ad310
push 0x4ad20c
push dword [0x4def88]
call dword [sym.imp.user32.dll_MessageBoxW]
or eax, 0xffffffff
mov ecx, dword [esp + 0x109c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048d815
add esp, 0x1090
ret
mov eax, dword [esp + 0x28]
add dword [esp + 0x4c], 1
lea eax, [eax + edi*2]
push ebx
adc dword [esp + 0x54], 0
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push ebx
call esi
cdq
add eax, 1
adc edx, 0
add edi, eax
mov dword [esp + 0x6c], edi
adc dword [esp + 0x48], edx
inc ebp
mov edi, dword [esp + 0x60]
jmp 0x406355
inc ebp
cmp esi, 0x103
je 0x406563
test esi, esi
je 0x406355
push ebx
call fcn.0048f63e
add esp, 4
push dword [esp + 0x2c]
call fcn.0048f63e
add esp, 4
push dword [esp + 0x18]
call fcn.0048f63e
mov ebx, dword [esp + 0x2c]
add esp, 4
mov ebp, dword [sym.imp.kernel32.dll_lstrlenW]
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x50]
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x70]
cmp ecx, esi
jne 0x4065b7
cmp eax, edi
je 0x406707
mov edx, dword [esp + 0x54]
jmp 0x4060b0
push 0x10
push 0x4ad254
jmp 0x4064ee
push dword [esp + 0x2c]
call fcn.0048f63e
add esp, 4
push esi
call fcn.0048f63e
add esp, 4
push ebx
call fcn.0048f63e
mov eax, dword [esp + 0x40]
add esp, 4
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
push eax
call edi
push dword [esp + 0x58]
mov esi, dword [sym.imp.kernel32.dll_HeapDestroy]
call esi
push dword [esp + 0x5c]
call edi
push dword [esp + 0x74]
call esi
mov edi, dword [sym.imp.user32.dll_GetDlgItem]
push 0
push 0
push 0x130b
push 0x271c
push dword [0x4def88]
call edi
mov ebx, dword [sym.imp.user32.dll_SendMessageW]
push eax
call ebx
test eax, eax
jne 0x406674
cmp dword [0x4deb74], 1
jne 0x406674
push eax
push 0x2980
push dword [0x4def88]
call edi
mov esi, dword [sym.imp.user32.dll_ShowWindow]
push eax
call esi
mov ecx, 1
call fcn.00402c50
push 5
push 0x272e
push dword [0x4def88]
call edi
push eax
call esi
mov ecx, 0x4ccdd0
call fcn.004028a0
push 0x4ccdd0
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
mov edx, 0x4ada1c
mov ecx, 0x4ad090
call fcn.004773a0
push eax
push 0x2728
push dword [0x4def88]
call edi
mov esi, dword [sym.imp.user32.dll_SetWindowTextW]
push eax
call esi
push 0x4ad29c
push 0x2729
push dword [0x4def88]
call edi
push eax
call esi
push 0
push 0
push 0x402
push 0x272b
push dword [0x4def88]
call edi
push eax
call ebx
push 1
mov dword [0x4c4974], 2
call dword [sym.imp.kernel32.dll_ExitThread]
push 0x10
push 0x4ad22c
jmp 0x4064ee
push 0x10
push 0x4ada0c
jmp 0x4064ee
mov eax, dword [esp + 0x3c]
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
push eax
call edi
push dword [esp + 0x58]
mov esi, dword [sym.imp.kernel32.dll_HeapDestroy]
call esi
push dword [esp + 0x5c]
call edi
push dword [esp + 0x74]
call esi
mov eax, 1
jmp 0x406502