Function at 0x40fff0
Capabilities:
Hide graphical window
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
push ebx
push esi
xor eax, eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 0x40]
push 1
push eax
lea esi, [ebp - 0x30]
mov dword [ebp - 0x24], 0x8000
call fcn.0040eeb0
xor esi, esi
add esp, 8
mov ebx, eax
cmp dword [ebp - 0x2c], esi
jle 0x410059
cmp esi, ebx
jne 0x410039
or dword [ebp - 8], 0x4000
mov edi, dword [ebp - 0x30]
mov eax, dword [edi + esi*4]
lea ecx, [ebp - 8]
push ecx
call fcn.00404180
test al, al
je 0x41016b
inc esi
cmp esi, dword [ebp - 0x2c]
jl 0x41002e
mov edi, dword [ebp + 8]
test byte [0x425304], 2
je 0x410235
mov eax, dword [str.Settings]
push eax
lea edi, [ebp - 0xc]
call fcn.004184d0
mov eax, dword [eax]
xor edi, edi
push edi
lea ecx, [ebp - 8]
push ecx
push edi
push 0xf003f
push edi
push edi
push edi
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x410099
mov dword [ebp - 8], edi
mov edx, dword [ebp - 0xc]
mov eax, dword [0x425630]
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::constructor_void_]
lea ecx, [ebp - 0x10]
call esi
lea ecx, [ebp - 0x1c]
call esi
lea ecx, [ebp - 0x18]
call esi
mov dword [ebp - 0x20], edi
cmp dword [ebp - 0x2c], edi
jle 0x4101ee
mov esi, dword [ebp - 0x30]
mov ecx, dword [esi + edi*4]
cmp dword [ecx + 0x18], 0
jne 0x4101e1
lea edx, [ecx + 0x14]
push edx
lea ecx, [ebp - 0xc]
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::constructor_class_C2bString_const__]
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x18]
call dword [0x4253b8]
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.Ngs3.dll_public:_class_C2bString_const____thiscall_C2bString::operator_class_C2bString_const__]
push 0x4202e4
lea ecx, [ebp - 0x10]
call dword [0x4253c8]
lea ecx, [ebp - 0xc]
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::destructor_void_]
mov eax, dword [esi + edi*4]
test byte [eax + 0x10], 0x80
je 0x4101b5
mov ebx, dword [0x425340]
xor esi, esi
mov dword [ebp - 0x14], 0
test ebx, ebx
jle 0x4101c9
mov edi, dword [0x42533c]
mov ecx, dword [ebp - 0x18]
mov eax, dword [edi]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41018a
test dx, dx
je 0x410167
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41018a
add eax, 4
add ecx, 4
test dx, dx
jne 0x410145
xor eax, eax
jmp 0x41018f
test edi, edi
je 0x41017f
mov edx, dword [0x425630]
push edi
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4101a0
inc esi
add edi, 0xc
cmp esi, ebx
jl 0x410140
mov edi, dword [ebp - 0x20]
jmp 0x4101c9
mov edx, dword [0x42533c]
mov edi, dword [ebp - 0x20]
lea ecx, [esi + esi*2]
mov eax, dword [edx + ecx*4 + 8]
mov dword [ebp - 0x14], eax
jmp 0x4101bb
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0xfdea
mov eax, 0xfde9
je 0x4101cc
mov eax, dword [ebp - 0x14]
push eax
push 0x420910
lea edx, [ebp - 0x1c]
push 0x10
push edx
call dword [sym.imp.Ngs3.dll_public:_class_C2bString_const____cdecl_C2bString::FormatAfter_int__wchar_t_const__]
add esp, 0x10
inc edi
mov dword [ebp - 0x20], edi
cmp edi, dword [ebp - 0x2c]
jl 0x4100cb
push str.DocList
lea eax, [ebp - 8]
push eax
lea edi, [ebp - 0x10]
call fcn.004103d0
push str.Encoding
lea ecx, [ebp - 8]
push ecx
lea edi, [ebp - 0x1c]
call fcn.004103d0
mov esi, dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::destructor_void_]
lea ecx, [ebp - 0x18]
call esi
mov ecx, edi
call esi
lea ecx, [ebp - 0x10]
call esi
mov eax, dword [ebp - 8]
test eax, eax
je 0x410232
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp + 8]
lea edx, [edi + 0xc]
push edx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x41024a
mov esi, edi
call fcn.0040f700
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x5c]
push eax
push ecx
mov dword [ebp - 0x5c], 0x2c
call dword [sym.imp.USER32.dll_GetWindowPlacement]
test eax, eax
je 0x410382
mov edx, dword [str.WindowState]
push edx
lea edi, [ebp - 0xc]
call fcn.004184d0
mov eax, dword [eax]
xor edi, edi
push edi
lea ecx, [ebp - 8]
push ecx
push edi
push 0xf003f
push edi
push edi
push edi
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x41029b
mov dword [ebp - 8], edi
mov edx, dword [ebp - 0xc]
mov eax, dword [0x425630]
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 4]
push ecx
mov dword [ebp - 0x58], edi
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x4102c4
or dword [ebp - 0x58], 2
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
push edx
mov edx, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x48]
push edx
mov edx, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x50]
push ecx
mov ecx, dword [ebp - 0x54]
push edx
mov edx, dword [ebp - 0x58]
push eax
push ecx
push edx
push str._u__u__d__d__d__d__d__d__d__d
lea esi, [ebp - 0x15c]
call fcn.0040bb00
mov eax, esi
add esp, 0x2c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x410304
sub eax, edx
mov edx, dword [ebp - 8]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0x15c]
push ecx
push 1
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str.Frame
push edx
call edi
mov eax, dword [ebx + 0x48]
mov ebx, dword [sym.imp.USER32.dll_IsWindowVisible]
push eax
call ebx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x44]
neg eax
sbb esi, esi
and esi, 0xfffffffe
push edx
add esi, 2
call ebx
mov ecx, dword [ebp - 8]
neg eax
sbb eax, eax
inc eax
or eax, esi
push 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push str.HideFlag
push ecx
call edi
mov eax, dword [ebp - 8]
test eax, eax
je 0x41037f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 0x40]
mov ecx, dword [edi + 4]
push 0
push 0
push 0x10
push eax
push ecx
call dword [sym.imp.USER32.dll_DefFrameProcW]
mov esi, eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4103bb
mov edx, dword [0x425630]
push eax
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4