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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423ad8
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x431078]
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 + 0x34]
test si, si
jne 0x402921
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0
push eax
push 1
push 0
push 0x42563c
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40296e
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 0x402911
cmp dword [ebp - 0x128], 4
jne 0x402911
movzx esi, word [ebp - 0x138]
test edi, edi
je 0x40291c
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test si, si
je 0x40296e
push 0x110
lea eax, [ebp - 0x120]
mov dword [ebp - 0x124], 0x114
push 0
push eax
call fcn.00414d90
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402964
cmp dword [ebp - 0x120], 6
jb 0x402964
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadUILanguage]
jmp 0x40296e
movzx eax, si
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
mov dword [ebp - 4], 1
call fcn.00403eb0
mov ecx, eax
test ecx, ecx
je 0x402cea
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.00403fe0
push dword [ebp - 0x128]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0xcd
lea ecx, [ebp - 0x128]
call fcn.00403fe0
mov byte [ebp - 4], 3
call fcn.00403eb0
mov ecx, eax
test ecx, ecx
je 0x402cf4
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.00403fe0
push 0x425674
push 0x425680
lea ecx, [ebp - 0x12c]
call fcn.004050f0
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x138]
push str._n_a_href_https:__ramensoftware.com_textify__
push eax
call fcn.00402240
add esp, 0xc
mov esi, eax
mov ecx, dword [esi]
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x402a43
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x402a51
call fcn.00403eb0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
mov byte [ebp - 4], 7
test ecx, ecx
je 0x402cfe
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.00403160
mov esi, dword [ebp - 0x130]
lea ecx, [ebp - 0x12c]
add esp, 0x14
push dword [esi - 0xc]
push esi
call fcn.004024a0
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402ac4
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 0x402ae5
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 0x3e8
push dword [esi + 4]
call ebx
push 0xce
lea ecx, [ebp - 0x128]
call fcn.00403fe0
push dword [ebp - 0x128]
push 0x3e9
push dword [esi + 4]
call ebx
push 0xcf
lea ecx, [ebp - 0x128]
call fcn.00403fe0
push dword [ebp - 0x128]
push 0x3ea
push dword [esi + 4]
call ebx
push 0xd0
lea ecx, [ebp - 0x128]
call fcn.00403fe0
push dword [ebp - 0x128]
push 0x3eb
push dword [esi + 4]
call ebx
push 0xd1
lea ecx, [ebp - 0x128]
call fcn.00403fe0
push dword [ebp - 0x128]
push 0x3ec
push dword [esi + 4]
call ebx
push 0x3ed
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.00403fe0
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.00403fe0
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.00403fe0
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.00403fe0
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.00403fe0
push dword [ebp - 0x128]
push 0x3ee
push dword [esi + 4]
call ebx
push 0xd7
lea ecx, [ebp - 0x128]
call fcn.00403fe0
mov eax, dword [ebp - 0x134]
mov esi, dword [ebp - 0x128]
push esi
push 0x3ef
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 0x402cb9
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 0x402cce
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.0041345d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402f20
push 0x80004005
call fcn.00402f20
push 0x80004005
call fcn.00402f20
int3