Function at 0x4762c0
Capabilities:
Check os version

Disassembly:
sub esp, 0x30c
mov eax, dword [0x5bd254]
xor eax, esp
mov dword [esp + 0x308], eax
mov eax, dword [esp + 0x31c]
push ebx
xor ebx, ebx
mov dword [esp + 0x20], eax
mov dword [eax], ebx
xor eax, eax
push esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x320]
mov esi, edx
push eax
lea edx, [esp + 0x210]
push edx
push esi
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x38], ebx
call sym.convertifd.exe_FindLogoFile
add esp, 0x10
test eax, eax
jne 0x47632e
pop esi
pop ebx
mov ecx, dword [esp + 0x308]
xor ecx, esp
call fcn.00511a80
add esp, 0x30c
ret
mov eax, 0x12c
cdq
idiv dword [esp + 0x318]
push edi
push ebx
lea ecx, [esp + 0x214]
mov dword [0x606774], eax
lea eax, [esp + 0x16c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x20], edi
jne 0x47637d
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x308]
xor ecx, esp
call fcn.00511a80
add esp, 0x30c
ret
push ebp
lea edx, [esp + 0x174]
push edx
lea eax, [esp + 0xee]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea ecx, [esp + 0x1f8]
push 0x581ed0
push ecx
call fcn.005135ca
lea edx, [esp + 0x200]
push edx
call sym.convertifd.exe_JfLoadLibrary
mov ebp, eax
add esp, 0x10
cmp ebp, 0x20
mov dword [esp + 0x18], ebp
jae 0x4763e7
cmp dword [esp + 0x324], ebx
je 0x4763e0
lea eax, [esp + 0x214]
push eax
push 0xffffdcb8
call sym.convertifd.exe_IpCMessage
add esp, 8
mov ebp, ebx
jmp 0x4766c7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x581ec0
push ebp
call edi
cmp eax, ebx
je 0x476403
push ebx
lea ecx, [esp + 0x20]
push ecx
push ebx
push ebx
call eax
push str.GetFilterPref
push ebp
call edi
cmp eax, ebx
je 0x476426
mov edx, dword [esp + 0x1c]
mov ecx, dword [sym.convertifd.exe_i_window]
push 1
push edx
mov edx, dword [0x6a124c]
push ecx
push edx
call eax
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x28], ebx
je 0x4766ec
push 0x581eac
push esi
call fcn.0051e073
add esp, 8
test eax, eax
je 0x4764b4
push 0x581e88
push esi
call fcn.0051e073
add esp, 8
test eax, eax
je 0x4764b4
push 0x581ea8
push esi
call fcn.0051e073
add esp, 8
test eax, eax
je 0x4764b4
push 0x581ea4
push esi
call fcn.0051e073
add esp, 8
test eax, eax
je 0x4764b4
push 0x581e7c
push esi
call fcn.0051e073
add esp, 8
test eax, eax
je 0x4764b4
push 0x581e98
push ebp
call edi
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0xe8]
push ecx
push ebx
call eax
jmp 0x4764e0
xor eax, eax
push 0x581e8c
push ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
call edi
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push edx
push ecx
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0xec]
push ecx
push ebx
call eax
movsx ebx, ax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4765f9
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
mov esi, eax
test esi, esi
mov dword [esp + 0x20], esi
je 0x4765f9
cmp word [esp + 0x12], 0
je 0x4765eb
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x50], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x5c], 2
jne 0x4765eb
cmp dword [esp + 0x50], 5
jae 0x4765eb
mov eax, dword [sym.convertifd.exe_i_window]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push 0x18
push eax
mov dword [esp + 0x50], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
test eax, eax
jle 0x4765d9
mov cl, byte [esp + 0x10]
mov esi, 1
shl esi, cl
lea ebp, [esi*4 + 4]
push ebp
call sym.convertifd.exe_IpMalloc
mov edi, eax
add esp, 4
test edi, edi
je 0x4765d1
push ebp
push 0
push edi
call fcn.00511e90
add esp, 0xc
xor eax, eax
test esi, esi
jle 0x4765bc
lea ecx, [edi + 5]
mov edx, dword [esp + 0x14]
movzx edx, byte [edx + eax*4 + 2]
mov byte [ecx - 1], dl
mov edx, dword [esp + 0x14]
movzx edx, byte [edx + eax*4 + 1]
mov byte [ecx], dl
mov edx, dword [esp + 0x14]
movzx edx, byte [edx + eax*4]
mov byte [ecx + 1], dl
add eax, 1
add ecx, 4
cmp eax, esi
jl 0x476590
push edi
mov word [edi + 2], si
mov word [edi], 0x300
call dword [sym.imp.GDI32.dll_CreatePalette]
mov dword [sym.convertifd.exe_hPalette], eax
mov esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x48]
mov ecx, dword [sym.convertifd.exe_i_window]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [esp + 0x30], 0
je 0x4766b6
cmp ebx, 0x139a
jne 0x476654
cmp dword [esp + 0x328], 0
je 0x4766b6
lea eax, [esp + 0x214]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x476624
sub eax, edx
mov ecx, 0x80
lea edx, [esp + 0x214]
push edx
cmp ecx, eax
sbb edx, edx
and edx, 0xfffffffd
add edx, 0xfffff829
push edx
call sym.convertifd.exe_DisplayLogoErrorMessage
add esp, 8
jmp 0x4766b6
cmp ebx, 0x14b5
je 0x4766b6
cmp ebx, 0x14bf
jne 0x47666d
push 0xfffffffffffffff9
call sym.convertifd.exe_IpMessage
jmp 0x4766b3
cmp ebx, 0x14c3
jne 0x47667e
push 0xfffffffffffffff9
call sym.convertifd.exe_IpMessage
jmp 0x4766b3
cmp ebx, 0x14c1
jne 0x47668f
push 0xfffffffffffffff9
call sym.convertifd.exe_IpMessage
jmp 0x4766b3
cmp ebx, 0x14bd
je 0x4766b6
cmp ebx, 0x14c5
jne 0x4766f0
push 0xffffdc2a
call sym.convertifd.exe_IpMessage
mov eax, dword [esp + 0x30]
mov dword [eax], 1
add esp, 4
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edi, dword [esp + 0x24]
xor ebx, ebx
cmp edi, ebx
je 0x4766d2
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x4766e1
push eax
call dword [sym.imp.GDI32.dll_DeleteMetaFile]
cmp ebp, ebx
je 0x4766ec
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x47675d
push 0x18
call sym.convertifd.exe_IpMalloc
mov esi, eax
add esp, 4
test esi, esi
je 0x476736
mov edx, dword [esp + 0x30]
mov dword [esi], edx
mov eax, dword [esp + 0x34]
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x38]
mov dword [esi + 8], ecx
mov edx, dword [esp + 0x3c]
mov dword [esi + 0xc], edx
mov eax, dword [esp + 0x40]
mov dword [esi + 0x10], eax
mov cx, word [esp + 0x44]
mov word [esi + 0x14], cx
movsx edx, word [esp + 0x44]
mov dword [0x606774], edx
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x476750
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
test ebp, ebp
je 0x47675b
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
mov ecx, dword [esp + 0x318]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00511a80
add esp, 0x30c
ret