Function at 0x415720
Capabilities:
Get file size
Query or enumerate registry value
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b5378
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4ef7d0]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ef7d0]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x6c]
xor edi, edi
cmp dword [ebx + 0x20], edi
mov ebp, ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebx
je 0x415838
mov dword [esp + 0x18], vtable.wpf::Reader.0
mov dword [esp + 0x1c], edi
mov esi, 0x10
cmp dword [ebx + 0x24], esi
mov dword [esp + 0x64], edi
jb 0x41578a
mov eax, dword [ebx + 0x10]
jmp 0x41578d
lea eax, [ebx + 0x10]
push 0x80000000
push eax
lea ecx, [esp + 0x20]
call fcn.0042bd80
test al, al
jne 0x41583f
mov ebx, 0xf
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], edi
mov byte [esp + 0x40], al
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x68], 1
call fcn.0042e4e0
add esp, 4
push edi
push 0x2710
lea ecx, [esp + 0x1c]
call fcn.0042c080
cmp dword [esp + 0x54], esi
mov eax, dword [eax]
mov ecx, dword [esp + 0x40]
jae 0x4157e6
lea ecx, [esp + 0x40]
push 0x30
push eax
push ecx
mov ecx, dword [ebp + 4]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [esp + 0x14]
push edx
call fcn.0049ec02
add esp, 4
cmp dword [esp + 0x54], esi
jb 0x415814
mov eax, dword [esp + 0x40]
push eax
call fcn.0049ea7d
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, edi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], edi
mov byte [esp + 0x40], 0
mov dword [esp + 0x18], vtable.wpf::Reader.0
je 0x415838
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x415b5a
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
or ebp, 0xffffffff
cmp eax, ebp
jne 0x41585c
mov dword [esp + 0x38], ebp
jmp 0x41586c
mov ecx, dword [esp + 0x14]
xor ebp, ebp
xor edx, edx
or ebp, eax
or ecx, edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x20], edi
push 0x20019
push str.SoftwareNotepad2Settings
push 0x80000001
lea ecx, [esp + 0x2c]
mov byte [esp + 0x70], 2
call fcn.004013c0
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x3c]
push edx
push edi
push str.FileLoadWarningMB
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x48], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x415950
shl eax, 0x14
cmp eax, ebp
jae 0x415950
push edi
push 0x2710
lea ecx, [esp + 0x1c]
call fcn.0042c080
mov esi, eax
push edi
push 0xc35d
lea ecx, [esp + 0x38]
mov byte [esp + 0x6c], 3
call fcn.0042c080
mov esi, dword [esi]
mov eax, dword [eax]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 4]
push 0x34
push esi
push eax
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
mov eax, dword [esp + 0x30]
push eax
setne bl
call fcn.0049ec02
mov ecx, dword [esp + 0x18]
push ecx
mov byte [esp + 0x6c], 2
call fcn.0049ec02
add esp, 8
test bl, bl
je 0x41594a
lea ecx, [esp + 0x20]
call fcn.00402500
lea ecx, [esp + 0x18]
call fcn.004026f0
xor al, al
jmp 0x415b5a
mov ebx, dword [esp + 0x28]
xor edi, edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
lea edx, [ebp + 2]
push edx
lea ecx, [esp + 0x38]
mov byte [esp + 0x68], 4
call fcn.00402b50
mov ecx, dword [esp + 0x1c]
push edi
mov esi, eax
lea eax, [esp + 0x18]
push eax
push ebp
push esi
push ecx
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x4159a5
mov eax, dword [esp + 0x70]
xor edx, edx
test eax, eax
setl dl
mov dword [ebx + 4], edi
sub edx, 1
and edx, eax
mov dword [ebx], edx
jmp 0x415b21
mov byte [esi + ebp], 0
mov byte [esi + ebp + 1], 0
mov ebp, dword [esp + 0x70]
cmp ebp, 1
je 0x415a8d
cmp ebp, 2
je 0x415a8d
cmp ebp, 0xffffffff
jne 0x415a22
push edi
push esi
call fcn.00413120
add esp, 8
test al, al
jne 0x415a8d
push edi
push esi
call fcn.00413090
add esp, 8
test al, al
jne 0x415a29
push esi
call fcn.0042b7c0
add esp, 4
test al, al
jne 0x415a03
push esi
call fcn.0042b720
add esp, 4
test al, al
jne 0x415a29
push edi
push esi
call fcn.0041bed0
mov ecx, dword [esp + 0x2c]
add esp, 8
push edi
push esi
mov dword [ebx + 4], eax
xor ebp, ebp
call fcn.00413b30
jmp 0x415b1f
cmp ebp, 3
je 0x415a41
jmp 0x415a03
push edi
push esi
mov ebp, 3
call fcn.00413090
add esp, 8
test al, al
je 0x415a41
add esi, ebp
add edi, 0xfffffffd
add edi, 1
push edi
lea ecx, [esp + 0x2c]
call fcn.004136c0
mov edi, dword [esp + 0x28]
push 0
push 0xffffffffffffffff
push edi
push esi
mov byte [esp + 0x74], 6
call fcn.0042b670
mov ecx, dword [esp + 0x34]
add esp, 0x10
mov esi, eax
push esi
push edi
call fcn.00413b30
push esi
push edi
call fcn.0041bed0
add esp, 8
lea ecx, [esp + 0x28]
mov dword [ebx + 4], eax
call fcn.00402b20
jmp 0x415b1f
push edi
push esi
call fcn.004130e0
add esp, 8
cmp ebp, 1
je 0x415aa7
cmp ebp, 2
je 0x415ab7
add esi, 2
add edi, 0xfffffffe
cmp ebp, 2
je 0x415ab7
test al, al
jne 0x415ab7
mov ebp, 1
jmp 0x415ac7
push 0xffffffffffffffff
push esi
call fcn.0042b7e0
add esp, 8
mov ebp, 2
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
shr edi, 1
lea eax, [edi + edi + 1]
push eax
lea ecx, [esp + 0x2c]
call fcn.00402b50
mov edi, dword [esp + 0x28]
push 0
push 0xffffffffffffffff
push edi
push esi
mov byte [esp + 0x74], 5
call fcn.0042b610
mov ecx, dword [esp + 0x34]
add esp, 0x10
mov esi, eax
push esi
push edi
call fcn.00413b30
push esi
push edi
call fcn.0041bed0
add esp, 8
test edi, edi
mov dword [ebx + 4], eax
je 0x415b1f
push edi
call fcn.0049ed7a
add esp, 4
mov dword [ebx], ebp
mov eax, dword [esp + 0x34]
test eax, eax
je 0x415b32
push eax
call fcn.0049ed7a
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x415b41
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x18], vtable.wpf::Reader.0
je 0x415b58
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0049ec31
add esp, 0x54
ret 8