Function at 0x424f8d
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 0x444eed
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x467034]
xor eax, esp
mov dword [esp + 0x2d0], eax
push ebx
push esi
push edi
mov eax, dword [0x467034]
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 0x424fef
mov eax, dword [eax]
xor edx, edx
cmp byte [edi + 0x4d], dl
push ecx
sete dl
push ebx
push eax
lea ecx, [esp + 0x24]
add edx, 0x80000001
call fcn.00432fc2
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 0x425062
mov esi, dword [esi]
cmp dword [ecx + 0x14], 8
jb 0x42506a
mov ecx, dword [ecx]
cmp byte [edi + 0x4d], 0
mov edx, str.__alluser
mov eax, 0x449158
cmove eax, edx
push eax
push esi
push ecx
lea eax, [esp + 0x70]
push str.__s_s___uninstall_s
push eax
call fcn.0040f911
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.0040e437
mov edx, str.Failed_to_set_UninstallString_key
mov ecx, eax
call fcn.00432e08
push ebx
push str.Economy_Simulator_Corporation
push str.Publisher
lea ecx, [esp + 0x24]
call fcn.0040e437
mov edx, str.Failed_to_set_Publisher_key
mov ecx, eax
call fcn.00432e08
push ebx
push str.http:__economysimulator.com
push str.URLInfoAbout
lea ecx, [esp + 0x24]
call fcn.0040e437
mov edx, str.Failed_to_set_URLInfoAbout_key
mov ecx, eax
call fcn.00432e08
lea edx, [edi + 0xd4]
lea ecx, [esp + 0x34]
call fcn.0040f5c7
mov byte [esp + 0x2f0], 8
cmp dword [eax + 0x14], 8
jb 0x425140
mov eax, dword [eax]
push ebx
push eax
push str.Comments
lea ecx, [esp + 0x24]
call fcn.0040e437
mov edx, str.Failed_to_set_Comments_key
mov ecx, eax
call fcn.00432e08
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 0x42518e
mov eax, dword [eax]
push ebx
push eax
push str.InstallLocation
lea ecx, [esp + 0x24]
call fcn.0040e437
mov edx, str.Failed_to_set_InstallLocation_key
mov ecx, eax
call fcn.00432e08
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.00432e08
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.00432e08
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 0x425249
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x425251
mov eax, dword [eax]
push esi
push eax
lea eax, [esp + 0x84]
push str._s_s_0
push eax
call fcn.0040f911
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.0040e437
mov edx, str.Failed_to_set_IconPath_key
mov ecx, eax
call fcn.00432e08
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.0040f911
add esp, 0x14
mov byte [esp + 0x2f0], 0xf
cmp dword [eax + 0x14], 8
jb 0x4252fa
mov eax, dword [eax]
push ebx
push eax
push str.InstallDate
lea ecx, [esp + 0x24]
call fcn.0040e437
mov edx, str.Failed_to_set_InstallDate_key
mov ecx, eax
call fcn.00432e08
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.0040b77b
mov byte [esp + 0x2f0], 0x10
cmp byte [edi + 0x4d], 0
je 0x4253a4
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.0040d408
lea ecx, [esp + 0xdc]
call fcn.00405e95
push eax
lea eax, [esp + 0xe0]
push eax
lea ecx, [esp + 0x54]
call fcn.0040d408
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.0040e437
mov edx, str.Failed_to_set_DisplayName_key
mov ecx, eax
call fcn.00432e08
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 0x425403
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.0043ca20
mov esp, ebp
pop ebp
ret 4