Function at 0x402bb9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x518
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x114], 0
movsx eax, byte [ebp + 0x14]
cmp eax, 0x54
jne 0x402bf5
mov dword [ebp - 0x10c], 1
jmp 0x402c53
movsx ecx, byte [ebp + 0x14]
cmp ecx, 0x45
jne 0x402c0a
mov dword [ebp - 0x10c], 2
jmp 0x402c53
movsx edx, byte [ebp + 0x14]
cmp edx, 0x4d
jne 0x402c1f
mov dword [ebp - 0x10c], 7
jmp 0x402c53
movsx eax, byte [ebp + 0x14]
cmp eax, 0x42
jne 0x402c34
mov dword [ebp - 0x10c], 3
jmp 0x402c53
movsx ecx, byte [ebp + 0x14]
cmp ecx, 0x44
jne 0x402c49
mov dword [ebp - 0x10c], 4
jmp 0x402c53
mov dword [ebp - 0x10c], 1
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0x51a308
mov ecx, dword [ebp + 0x10]
push ecx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x402c8f
push 0x5b8564
lea edx, [ebp - 0x104]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x118]
push ecx
push 0
push 0xf013f
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
movsx ecx, byte [ebp + 0x14]
cmp ecx, 0x44
jne 0x402d1a
mov edx, dword [ebp + 0x18]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebp - 0x114], eax
push 4
lea eax, [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x10c]
push ecx
push 0
lea edx, [ebp - 0x104]
push edx
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x402d15
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x402ed1
jmp 0x402ec2
movsx edx, byte [ebp + 0x14]
cmp edx, 0x4d
jne 0x402e11
mov eax, dword [ebp + 0x18]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 0x110], eax
mov dword [ebp - 4], 0
jmp 0x402d4b
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x400
jge 0x402d61
mov edx, dword [ebp - 4]
mov byte [ebp + edx - 0x518], 0
jmp 0x402d42
mov dword [ebp - 4], 0
jmp 0x402d73
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x110]
jge 0x402dad
mov edx, dword [ebp + 0x18]
add edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0xa
jne 0x402d99
mov ecx, dword [ebp - 4]
mov byte [ebp + ecx - 0x518], 0
jmp 0x402dab
mov edx, dword [ebp + 0x18]
add edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov cl, byte [edx]
mov byte [ebp + eax - 0x518], cl
jmp 0x402d6a
mov edx, dword [ebp - 4]
mov byte [ebp + edx - 0x518], 0
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x517], 0
mov ecx, dword [ebp - 0x110]
add ecx, 2
push ecx
lea edx, [ebp - 0x518]
push edx
mov eax, dword [ebp - 0x10c]
push eax
push 0
lea ecx, [ebp - 0x104]
push ecx
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x402e0c
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x402ed1
jmp 0x402ec2
mov ecx, dword [ebp + 0x18]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 0x110], eax
mov dword [ebp - 4], 0
jmp 0x402e35
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x400
jge 0x402e4b
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x518], 0
jmp 0x402e2c
mov dword [ebp - 4], 0
jmp 0x402e5d
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x110]
jge 0x402e7c
mov eax, dword [ebp + 0x18]
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov dl, byte [eax]
mov byte [ebp + ecx - 0x518], dl
jmp 0x402e54
mov eax, dword [ebp - 0x110]
add eax, 1
push eax
lea ecx, [ebp - 0x518]
push ecx
mov edx, dword [ebp - 0x10c]
push edx
push 0
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x402ec2
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x402ed1
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret