Function at 0x412bb0
Capabilities:
Accept command line arguments
Extract resource via kernel32 functions
Get common file path
Identify system language via api
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7b4
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebx + 0x2cc], edi
mov dword [ebx + 0x2d0], edi
mov dword [ebx + 0x2d4], edi
lea eax, [ebx + 0x2cc]
mov dword [ebp - 0x80], eax
mov dword [ebx + 0x2d8], edi
lea eax, [ebx + 0x2d0]
mov dword [ebp - 0x84], eax
mov dword [ebx + 4], edi
mov dword [ebx + 0x244], edi
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x280], edi
mov dword [ebx + 0x278], edi
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x274], edi
mov dword [ebx + 0x27c], edi
mov dword [ebx + 0x18], edi
lea eax, [ebx + 0x2d4]
mov dword [ebp - 0x24], eax
lea eax, [ebx + 0x2d8]
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebx + 0x24c], eax
mov dword [ebx + 0x250], eax
mov dword [ebx + 0x254], eax
mov dword [ebx + 0x258], eax
mov dword [ebx + 0x25c], eax
mov dword [ebx + 0x260], eax
mov dword [ebx + 0x264], eax
mov dword [ebx + 0x268], eax
mov dword [ebx + 0x26c], eax
lea esi, [ebx + 0x1c]
mov dword [ebx + 0x270], eax
call fcn.00406960
mov eax, dword [ebp + 0xc]
mov dword [0x4257f4], eax
mov dword [0x4257f0], eax
mov eax, 0x412
push 0x425668
mov word [0x4257ec], ax
call fcn.0041b580
add esp, 4
test al, al
jne 0x412cd1
push 0x104
lea ecx, [ebp - 0x290]
push ecx
push 0x83
call fcn.0041d910
add esp, 0xc
push 0x10
push edi
lea edx, [ebp - 0x290]
push edx
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov eax, dword [str.Settings]
push eax
lea edi, [ebp - 8]
call fcn.004184d0
mov eax, dword [eax]
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x412d11
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 8]
mov eax, dword [0x425630]
push edx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push str.Behavior
mov esi, 4
push ecx
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x412d54
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x10], esi
je 0x412d59
mov eax, 0x82
push 0x420450
push str.Language
lea edx, [ebp - 0x14]
mov dword [ebx + 0x244], eax
push edx
mov eax, 8
lea esi, [ebp - 0x290]
call fcn.0041e400
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx esi, ax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push str.Language
mov edi, 4
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x412dbc
cmp dword [ebp - 8], edi
jne 0x412dbc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], ecx
jmp 0x412dbf
mov dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x14]
xor edi, edi
cmp eax, edi
je 0x412dcf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push str.NgsEditApp2020
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebx + 0x18], eax
cmp eax, edi
je 0x412f00
test byte [ebx + 0x244], 8
jne 0x412f00
lea edx, [ebp - 0x290]
push edx
push 0x104
mov dword [ebp - 0x68], 0x420484
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], 0x208
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x64], 0x8000
mov dword [ebp - 0x50], 0x416710
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x290]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x412e33
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0x290]
push ecx
lea ecx, [ebp - 0x68]
call fcn.0041d1a0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x412e61
sub ecx, esi
sar ecx, 1
lea edx, [ecx + ecx + 2]
push edx
push eax
lea ecx, [ebp - 0x68]
call fcn.0041d1a0
mov eax, dword [ebp - 0x54]
mov esi, dword [ebp - 0x60]
lea ecx, [ebp - 4]
push ecx
push 0xbb8
push 2
lea edx, [ebp - 0x78]
push edx
push 0
mov dword [ebp - 0x74], eax
mov eax, dword [ebx + 0x18]
push 0x4a
push eax
mov dword [ebp - 0x78], 0xbd4
mov dword [ebp - 0x70], esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov ecx, dword [0x425630]
push esi
push 0
mov edi, eax
push ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x60], 0
call dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
je 0x412f00
cmp dword [ebp - 4], 0
je 0x412f00
mov ebx, dword [ebx + 0x18]
push 6
push ebx
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
jne 0x412ee6
mov eax, ebx
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea ecx, [ebp - 0x68]
call fcn.004065a0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea edx, [ebp - 8]
push edx
call fcn.004124f0
add esp, 4
test eax, eax
jne 0x413020
mov ebx, dword [ebp - 8]
push 0x90
test ebx, ebx
jle 0x412f9f
lea eax, [ebp - 0x3b0]
push eax
push 0x88
call fcn.0041d910
mov edx, dword [0x421488]
mov eax, dword [0x42148c]
mov ecx, dword [str._X._02x]
add esp, 0xc
mov dword [ebp - 0x74], eax
push 4
mov dword [ebp - 0x78], edx
mov edx, 0x31
mov dword [ebp - 0x7c], ecx
mov ecx, dword [0x421490]
lea eax, [ebp - 0x7c]
push 0x10
push eax
lea esi, [edx - 0x29]
lea edi, [ebp - 0x6c]
mov dword [ebp - 0x70], ecx
mov word [ebp - 0x72], dx
call fcn.0041d9d0
add esp, 0xc
lea eax, [ebp - 0x44]
mov ecx, ebx
call fcn.0041d650
push eax
mov ecx, edi
push ecx
lea edx, [ebp - 0x3b0]
push edx
lea esi, [ebp - 0x290]
call fcn.004167a0
add esp, 0xc
jmp 0x413002
jns 0x412fcb
lea eax, [ebp - 0x3b0]
push eax
push 0x89
call fcn.0041d910
mov ecx, ebx
add esp, 0xc
neg ecx
lea eax, [ebp - 0x6c]
call fcn.0041d650
push eax
lea ecx, [ebp - 0x3b0]
push ecx
jmp 0x412ff4
lea edx, [ebp - 0x3b0]
push edx
push 0x82
call fcn.0041d910
add esp, 0xc
lea eax, [ebp - 0x6c]
mov ecx, 0x1040
call fcn.0041d650
push eax
lea eax, [ebp - 0x3b0]
push eax
lea esi, [ebp - 0x290]
call fcn.004167a0
add esp, 8
push 0x10
push 0
lea ecx, [ebp - 0x290]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
call dword [sym.imp.Ngs3.dll_public:_static_void___cdecl_CNgsUIHost::InitCommonData_bool_]
add esp, 4
lea ecx, [ebp - 0x18]
mov dword [0x425804], 0x420070
mov dword [0x425808], 0x416040
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::constructor_void_]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [ebp - 0x1c]
push edx
call fcn.00412780
push 0
push 7
call dword [sym.imp.Ngs3.dll_public:_static_class_CEditContext____cdecl_CEditContext::GetGlobalEc_unsigned_long_int__bool_]
mov dword [ebx + 8], eax
mov dword [eax + 0x10], ebx
mov eax, dword [ebp - 0x10]
push 0x1065
push eax
call fcn.0041d450
add esp, 0x10
test al, al
je 0x41308f
movzx ecx, word [0x4257ec]
push ecx
push 4
call dword [sym.imp.Ngs3.dll_ngsSetGlobalValue]
add esp, 8
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push 1
push 3
call dword [sym.imp.Ngs3.dll_ngsSetThreadValue]
mov edi, dword [ebp + 0xc]
xor eax, eax
add esp, 8
push 0x80
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x28], eax
push edi
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x28], str.NgsEditApp2020
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push 0
mov dword [ebp - 0x38], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x412360
lea esi, [ebp - 0x4c]
mov dword [ebp - 0x34], eax
call fcn.0041cc10
add esp, 4
push 0x81
push edi
mov dword [ebp - 0x28], str.CChildFrame
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x4123d0
mov dword [ebp - 0x38], eax
call fcn.0041cc10
add esp, 4
push 0x4124a0
mov dword [ebp - 0x28], 0x41ff3c
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], 0x11
call fcn.0041cc10
add esp, 4
push 0xa1
push edi
mov dword [ebp - 0x28], str.NgsEdit2009PadUI
mov dword [ebp - 0x30], 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x412470
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x4c], 0x10000
call fcn.0041cc10
mov eax, dword [ebp - 0x1c]
add esp, 4
sub eax, 4
je 0x413cb6
dec eax
je 0x413c86
dec eax
je 0x413c58
mov edx, dword [0x425630]
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 4
xor edi, edi
push edi
push edx
call esi
cmp eax, edi
je 0x4131bb
mov ecx, eax
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::constructor_void_]
mov dword [0x425620], eax
jmp 0x4131c1
mov dword [0x425620], edi
mov eax, dword [0x425630]
push 4
push edi
push eax
call esi
cmp eax, edi
je 0x4131df
mov ecx, eax
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::constructor_void_]
mov dword [0x42561c], eax
jmp 0x4131e5
mov dword [0x42561c], edi
mov ecx, dword [0x425630]
push 0x14
push edi
push ecx
call esi
cmp eax, edi
je 0x41321b
mov dword [eax], 4
add eax, 4
mov dword [ebp - 4], eax
mov esi, eax
mov edi, 3
mov ecx, esi
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::constructor_void_]
add esi, 4
dec edi
jns 0x413208
mov eax, dword [ebp - 4]
jmp 0x41321d
xor eax, eax
push str.http:__
lea ecx, [eax + 0xc]
mov dword [0x425624], eax
call dword [sym.imp.Ngs3.dll_public:_class_C2bString_const____thiscall_C2bString::operator_wchar_t_const__]
mov edx, dword [0x425630]
push 0x10
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x41326b
mov dword [eax], 3
add eax, 4
mov dword [ebp - 4], eax
mov esi, eax
mov edi, 2
mov ecx, esi
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::constructor_void_]
add esi, 4
dec edi
jns 0x413258
mov eax, dword [ebp - 4]
jmp 0x41326d
xor eax, eax
push 0xac
mov dword [ebx + 0x274], eax
mov eax, dword [0x425630]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::constructor_void_]
test eax, eax
je 0x4132bb
mov dword [eax], 0xe
add eax, 4
mov dword [ebp - 4], eax
mov esi, eax
mov dword [ebp - 8], 0xd
mov ecx, esi
call edi
lea ecx, [esi + 4]
call edi
add esi, 0xc
dec dword [ebp - 8]
jns 0x4132a5
mov eax, dword [ebp - 4]
jmp 0x4132bd
xor eax, eax
mov ecx, dword [0x425630]
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 4
push 0
push ecx
mov dword [ebx + 0x27c], eax
call esi
test eax, eax
je 0x4132e0
mov ecx, eax
call edi
jmp 0x4132e2
xor eax, eax
mov edx, dword [0x425630]
push 0x18
push 0
push edx
mov dword [ebx + 0xc], eax
call esi
test eax, eax
je 0x413328
mov dword [eax], 5
add eax, 4
mov dword [ebp - 4], eax
mov esi, eax
mov edi, 4
lea esp, [esp]
mov ecx, esi
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_CEvaluator::constructor_void_]
add esi, 4
dec edi
jns 0x413310
mov eax, dword [ebp - 4]
mov dword [0x42562c], eax
jmp 0x413332
mov dword [0x42562c], 0
xor eax, eax
lea esi, [ebp - 0x14]
call fcn.00418580
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 8]
push eax
push 0
push str.BackColor
mov edi, 4
push ecx
mov dword [ebx + 0x24c], 0xff
mov dword [ebx + 0x270], 0x1c2ea
mov dword [ebp - 4], edi
call esi
test eax, eax
jne 0x413383
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 8], edi
je 0x413388
mov eax, VariantClear
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp - 0x14]
mov dword [ebx + 0x25c], eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push str.ForeColor
push edx
mov dword [ebp - 0xc], edi
call esi
test eax, eax
jne 0x4133b6
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], edi
je 0x4133bb
mov eax, reloc.OLEAUT32.dll_VariantClear
mov dword [ebx + 0x260], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push str.TabSize
push eax
mov dword [ebp - 0xc], edi
call esi
test eax, eax
jne 0x4133e9
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], edi
je 0x4133eb
mov eax, edi
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 8]
push edx
mov dword [ebx + 0x264], eax
lea eax, [ebp - 4]
push eax
push 0
push str.WordWrap
push ecx
mov dword [ebp - 0xc], edi
call esi
test eax, eax
jne 0x413419
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], edi
je 0x41341e
mov eax, 2
or eax, 0x10004
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp - 0x14]
mov dword [ebx + 0x26c], eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push str.LineInterval9
push edx
mov dword [ebp - 0xc], edi
call esi
test eax, eax
jne 0x413451
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], edi
je 0x413456
mov eax, 2
mov dword [ebx + 0x268], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push str.ColByPixel
push eax
mov dword [ebp - 0xc], edi
call esi
test eax, eax
jne 0x413484
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], edi
je 0x413489
mov eax, 1
push 0x420450
push str.BackCustomColor
lea ecx, [ebp - 0x14]
mov dword [ebx + 0x248], eax
push ecx
mov eax, 0x104
lea esi, [ebp - 0x290]
call fcn.0041e400
push 0x4206e8
lea ecx, [ebp - 8]
mov edx, esi
call fcn.0041da00
mov edi, dword [sym.imp.MSVCRT.dll_wcstoul]
add esp, 4
mov esi, 0x425090
lea ebx, [ebx]
test eax, eax
je 0x4134e0
push 0x10
push 0
push eax
call edi
add esp, 0xc
jmp 0x4134e5
mov eax, 0xffffff
mov dword [esi], eax
push 0x4206e8
lea ecx, [ebp - 8]
xor edx, edx
add esi, 8
call fcn.0041da00
add esp, 4
cmp esi, 0x4250b0
jl 0x4134d0
push 0x420450
push str.ForeCustomColor
lea edx, [ebp - 0x14]
push edx
mov eax, 0x104
lea esi, [ebp - 0x290]
call fcn.0041e400
push 0x4206e8
lea ecx, [ebp - 8]
mov edx, esi
call fcn.0041da00
add esp, 4
mov esi, 0x425094
lea esp, [esp]
test eax, eax
je 0x413550
push 0x10
push 0
push eax
call edi
add esp, 0xc
jmp 0x413552
xor eax, eax
mov dword [esi], eax
push 0x4206e8
lea ecx, [ebp - 8]
xor edx, edx
add esi, 8
call fcn.0041da00
add esp, 4
cmp esi, 0x4250b4
jl 0x413540
mov eax, dword [str.Settings]
push eax
lea edi, [ebp - 0xc]
call fcn.004184d0
mov eax, dword [eax]
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4135ab
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0xc]
mov eax, dword [0x425630]
push edx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x290]
push edx
lea eax, [ebp - 4]
push eax
push 0
push str.HanfntName
push ecx
mov dword [ebp - 0xc], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x413606
mov eax, dword [ebp - 4]
cmp eax, 1
je 0x413791
cmp eax, 7
je 0x413791
cmp eax, 2
je 0x41379a
mov eax, 0x42021c
mov ebx, 0x104
lea ecx, [ebp - 0x290]
call fcn.004064f0
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x290]
push ecx
mov ecx, dword [ebx + 0x274]
call dword [sym.imp.Ngs3.dll_public:_class_C2bString_const____thiscall_C2bString::operator_wchar_t_const__]
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push str.EngfntName
push edx
mov dword [ebp - 0xc], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41367a
mov eax, dword [ebp - 4]
cmp eax, 1
je 0x4137be
cmp eax, 7
je 0x4137be
cmp eax, 2
je 0x4137c7
mov eax, 0x42021c
mov ebx, 0x104
lea ecx, [ebp - 0x290]
call fcn.004064f0
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x274]
lea edx, [ebp - 0x290]
push edx
add ecx, 4
call dword [sym.imp.Ngs3.dll_public:_class_C2bString_const____thiscall_C2bString::operator_wchar_t_const__]
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x290]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push str.HanwfntName
push eax
mov dword [ebp - 0xc], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4136f1
mov eax, dword [ebp - 4]
cmp eax, 1
je 0x4137eb
cmp eax, 7
je 0x4137eb
cmp eax, 2
je 0x4137f4
mov eax, 0x42021c
mov ebx, 0x104
lea ecx, [ebp - 0x290]
call fcn.004064f0
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x274]
lea eax, [ebp - 0x290]
push eax
add ecx, 8
call dword [sym.imp.Ngs3.dll_public:_class_C2bString_const____thiscall_C2bString::operator_wchar_t_const__]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push str.DefaultEncoding
mov edi, 4
push ecx
mov dword [ebp + 8], edi
call esi
test eax, eax
jne 0x413752
mov eax, dword [ebp - 4]
cmp dword [ebp - 0xc], edi
je 0x413757
mov eax, 0xfde9
lea edx, [ebp + 8]
push edx
mov edx, dword [ebp - 0x10]
mov dword [0x425614], eax
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push str.DefaultLineBreak
push edx
mov dword [ebp + 8], edi
call esi
test eax, eax
jne 0x413818
cmp dword [ebp - 0xc], edi
jne 0x413818
mov eax, dword [ebp - 4]
jmp 0x41381a
cmp eax, 2
jne 0x41361e
push 0x200
lea edx, [ebp - 0x7b0]
push edx
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x7b0]
jmp 0x41360b
cmp eax, 2
jne 0x413692
push 0x200
lea eax, [ebp - 0x7b0]
push eax
lea ecx, [ebp - 0x290]
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x7b0]
jmp 0x41367f
cmp eax, 2
jne 0x413709
push 0x200
lea ecx, [ebp - 0x7b0]
push ecx
lea edx, [ebp - 0x290]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x7b0]
jmp 0x4136f6
xor eax, eax
push ebx
mov dword [0x425610], eax
call fcn.00415280
lea eax, [ebx + 0x284]
push eax
mov eax, str.TextFilterMRU
lea ecx, [ebp - 0x10]
call fcn.00413cf0
lea ecx, [ebx + 0x2a8]
push ecx
mov eax, str.InputToolMRU
lea ecx, [ebp - 0x10]
call fcn.00413cf0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x41385b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x413869
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [str.Recent_File_List]
push edx
lea edi, [ebp - 0xc]
call fcn.004184d0
mov eax, dword [eax]
push 0
lea ecx, [ebp + 8]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4138a4
mov dword [ebp + 8], 0
mov edx, dword [ebp - 0xc]
mov eax, dword [0x425630]
push edx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebx + 0x280], 1
mov ecx, dword [ebx + 0x280]
push ecx
push str.File_d
lea esi, [ebp - 0x6c]
call fcn.004167e0
add esp, 8
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x290]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push ecx
push 0
mov edx, esi
push edx
push eax
mov dword [ebp - 8], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41391e
mov eax, dword [ebp - 0xc]
cmp eax, 1
je 0x413a51
cmp eax, 7
je 0x413a51
cmp eax, 2
je 0x413a56
xor eax, eax
mov word [ebp - 0x290], ax
mov eax, dword [ebp + 8]
dec dword [ebx + 0x280]
test eax, eax
je 0x41393b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test byte [ebx + 0x244], 0x80
je 0x4139cb
mov esi, dword [ebp - 0x80]
push esi
push 0x420784
push 1
push 0
push 0x41f4ec
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4139cb
mov eax, dword [esi]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
lea edi, [ebx + 0x2dc]
push edi
push eax
call edx
mov edx, dword [ebp - 0x84]
mov eax, dword [esi]
mov ecx, dword [eax]
push edx
push 0x421118
push eax
mov eax, dword [ecx]
call eax
mov edx, dword [ebp - 0x24]
mov eax, dword [esi]
mov ecx, dword [eax]
push edx
push 0x421128
push eax
mov eax, dword [ecx]
call eax
mov ecx, dword [ebp - 0x20]
push ecx
push 0x421138
push 1
push 0
push 0x41f52c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edx, dword [esi]
mov esi, dword [sym.imp.Ngs3.dll_ngsSetThreadValue]
push edx
push 1
call esi
mov eax, dword [edi]
push eax
push 2
call esi
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x415460
push 5
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov ecx, dword [ebx + 0xc]
push 0x104
mov dword [ebx + 4], eax
call dword [sym.imp.Ngs3.dll_public:_wchar_t____thiscall_C2bString::GetBuffer_int_]
push 0
push 0x20
mov esi, eax
push esi
push 0
call dword [0x4256c8]
test eax, eax
jne 0x413a0b
mov dword [esi], 0x2a
mov ecx, dword [ebx + 0xc]
push 0xffffffffffffffff
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::ReleaseBuffer_int_]
movzx ecx, word [0x4257ec]
mov eax, dword [0x4257f4]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceExW]
push ecx
push 0x80
push 4
push eax
mov esi, eax
call edi
test eax, eax
je 0x413b65
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x413b67
cmp eax, 2
jne 0x413acb
push 0x200
lea ecx, [ebp - 0x7b0]
push ecx
lea edx, [ebp - 0x290]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ecx, ecx
lea eax, [ebp - 0x290]
cmp word [ebp - 0x7b0], cx
je 0x413ac6
lea edx, [ebp - 0x7b0]
mov esi, eax
sub edx, esi
lea ebx, [ebx]
cmp ecx, 0x104
jge 0x413aaa
mov si, word [eax + edx]
mov word [eax], si
add eax, 2
inc ecx
cmp word [eax + edx], 0
jne 0x413a90
test ecx, ecx
jle 0x413abe
cmp ecx, 0x104
jne 0x413ac4
xor ecx, ecx
mov word [eax - 2], cx
jmp 0x413acb
cmp ecx, 0x104
jge 0x413acb
xor edx, edx
mov word [eax], dx
mov eax, dword [ebp - 8]
shr eax, 1
cmp eax, 0xffffffff
je 0x413927
mov eax, dword [ebx + 0x280]
mov ecx, dword [ebx + 0x27c]
lea eax, [eax + eax*2]
lea edi, [ecx + eax*4 - 0xc]
lea edx, [ebp - 0x290]
push edx
mov ecx, edi
call dword [sym.imp.Ngs3.dll_public:_class_C2bString_const____thiscall_C2bString::operator_wchar_t_const__]
mov eax, dword [ebx + 0x280]
push eax
push str.Encoding
push 0x420308
lea esi, [ebp - 0x6c]
call fcn.004167e0
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x10]
push edx
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, esi
push ecx
push edx
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x413b48
cmp dword [ebp - 0x14], 4
jne 0x413b48
mov eax, dword [ebp - 0x10]
jmp 0x413b4a
xor eax, eax
mov dword [edi + 8], eax
inc dword [ebx + 0x280]
cmp dword [ebx + 0x280], 0xe
jle 0x4138c0
jmp 0x413927
xor eax, eax
push eax
call dword [sym.imp.USER32.dll_LoadMenuIndirectW]
lea ecx, [ebp + 8]
mov dword [ebp - 0x20], eax
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::constructor_void_]
movzx edx, word [0x4257ec]
mov eax, dword [0x4257f4]
push edx
push 9
push 6
push eax
mov dword [ebp - 8], eax
call edi
mov esi, eax
test esi, esi
je 0x413baf
mov eax, dword [ebp - 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x413bb9
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x413bf1
mov ecx, dword [ebp - 8]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea eax, [edi + 2]
mov dword [ebp - 0x24], eax
movzx esi, word [edi]
test esi, esi
je 0x413bf1
push esi
push eax
push esi
lea ecx, [ebp + 8]
call dword [sym.imp.Ngs3.dll_public:_wchar_t____thiscall_C2bString::GetBuffer_int_]
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
push esi
lea ecx, [ebp + 8]
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::ReleaseBuffer_int_]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
push edx
mov edx, dword [ebp + 8]
push eax
mov eax, dword [ebx + 0x244]
push ecx
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
and eax, 0x10
push edx
or eax, 0x220
push str.NgsEditApp2020
shr eax, 1
push eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::destructor_void_]
test eax, eax
lea ecx, [ebp + 8]
setne bl
call esi
lea ecx, [ebp - 0x18]
call esi
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x18]
push 0x10
push 0
push ecx
call dword [sym.imp.MSVCRT.dll_wcstoul]
add esp, 0xc
push eax
call fcn.004116f0
add esp, 4
lea ecx, [ebp - 0x18]
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::destructor_void_]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp - 0x18]
push 0
push 0x10
push 0
push edx
call dword [sym.imp.MSVCRT.dll_wcstoul]
add esp, 0xc
push eax
call fcn.004112b0
add esp, 8
lea ecx, [ebp - 0x18]
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::destructor_void_]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x290]
push eax
call fcn.00416040
add esp, 4
lea eax, [ebp - 0x290]
call fcn.0041ce90
lea ecx, [ebp - 0x18]
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::destructor_void_]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8