Function at 0x42b4a0
Capabilities:
Get session user name
Query or enumerate registry value
Read .ini file
Set registry value

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4d422a
push eax
mov eax, 0x121c
mov dword fs:[0], esp
call fcn.004377e0
push ebx
push ebp
push esi
lea eax, [esp + 0x20]
push edi
push eax
push str..wri
mov dword [esp + 0x48], ecx
push SysReAllocString
mov dword [esp + 0x58], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x42b558
lea ecx, [esp + 0x24]
push ecx
push str..wri
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x42bc55
lea edx, [esp + 0x20]
lea eax, [esp + 0x1d4]
push edx
push eax
mov dword [esp + 0x28], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x42b551
lea edi, [esp + 0x1d4]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x1d8]
push ecx
push 1
push eax
push 0x515d3c
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x24]
push eax
jmp 0x42b57e
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x2d8]
push ecx
push edx
push 0
push 0
push 0x515d3c
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
push str.win.ini
lea edx, [esp + 0xa30]
push 0x400
push edx
push str.noname
push str.Username
push str.win32
call esi
push str.win.ini
lea eax, [esp + 0xe30]
push 0x400
push eax
push 0x5101d0
push str.regcode
push str.win32
call esi
lea ecx, [esp + 0xe2c]
push ecx
call fcn.004382ce
add esp, 4
lea ecx, [esp + 0x3dc]
mov ebp, eax
mov ebx, edx
call fcn.00429760
lea edx, [esp + 0xa2c]
lea ecx, [esp + 0x3dc]
push edx
mov dword [esp + 0x1238], 0
call fcn.00429b50
mov esi, edx
mov edi, eax
cmp esi, 0x17
jl 0x42b640
jg 0x42b622
cmp edi, 0x4876e800
jb 0x42b640
push 0
push 2
push esi
push edi
call fcn.00438bf0
mov esi, edx
mov edi, eax
cmp esi, 0x17
jg 0x42b622
jl 0x42b640
cmp edi, 0x4876e800
jae 0x42b622
lea eax, [esp + 0x2d8]
lea ecx, [esp + 0x3dc]
push eax
call fcn.00429b50
cmp edx, 0x17
jl 0x42b67b
jg 0x42b662
cmp eax, 0x4876e800
jbe 0x42b67b
push 0
push 2
push edx
push eax
call fcn.00438bf0
cmp edx, 0x17
jg 0x42b662
jl 0x42b67b
cmp eax, 0x4876e800
ja 0x42b662
mov ecx, dword [0x510634]
mov dword [esp + 0x1c], ecx
push edx
push eax
lea edx, [esp + 0x24]
push str._6I64u
push edx
mov byte [esp + 0x1244], 1
call fcn.004a17cf
add esp, 0x10
lea ecx, [esp + 0x3dc]
push esi
push edi
call fcn.004297c0
cmp ebp, eax
jne 0x42b6bb
cmp ebx, edx
je 0x42bc59
or eax, edx
je 0x42bc59
mov esi, dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
push str.win.ini
push str.noname
push str.Username
push str.win32
call esi
push str.win.ini
push 0x5101d0
push str.regcode
push str.win32
call esi
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
call fcn.004a8ede
lea ecx, [esp + 0x30]
mov byte [esp + 0x1234], 2
push ecx
call dword [sym.imp.KERNEL32.DLL_GetSystemTime]
or ebx, 0xffffffff
lea edx, [esp + 0x30]
push ebx
push edx
lea ecx, [esp + 0x58]
call fcn.004a1fcc
push str..zxtb_
lea ecx, [esp + 0x18]
xor ebp, ebp
xor edi, edi
mov dword [esp + 0x48], 0x104
call fcn.004a91d7
lea eax, [esp + 0x2d8]
lea ecx, [esp + 0x14]
push eax
mov byte [esp + 0x1238], 3
call fcn.004a9545
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x28]
push ecx
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x42b885
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x42bc0f
mov edx, dword [esp + 0x1240]
lea eax, [esp + 0x20]
push 6
push eax
lea ecx, [esp + 0x20]
mov dword [edx], 2
call fcn.004a1384
mov eax, dword [eax]
push eax
call fcn.004382c3
mov ecx, dword [esp + 0x34]
add esp, 4
and ecx, 0xffff
inc ecx
imul eax, ecx
cdq
and edx, 0xf
lea ecx, [esp + 0x20]
add eax, edx
mov esi, eax
sar esi, 4
call fcn.004a9169
mov eax, dword [esp + 0x36]
mov ecx, dword [esp + 0x32]
and eax, 0xffff
and ecx, 0xffff
imul ecx, ecx, 0x12e6f11
lea edx, [eax*8]
sub edx, eax
lea edx, [eax + edx*8]
shl edx, 4
sub edx, eax
mov eax, dword [0x510634]
mov dword [esp + 0x10], eax
push edx
push ecx
push esi
lea ecx, [esp + 0x1c]
push str._dE_dF_d
push ecx
mov byte [esp + 0x1248], 4
call fcn.004a17cf
mov edx, dword [esp + 0x24]
add esp, 0x14
lea ecx, [esp + 0x10]
mov eax, dword [edx - 8]
push eax
push eax
call fcn.004a9599
push eax
mov eax, dword [esp + 0x30]
push 1
push ebp
push 0x515d3c
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebx
lea ecx, [esp + 0x14]
call fcn.004a95e8
mov ecx, dword [esp + 0x28]
mov edi, 0x1e
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov byte [esp + 0x1234], 3
call fcn.004a9169
jmp 0x42baaf
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x44]
lea eax, [esp + 0x1d4]
push edx
push eax
push ebp
push ebp
push 0x515d3c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x1d4]
lea ecx, [esp + 0x10]
push edx
call fcn.004a91d7
push ebp
push 0x45
lea ecx, [esp + 0x18]
mov byte [esp + 0x123c], 5
mov dword [esp + 0x28], ebp
call fcn.004a963e
mov esi, eax
cmp esi, ebx
je 0x42b948
lea eax, [esp + 0x2c]
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.004a1384
mov ebp, dword [eax]
lea ecx, [esp + 0x48]
push 6
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x123c], 6
call fcn.004a1384
mov ebx, dword [eax]
push ebp
call fcn.00438238
mov ebp, eax
push ebx
shl ebp, 4
call fcn.004382c3
mov ecx, eax
mov eax, ebp
cdq
idiv ecx
add esp, 8
lea ecx, [esp + 0x48]
mov ebp, eax
call fcn.004a9169
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1234], 5
call fcn.004a9169
inc esi
lea ecx, [esp + 0x10]
push esi
push 0
call fcn.004a1006
mov ebx, dword [esp + 0x40]
jmp 0x42b953
mov ebx, dword [esp + 0x40]
mov ecx, ebx
call fcn.0042bcb0
push 0
push 0x46
lea ecx, [esp + 0x18]
call fcn.004a963e
mov esi, eax
cmp esi, 0xffffffff
je 0x42b9b0
lea edx, [esp + 0x2c]
push esi
push edx
lea ecx, [esp + 0x18]
call fcn.004a1384
mov eax, dword [eax]
push eax
call fcn.00438238
mov ecx, eax
mov eax, 0x6c59002f
imul ecx
sar edx, 0x17
mov eax, edx
add esp, 4
shr eax, 0x1f
add edx, eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], edx
call fcn.004a9169
inc esi
lea ecx, [esp + 0x10]
push esi
push 0
call fcn.004a1006
jmp 0x42b9b7
mov ecx, ebx
call fcn.0042bcb0
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00438238
mov ecx, eax
mov eax, 0x8fe086e3
imul ecx
add edx, ecx
add esp, 4
sar edx, 9
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x30]
and eax, 0xffff
mov esi, edx
cmp eax, ebp
je 0x42ba28
sub eax, ebp
cmp eax, 1
je 0x42b9f6
mov ecx, ebx
call fcn.0042bcb0
cmp word [esp + 0x32], 1
jne 0x42ba89
mov eax, dword [esp + 0x36]
mov ecx, eax
and ecx, 0xffff
cmp ecx, esi
jbe 0x42ba1d
mov ecx, ebx
call fcn.0042bcb0
mov eax, dword [esp + 0x36]
and eax, 0xffff
sub esi, eax
mov edi, esi
jmp 0x42ba90
mov eax, dword [esp + 0x32]
mov edx, dword [esp + 0x20]
and eax, 0xffff
sub eax, edx
cmp eax, 1
ja 0x42ba89
mov eax, dword [esp + 0x36]
jne 0x42ba64
mov edx, eax
and edx, 0xffff
cmp edx, esi
jbe 0x42ba59
mov ecx, ebx
call fcn.0042bcb0
mov eax, dword [esp + 0x36]
and eax, 0xffff
sub esi, eax
mov edi, esi
jmp 0x42ba90
mov ecx, eax
and ecx, 0xffff
cmp ecx, esi
jae 0x42ba7b
mov ecx, ebx
call fcn.0042bcb0
mov eax, dword [esp + 0x36]
and eax, 0xffff
sub esi, eax
add esi, 0x1e
mov edi, esi
jmp 0x42ba90
mov ecx, ebx
call fcn.0042bcb0
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov byte [esp + 0x1234], 3
call fcn.004a9169
or ebx, 0xffffffff
push 0
lea ecx, [esp + 0x58]
call fcn.00428a70
test edi, edi
mov byte [esp + 0x1234], 7
jge 0x42baca
xor edi, edi
jmp 0x42bacc
jg 0x42badf
push 0x510174
lea ecx, [esp + 0x1d4]
call fcn.004a92f2
jmp 0x42baf5
push edi
lea eax, [esp + 0x1d4]
push 0x510140
push eax
call fcn.004a17cf
add esp, 0xc
lea ecx, [esp + 0x54]
mov dword [esp + 0xb4], edi
call fcn.004aa2ae
cmp eax, 0x3639f
jne 0x42bb4b
cmp dword [esp + 0xb0], 0x3639f
je 0x42bb20
mov word [0x515d20], bx
mov ecx, dword [esp + 0x123c]
mov dword [ecx], 1
lea ecx, [esp + 0x1d0]
mov byte [esp + 0x1234], 0xd
call fcn.004a9169
mov byte [esp + 0x1234], 0xc
jmp 0x42bb82
cmp eax, 0x1b276
jne 0x42bbc6
cmp dword [esp + 0xb0], 0x1b276
je 0x42bb66
mov word [0x515d20], bx
lea ecx, [esp + 0x1d0]
mov byte [esp + 0x1234], 9
call fcn.004a9169
mov byte [esp + 0x1234], 8
lea ecx, [esp + 0xb8]
call fcn.004654a0
lea ecx, [esp + 0x54]
mov byte [esp + 0x1234], 3
call fcn.004a9eab
lea ecx, [esp + 0x14]
mov byte [esp + 0x1234], 2
call fcn.004a9169
lea ecx, [esp + 0x18]
mov byte [esp + 0x1234], 1
call fcn.004a9169
jmp 0x42bc65
cmp edi, 1
jge 0x42bb2d
mov word [0x515d20], bx
lea ecx, [esp + 0x1d0]
mov byte [esp + 0x1234], 0xb
call fcn.004a9169
lea ecx, [esp + 0xb8]
mov byte [esp + 0x1234], 0xa
call fcn.004654a0
lea ecx, [esp + 0x54]
mov byte [esp + 0x1234], 3
call fcn.004a9eab
lea ecx, [esp + 0x14]
mov byte [esp + 0x1234], 2
call fcn.004a9169
lea ecx, [esp + 0x18]
mov byte [esp + 0x1234], 1
call fcn.004a9169
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1234], 0
call fcn.004a9169
lea ecx, [esp + 0x3dc]
mov dword [esp + 0x1234], ebx
call fcn.004297b0
xor eax, eax
jmp 0x42bc8e
mov word [0x515d20], 1
or ebx, 0xffffffff
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1234], 0
call fcn.004a9169
lea ecx, [esp + 0x3dc]
mov dword [esp + 0x1234], ebx
call fcn.004297b0
mov eax, 1
mov ecx, dword [esp + 0x122c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1228
ret 8