Function at 0x42565e
Capabilities:
Get session user name
Resolve function by parsing pe exports
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4461ad
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x46a034]
xor eax, esp
mov dword [esp + 0x2d0], eax
push ebx
push esi
push edi
mov eax, dword [0x46a034]
xor eax, esp
push eax
lea eax, [esp + 0x2e8]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
lea ecx, [esp + 0x34]
push ecx
mov ecx, edi
call dword [eax + 0xe0]
xor ebx, ebx
mov dword [esp + 0x2f0], ebx
cmp dword [eax + 0x14], 8
jb 0x4256c0
mov eax, dword [eax]
xor edx, edx
cmp byte [edi + 0x4d], dl
push ebx
sete dl
push ebx
push eax
lea ecx, [esp + 0x24]
add edx, 0x80000001
call fcn.00434178
add esp, 0xc
push ebx
xor ebx, ebx
inc ebx
push ebx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2f8], 2
call fcn.0040253d
mov eax, dword [edi]
lea ecx, [esp + 0x94]
push ecx
mov ecx, edi
call dword [eax + 0xdc]
mov esi, eax
mov byte [esp + 0x2f0], 3
mov edx, dword [edi]
lea eax, [esp + 0xc4]
push eax
mov ecx, edi
call dword [edx + 0xa0]
mov ecx, eax
mov byte [esp + 0x2f0], 4
cmp dword [esi + 0x14], 8
jb 0x425733
mov esi, dword [esi]
cmp dword [ecx + 0x14], 8
jb 0x42573b
mov ecx, dword [ecx]
cmp byte [edi + 0x4d], 0
mov edx, str.__alluser
mov eax, 0x44b168
cmove eax, edx
push eax
push esi
push ecx
lea eax, [esp + 0x70]
push str.__s_s___uninstall_s
push eax
call fcn.0040ffdb
add esp, 0x14
xor esi, esi
push esi
push ebx
lea ecx, [esp + 0xcc]
call fcn.0040253d
push esi
push ebx
lea ecx, [esp + 0x9c]
mov byte [esp + 0x2f8], 7
call fcn.0040253d
cmp dword [esp + 0x78], 8
lea eax, [esp + 0x64]
cmovae eax, dword [esp + 0x64]
push 2
push eax
push str.UninstallString
lea ecx, [esp + 0x24]
call fcn.0040eb01
mov edx, str.Failed_to_set_UninstallString_key
mov ecx, eax
call fcn.00433fbe
push ebx
push 0x45236c
push str.Publisher
lea ecx, [esp + 0x24]
call fcn.0040eb01
mov edx, str.Failed_to_set_Publisher_key
mov ecx, eax
call fcn.00433fbe
push ebx
push str.http:__www.economy_simulator.org
push str.URLInfoAbout
lea ecx, [esp + 0x24]
call fcn.0040eb01
mov edx, str.Failed_to_set_URLInfoAbout_key
mov ecx, eax
call fcn.00433fbe
lea edx, [edi + 0xd4]
lea ecx, [esp + 0x34]
call fcn.0040fc91
mov byte [esp + 0x2f0], 8
cmp dword [eax + 0x14], 8
jb 0x425811
mov eax, dword [eax]
push ebx
push eax
push str.Comments
lea ecx, [esp + 0x24]
call fcn.0040eb01
mov edx, str.Failed_to_set_Comments_key
mov ecx, eax
call fcn.00433fbe
push esi
push ebx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2f8], 7
call fcn.0040253d
mov eax, dword [edi]
lea ecx, [esp + 0x34]
push ecx
mov ecx, edi
call dword [eax + 0xa0]
mov byte [esp + 0x2f0], 9
cmp dword [eax + 0x14], 8
jb 0x42585f
mov eax, dword [eax]
push ebx
push eax
push str.InstallLocation
lea ecx, [esp + 0x24]
call fcn.0040eb01
mov edx, str.Failed_to_set_InstallLocation_key
mov ecx, eax
call fcn.00433fbe
push esi
push ebx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2f8], 7
call fcn.0040253d
push 4
lea eax, [esp + 0x18]
push eax
push 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str.NoModify
push dword [esp + 0x2c]
mov dword [esp + 0x2c], ebx
call esi
mov edx, str.Failed_to_set_NoModify_key
mov ecx, eax
call fcn.00433fbe
push 4
lea eax, [esp + 0x18]
push eax
push 4
push 0
push str.NoRepair
push dword [esp + 0x2c]
mov dword [esp + 0x2c], ebx
call esi
mov edx, str.Failed_to_set_NoRepair_key
mov ecx, eax
call fcn.00433fbe
mov eax, dword [edi]
lea ecx, [esp + 0xac]
push ecx
mov ecx, edi
call dword [eax + 0xdc]
mov esi, eax
mov byte [esp + 0x2f0], 0xa
mov edx, dword [edi]
lea eax, [esp + 0x34]
push eax
mov ecx, edi
call dword [edx + 0xa0]
mov byte [esp + 0x2f0], 0xb
cmp dword [esi + 0x14], 8
jb 0x42591a
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x425922
mov eax, dword [eax]
push esi
push eax
lea eax, [esp + 0x84]
push str._s_s_0
push eax
call fcn.0040ffdb
add esp, 0x10
xor esi, esi
push esi
push ebx
lea ecx, [esp + 0x3c]
call fcn.0040253d
push esi
push ebx
lea ecx, [esp + 0xb4]
mov byte [esp + 0x2f8], 0xe
call fcn.0040253d
cmp dword [esp + 0x90], 8
lea eax, [esp + 0x7c]
cmovae eax, dword [esp + 0x7c]
push ebx
push eax
push str.DisplayIcon
lea ecx, [esp + 0x24]
call fcn.0040eb01
mov edx, str.Failed_to_set_IconPath_key
mov ecx, eax
call fcn.00433fbe
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0x2a]
push eax
movzx eax, word [esp + 0x2a]
push eax
movzx eax, word [esp + 0x2c]
push eax
lea eax, [esp + 0xa0]
push str._04d_02d_02d
push eax
call fcn.0040ffdb
add esp, 0x14
mov byte [esp + 0x2f0], 0xf
cmp dword [eax + 0x14], 8
jb 0x4259cb
mov eax, dword [eax]
push ebx
push eax
push str.InstallDate
lea ecx, [esp + 0x24]
call fcn.0040eb01
mov edx, str.Failed_to_set_InstallDate_key
mov ecx, eax
call fcn.00433fbe
push esi
push ebx
lea ecx, [esp + 0x9c]
mov byte [esp + 0x2f8], 0xe
call fcn.0040253d
push str.Economy_Simulator_Player
lea ecx, [esp + 0x50]
call fcn.0040be45
mov byte [esp + 0x2f0], 0x10
cmp byte [edi + 0x4d], 0
je 0x425a75
xor eax, eax
mov word [esp + 0xdc], ax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0xe0]
push eax
mov dword [esp + 0x1c], 0x100
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov esi, str._for
mov ecx, esi
call fcn.00405e95
push eax
push esi
lea ecx, [esp + 0x54]
call fcn.0040dad2
lea ecx, [esp + 0xdc]
call fcn.00405e95
push eax
lea eax, [esp + 0xe0]
push eax
lea ecx, [esp + 0x54]
call fcn.0040dad2
xor esi, esi
cmp dword [esp + 0x60], 8
lea eax, [esp + 0x4c]
cmovae eax, dword [esp + 0x4c]
push ebx
push eax
push str.DisplayName
lea ecx, [esp + 0x24]
call fcn.0040eb01
mov edx, str.Failed_to_set_DisplayName_key
mov ecx, eax
call fcn.00433fbe
push esi
push ebx
lea ecx, [esp + 0x54]
call fcn.0040253d
push esi
push ebx
lea ecx, [esp + 0x84]
call fcn.0040253d
push esi
push ebx
lea ecx, [esp + 0x6c]
call fcn.0040253d
cmp dword [esp + 0x18], 0
je 0x425ad4
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x2e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2d0]
xor ecx, esp
call fcn.0043dbf0
mov esp, ebp
pop ebp
ret 4