Function at 0x40b750
Capabilities:
Delete registry value
Get common file path
Query or enumerate registry value
Read file on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1ec
mov eax, dword [0x452040]
xor eax, esp
mov dword [esp + 0x1e8], eax
mov al, byte [0x458000]
push ebx
push esi
push edi
mov byte [esp + 0x10], al
mov ebx, ecx
push 0x185
lea eax, [esp + 0x6c]
mov dword [esp + 0x28], ebx
push eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x68]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x40b7b1
mov ax, word [0x448c04]
mov ecx, ebx
mov word [edi], ax
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b7d0
sub ecx, edx
lea eax, [ecx - 1]
test eax, eax
jle 0x40b7f0
lea ecx, [ebx - 1]
add ecx, eax
cmp byte [ecx], 0x5c
je 0x40b7f0
dec eax
dec ecx
test eax, eax
jg 0x40b7e5
lea edx, [eax + ebx]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x40b7f5
lea edi, [esp + 0x68]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40b803
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
call fcn.00427da4
add esp, 4
lea eax, [esp + 0x68]
push eax
call fcn.00427da4
add esp, 4
lea eax, [esp + 0x14]
lea edx, [esp + 0x18]
mov ecx, ebx
push eax
call fcn.0040b610
add esp, 4
test eax, eax
je 0x40b889
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
test esi, esi
jne 0x40b856
test edi, edi
je 0x40b889
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x24]
lea ecx, [esp + 0x6c]
call fcn.0040b610
add esp, 4
test eax, eax
je 0x40ba75
cmp dword [esp + 0x20], esi
ja 0x40ba75
jne 0x40b889
cmp dword [esp + 0x1c], edi
ja 0x40ba75
cmp byte [esp + 0x10], 0
jne 0x40b926
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], 4
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionSharedDLLs
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b926
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
push 0
lea eax, [esp + 0x78]
push eax
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40b8e4
xor eax, eax
jmp 0x40b8e8
mov eax, dword [esp + 0x18]
add eax, 1
mov dword [esp + 0x18], eax
jne 0x40b902
lea eax, [esp + 0x68]
push eax
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x40b91c
push 4
lea eax, [esp + 0x1c]
push eax
push 4
push 0
lea eax, [esp + 0x78]
push eax
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movq xmm0, qword [str.shared32]
lea edx, [esp + 0x68]
mov ax, word [0x44e200]
mov esi, edx
movq qword [0x4592b0], xmm0
mov word [0x4592b8], ax
mov al, byte [edx]
inc edx
test al, al
jne 0x40b948
mov edi, 0x4592b0
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40b957
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x4592b0
call fcn.00402880
add esp, 4
push 0x448bc8
push ebx
call fcn.00422887
mov edi, eax
add esp, 8
test edi, edi
jne 0x40b9b1
push ebx
push str.DuplicateSysFile32:_Couldnt_open_source__s
call fcn.0040a700
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1e8]
xor ecx, esp
call fcn.0041f127
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x68]
push 0x448924
push eax
call fcn.00422887
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40b9f6
lea eax, [esp + 0x68]
push eax
push str.DuplicateSysFile32:_Couldnt_create_file__s
call fcn.0040a700
push edi
call fcn.00422ada
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1e8]
xor ecx, esp
call fcn.0041f127
mov esp, ebp
pop ebp
ret
push edi
push 0x200
push 1
push 0x4592b0
call fcn.0042963d
push ebx
mov esi, eax
push esi
push 1
push 0x4592b0
call fcn.00427931
add esp, 0x20
cmp esi, 0x200
je 0x40b9f6
push edi
call fcn.00422ada
add esp, 4
push ebx
call fcn.00422ada
add esp, 4
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x28]
call fcn.00426b4a
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x74]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x68]
push eax
mov dword [esp + 0x44], ecx
call fcn.00429eda
add esp, 0x10
mov ecx, dword [esp + 0x1f4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041f127
mov esp, ebp
pop ebp
ret