Function at 0x10004d30
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006656f
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x1008bb60]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x430], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0x200
mov byte [ebp - 0x224], 0
push 0x1ff
push 0
lea ecx, [ebp - 0x223]
push ecx
call fcn.10041d70
add esp, 0xc
mov byte [ebp - 0x424], 0
push 0x1ff
push 0
lea edx, [ebp - 0x423]
push edx
call fcn.10041d70
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.100016b0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0
push 0
lea ecx, [ebp + 0xc]
call fcn.10001730
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x14]
push eax
push 0
push 0
lea ecx, [ebp + 0xc]
call fcn.10001730
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10004f60
cmp dword [ebp - 0x14], 1
je 0x10004e1e
cmp dword [ebp - 0x14], 2
jne 0x10004e4f
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x42c]
call fcn.10005bf0
mov dword [ebp - 0x434], eax
mov ecx, dword [ebp - 0x434]
call fcn.10026490
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x42c]
call fcn.100016d0
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0x18]
je 0x10004eed
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0
lea ecx, [ebp + 0xc]
call fcn.10001730
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0
mov ecx, dword [ebp - 0x430]
add ecx, 8
call fcn.10001730
push eax
push 0x1006bc80
push 0x1006bc84
push 0x1006bc90
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [ebp - 0x428]
call fcn.100016b0
mov byte [ebp - 4], 2
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 0x18]
push eax
push str._Size:dwSourceLength_d__dwLength_d
lea ecx, [ebp - 0x428]
push ecx
call fcn.100030c0
add esp, 0x10
mov edx, dword [ebp - 0x430]
mov dword [edx + 0xc], 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x428]
call fcn.100016d0
jmp 0x10004f5e
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x224]
push edx
call fcn.10042344
add esp, 0xc
test eax, eax
je 0x10004f5e
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
push 0
lea ecx, [ebp + 0xc]
call fcn.10001730
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0
mov ecx, dword [ebp - 0x430]
add ecx, 8
call fcn.10001730
push eax
push 0x1006bcc0
push str.FixStatu
push 0x1006bcd0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 0x430]
mov dword [ecx + 0xc], 6
jmp 0x10004f90
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
push 0
lea ecx, [ebp + 0xc]
call fcn.10001730
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x430]
mov dword [eax + 0xc], 5
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.100016d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.100016d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.10041acb
mov esp, ebp
pop ebp
ret 0x14