Function at 0x5263d0
Capabilities:
Check os version

Disassembly:
sub esp, 0x168
mov edx, dword [esp + 0x170]
push ebx
mov ebx, dword [esp + 0x178]
push ebp
mov ebp, dword [esp + 0x174]
push esi
mov esi, edx
imul esi, esi, 0x225
push edi
mov edi, eax
mov eax, dword [edi + 0x2b]
mov cl, byte [eax + esi + 0x224]
add eax, esi
test cl, 3
mov dword [esp + 0x2c], esi
jne 0x526885
mov ecx, dword [edi + 0x133]
mov dword [eax + 0x218], ecx
lea eax, [edx - 1]
test eax, eax
jl 0x526471
mov ecx, dword [edi + 0x2b]
mov edx, eax
imul edx, edx, 0x225
lea ecx, [edx + ecx + 0x224]
test byte [ecx], 3
je 0x52644b
sub eax, 1
sub ecx, 0x225
test eax, eax
jge 0x526437
jmp 0x526471
mov ecx, dword [edi + 0x2b]
imul eax, eax, 0x225
mov edx, dword [eax + ecx + 0x21c]
add edx, dword [eax + ecx + 0x218]
add eax, ecx
add edx, dword [edi + 0x133]
mov dword [esi + ecx + 0x218], edx
mov eax, dword [edi + 0x2b]
add eax, esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x180]
push eax
mov eax, ebp
mov ecx, edi
call fcn.00526100
cmp dword [0x733e60], 0xffffffff
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x21c], eax
jne 0x5264d1
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.wine_get_unix_file_name
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edx, edx
test eax, eax
mov eax, dword [esp + 0x18]
setne dl
push eax
mov dword [0x733e60], edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x733e60], 1
je 0x5265da
lea ecx, [esp + 0x60]
push ecx
mov dword [esp + 0x64], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov al, byte [esp + 0x64]
cmp al, 6
ja 0x52650a
jne 0x5265da
cmp byte [esp + 0x68], 1
jbe 0x5265da
mov edx, dword [edi + 0x2b]
lea eax, [esi + edx]
mov edx, dword [eax + 0x218]
mov esi, dword [edi + 0x154]
add edx, 1
cmp byte [edi + 0x211], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov eax, esi
je 0x526538
add eax, dword [edi + 0x123]
mov ecx, dword [edi + 0x12b]
sub eax, esi
mov esi, dword [esp + 0x18]
mov esi, dword [esi + 0x21c]
sub eax, ecx
add eax, 1
add ecx, eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x180]
lea edx, [esi + edx - 1]
push eax
lea esi, [esp + 0x34]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
call fcn.00526010
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov esi, dword [ebx + 0x28]
sub ecx, eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x24]
sub ecx, edx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push ecx
push edx
push ecx
mov ecx, esp
push ebp
mov dword [ecx], esi
call fcn.004056c0
mov edx, dword [ebx]
mov eax, dword [ebp + 4]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebx + 0xc], eax
mov ecx, dword [ebp + 4]
push 4
lea edx, [esp + 0x34]
mov dword [ebx + 8], ecx
mov eax, dword [ebp + 4]
push edx
push eax
call dword [sym.imp.GDI32.dll_Polyline]
mov esi, dword [esp + 0x180]
jmp 0x52676f
mov ecx, dword [esp + 0x180]
push ecx
lea esi, [esp + 0x34]
call fcn.00526010
mov ecx, dword [esp + 0x30]
mov edx, dword [edi + 0x2b]
mov esi, dword [esp + 0x2c]
mov edx, dword [esi + edx + 0x21c]
mov esi, dword [esp + 0x180]
mov eax, dword [edi + 0x127]
add ecx, 1
mov dword [esp + 0x1c], ecx
lea ecx, [edx + ecx - 1]
add eax, 1
mov edx, esi
sub edx, dword [edi + 0x117]
mov dword [esp + 0x24], ecx
mov ecx, dword [edi + 0x12b]
neg edx
sbb edx, edx
and edx, 2
sub ecx, edx
mov edx, dword [ebx + 0x20]
add ecx, eax
push ecx
mov dword [esp + 0x2c], ecx
mov ecx, esp
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x24]
push ecx
mov dword [ecx], eax
mov eax, esp
push 0
push ebp
lea ecx, [esp + 0x2c]
mov dword [eax], edx
call fcn.0050eba0
mov edx, dword [ebx]
mov eax, dword [ebp + 4]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebx + 0xc], eax
mov ecx, dword [ebp + 4]
push 6
lea edx, [esp + 0x34]
mov dword [ebx + 8], ecx
mov eax, dword [ebp + 4]
push edx
push eax
call dword [sym.imp.GDI32.dll_Polyline]
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebp + 4]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp + 4]
push 0
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x48]
push edx
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 4]
push eax
push ecx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 4]
push ebx
mov ebx, dword [sym.imp.GDI32.dll_LineTo]
push edx
push eax
call ebx
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov edx, dword [ebp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp + 4]
push eax
push ecx
push edx
call ebx
cmp esi, dword [edi + 0x117]
jne 0x52676f
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [ebp + 4]
mov ebx, dword [sym.imp.GDI32.dll_SetPixel]
push 0x4b4b4b
add eax, 1
push eax
push ecx
push edx
call ebx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [ebp + 4]
push 0x5c5c5c
push eax
add ecx, 0xffffffff
push ecx
push edx
call ebx
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov edx, dword [ebp + 4]
push 0x4b4b4b
push eax
push ecx
push edx
call ebx
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov edx, dword [ebp + 4]
push 0x5c5c5c
add eax, 0xffffffff
push eax
add ecx, 1
push ecx
push edx
call ebx
xor ebx, ebx
cmp esi, ebx
jne 0x526788
push ebp
call fcn.00526b70
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x168
ret 0xc
mov eax, dword [edi + 0x2b]
mov ecx, dword [esp + 0x2c]
test byte [ecx + eax + 0x224], 8
je 0x5267a4
mov edx, dword [ebp + 4]
push 0xa0a0a0
push edx
jmp 0x5267de
cmp esi, dword [edi + 0x11b]
jne 0x5267b4
cmp esi, dword [edi + 0x117]
jne 0x5267cb
mov eax, dword [edi + 0x213]
cmp eax, 0xffffffff
je 0x5267cb
cmp eax, esi
mov dword [esp + 0x14], 0xcdcdcd
jne 0x5267d3
mov dword [esp + 0x14], 0xffffff
lea eax, [esp + 0x14]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 4]
push eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [edi + 0x10]
cmp eax, ebx
jne 0x5267f2
mov ecx, 2
jmp 0x526819
mov edx, dword [eax + 4]
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], ebx
call dword [sym.imp.USER32.dll_MapDialogRect]
mov ecx, dword [esp + 0x24]
cmp byte [edi + 0x211], 0
mov esi, dword [edi + 0x154]
mov eax, esi
je 0x526830
add eax, dword [edi + 0x123]
mov edx, dword [esp + 0x30]
lea ebx, [ecx + edx]
mov edx, dword [edi + 0x12b]
sub eax, edx
sub eax, esi
mov esi, dword [edi + 0x2b]
mov edi, dword [esp + 0x2c]
add eax, ecx
add ecx, ecx
mov dword [esp + 0x20], eax
sub eax, ecx
add eax, edx
mov edx, dword [ebp + 4]
add esi, edi
mov edi, dword [esi + 0x21c]
push 0x835
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
sub edi, ecx
mov ecx, dword [esi + 4]
push 0xffffffffffffffff
push ecx
add edi, ebx
push edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], edi
call fcn.004026d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x168
ret 0xc