Function at 0x410580
Capabilities:
Check os version

Disassembly:
sub esp, 0x308
mov eax, dword [0x4713c0]
xor eax, esp
mov dword [esp + 0x304], eax
push ebx
push ebp
mov ebp, dword [esp + 0x314]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, ecx
push 0x3f3
push esi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], esi
call edi
mov ebx, eax
lea eax, [esp + 0x48]
push eax
push ebx
mov dword [esp + 0x4c], ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x48]
push ebx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x50]
mov dword [esp + 0x40], eax
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x10], eax
call fcn.00406b70
mov eax, dword [eax + 0x64]
push 1
push eax
push 0x30
push 0x3f3
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [esp + 0x18]
mov ebp, dword [ebp + 0x4c]
xor ebx, ebx
push 0xffffffffffffffff
lea edi, [esi + 0x38]
lea ecx, [esi + 0x54]
mov dword [esp + 0x38], ebx
push ebx
mov eax, edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 0xe
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x48], ecx
call fcn.00406d10
test ebp, ebp
mov dword [esp + 0x1c], ebx
jle 0x41077b
push 0xc6
lea ecx, [esp + 0x1f6]
push 0
push ecx
mov word [esp + 0x1fc], 0
call fcn.00446fa0
add esp, 0xc
xor esi, esi
test ebp, ebp
jle 0x4106be
add ebx, ebx
lea esp, [esp]
cmp esi, 0x64
jge 0x4106ba
mov edx, dword [esp + 0x24]
lea eax, [esi + edx]
cmp eax, dword [edi + 0x14]
jbe 0x410696
call fcn.00441e46
cmp dword [edi + 0x18], 8
jb 0x4106a1
mov eax, dword [edi + 4]
jmp 0x4106a4
lea eax, [edi + 4]
mov cx, word [ebx + eax]
mov word [esp + esi*2 + 0x1f0], cx
add esi, 1
add ebx, 2
cmp esi, ebp
jl 0x410680
mov ebx, dword [esp + 0x24]
cmp ebp, 0x64
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x1fc]
push edx
jge 0x4106e5
push ebp
jmp 0x4106e7
push 0x64
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetTextExtentExPointW]
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x1c]
jle 0x4106fd
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x28]
xor esi, esi
test edx, edx
jle 0x410749
lea ecx, [ebx + ebx - 2]
jmp 0x410710
add esi, 1
add ecx, 2
lea eax, [ebx + esi - 1]
cmp eax, dword [edi + 0x14]
mov dword [esp + 0x38], ecx
jbe 0x410730
call fcn.00441e46
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
cmp dword [edi + 0x18], 8
jb 0x41073b
mov eax, dword [edi + 4]
jmp 0x41073e
lea eax, [edi + 4]
cmp word [ecx + eax], 0xa
je 0x410749
cmp esi, edx
jl 0x410710
cmp esi, edx
jne 0x410762
cmp esi, ebp
jge 0x410762
lea eax, [esi + ebx - 1]
mov ebx, dword [esp + 0x40]
call fcn.00410f40
mov ebx, dword [esp + 0x24]
add dword [esp + 0x20], 1
sub ebp, esi
add ebx, esi
test ebp, ebp
mov dword [esp + 0x24], ebx
jg 0x410650
mov esi, dword [esp + 0x18]
cmp dword [esi], 0
je 0x4107be
cmp dword [esi + 0xa4], 8
mov eax, dword [esi + 0xa0]
jb 0x410797
mov esi, dword [esi + 0x90]
jmp 0x41079d
add esi, 0x90
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x64]
push edx
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x30]
push ecx
push edx
push eax
mov eax, dword [esp + 0x24]
push esi
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentExPointW]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x44]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
add esi, 1
imul esi, dword [esp + 0x20]
cmp esi, eax
mov edi, 0xa0
jle 0x4107f1
mov edi, esi
sub edi, eax
add edi, 0xa0
mov eax, dword [esp + 0x18]
mov ebx, dword [eax + 0x10]
test ebx, ebx
mov dword [esp + 0x10], 0x6c
je 0x41082c
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x24], 0
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x410821
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x1c]
add eax, 0x1a
mov dword [esp + 0x10], eax
mov eax, edi
sub eax, esi
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
cmp dword [esp + 0x20], 3
push 0x42
jg 0x4108e4
mov ebp, dword [esp + 0x18]
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
push 0xa0
push 0x154
push 0
push 0
push 0
push ebp
sub ebx, 0xa
call edi
push 0x118
lea ecx, [esp + 0x1f8]
push 0
push ecx
call fcn.00446fa0
add esp, 0xc
lea edx, [esp + 0x1f0]
push edx
mov dword [esp + 0x1f4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x1f4], 6
jae 0x4108bd
call fcn.00429d80
test eax, eax
jne 0x4108bd
mov ecx, dword [esp + 0x10]
push 4
lea eax, [esi + 0xa]
push eax
push 0xed
add ebx, 0xfffffffb
push ebx
push ecx
jmp 0x4108ce
mov edx, dword [esp + 0x10]
push 4
push esi
push 0xed
add ebx, 0xfffffffb
push ebx
push edx
push 0
push 0x3f3
push ebp
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call edi
jmp 0x41098e
cmp dword [0x47501c], 0
mov eax, dword [esp + 0x1c]
je 0x41092d
cmp dword [eax], 0
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
je 0x410916
mov ecx, dword [esp + 0x18]
push 0xb1
push 0x154
push 0
push 0
push 0
add ebx, 0xb
push ecx
jmp 0x410962
mov edx, dword [esp + 0x18]
push 0x9b
push 0x154
push 0
push 0
push 0
push edx
jmp 0x410962
cmp dword [eax], 0
je 0x410948
mov edx, dword [esp + 0x18]
lea ecx, [esi + 0x7f]
push ecx
push 0x154
push 0
push 0
push 0
push edx
jmp 0x41095c
mov eax, dword [esp + 0x18]
add edi, 0x11
push edi
push 0x154
push 0
push 0
push 0
push eax
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
call edi
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push 4
push esi
push 0xfa
add ebx, 0xfffffffb
push ebx
push ecx
push 0
push 0x3f3
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call edi
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp dword [eax], 0
je 0x4109b7
mov ecx, dword [esp + 0x58]
push 4
push 0xe
push ecx
add esi, 0x36
push esi
push 0x73
push 0
push 0x7f1
push ebp
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call edi
mov ecx, dword [esp + 0x314]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004414cc
add esp, 0x308
ret 4