Function at 0x403790
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425868
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x433074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x13c], 0
movzx esi, word [ebx + 0x38]
test si, si
jne 0x403861
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0
push eax
push 1
push 0
push 0x427718
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4038ae
mov edi, dword [ebp - 0x12c]
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x138]
mov dword [ebp - 0x130], 4
push eax
lea eax, [ebp - 0x128]
push eax
push 0
push str.language
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403851
cmp dword [ebp - 0x128], 4
jne 0x403851
movzx esi, word [ebp - 0x138]
test edi, edi
je 0x40385c
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test si, si
je 0x4038ae
push 0x110
lea eax, [ebp - 0x120]
mov dword [ebp - 0x124], 0x114
push 0
push eax
call fcn.004163d0
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4038a4
cmp dword [ebp - 0x120], 6
jb 0x4038a4
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadUILanguage]
jmp 0x4038ae
movzx eax, si
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
mov dword [ebp - 4], 1
call fcn.00404d30
mov ecx, eax
test ecx, ecx
je 0x403c4a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x128], eax
push 0xcb
lea ecx, [ebp - 0x128]
mov dword [ebp - 4], 2
call fcn.00404ff0
push dword [ebp - 0x128]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0xcd
lea ecx, [ebp - 0x128]
call fcn.00404ff0
mov byte [ebp - 4], 3
call fcn.00404d30
mov ecx, eax
test ecx, ecx
je 0x403c54
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x12c], eax
push 0xcc
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 4
call fcn.00404ff0
push 0x427750
push 0x427760
lea ecx, [ebp - 0x12c]
call fcn.00406160
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x138]
push str._n_a_href_https:__ramensoftware.com_textify__
push eax
call fcn.004031c0
add esp, 0xc
mov esi, eax
mov ecx, dword [esi]
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x403983
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x403991
call fcn.00404d30
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
mov byte [ebp - 4], 7
test ecx, ecx
je 0x403c5e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov byte [ebp - 4], 6
mov dword [ebp - 0x130], eax
mov eax, dword [esi]
push 4
push str.__a_
mov dword [ebp - 0x13c], 1
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.004040a0
mov esi, dword [ebp - 0x130]
lea ecx, [ebp - 0x12c]
add esp, 0x14
push dword [esi - 0xc]
push esi
call fcn.004033f0
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403a04
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x138]
mov eax, esi
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403a25
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x12c]
mov esi, dword [ebp - 0x134]
mov ebx, dword [sym.imp.USER32.dll_SetDlgItemTextW]
push edi
push 0x3e9
push dword [esi + 4]
call ebx
push 0xce
lea ecx, [ebp - 0x128]
call fcn.00404ff0
push dword [ebp - 0x128]
push 0x3ea
push dword [esi + 4]
call ebx
push 0xcf
lea ecx, [ebp - 0x128]
call fcn.00404ff0
push dword [ebp - 0x128]
push 0x3eb
push dword [esi + 4]
call ebx
push 0xd0
lea ecx, [ebp - 0x128]
call fcn.00404ff0
push dword [ebp - 0x128]
push 0x3ec
push dword [esi + 4]
call ebx
push 0xd1
lea ecx, [ebp - 0x128]
call fcn.00404ff0
push dword [ebp - 0x128]
push 0x3ed
push dword [esi + 4]
call ebx
push 0x3ee
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
mov esi, eax
push 0x147
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x14b
push esi
mov ebx, eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xd2
lea ecx, [ebp - 0x128]
call fcn.00404ff0
push dword [ebp - 0x128]
push 0
push 0x143
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xd3
lea ecx, [ebp - 0x128]
call fcn.00404ff0
push dword [ebp - 0x128]
push 0
push 0x143
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xd4
lea ecx, [ebp - 0x128]
call fcn.00404ff0
push dword [ebp - 0x128]
push 0
push 0x143
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push ebx
push 0x14e
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xd5
lea ecx, [ebp - 0x128]
call fcn.00404ff0
push dword [ebp - 0x128]
mov esi, dword [ebp - 0x134]
mov ebx, dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 1
push dword [esi + 4]
call ebx
push 0xd6
lea ecx, [ebp - 0x128]
call fcn.00404ff0
push dword [ebp - 0x128]
push 0x3ef
push dword [esi + 4]
call ebx
push 0xd7
lea ecx, [ebp - 0x128]
call fcn.00404ff0
push dword [ebp - 0x128]
push 0x3f0
push dword [esi + 4]
call ebx
push 0xd8
lea ecx, [ebp - 0x128]
call fcn.00404ff0
mov eax, dword [ebp - 0x134]
mov esi, dword [ebp - 0x128]
push esi
push 0x3f1
push dword [eax + 4]
call ebx
or ebx, 0xffffffff
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x403c19
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x403c2e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414c7c
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402060
push 0x80004005
call fcn.00402060
push 0x80004005
call fcn.00402060
int3