Function at 0x411370
Capabilities:
Check os version

Disassembly:
sub esp, 0x308
mov eax, dword [0x46e3d0]
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.00406b20
mov eax, dword [eax + 0x60]
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.00406cc0
test ebp, ebp
mov dword [esp + 0x1c], ebx
jle 0x41156b
push 0xc6
lea ecx, [esp + 0x1f6]
push 0
push ecx
mov word [esp + 0x1fc], 0
call fcn.00443e10
add esp, 0xc
xor esi, esi
test ebp, ebp
jle 0x4114ae
add ebx, ebx
lea esp, [esp]
cmp esi, 0x64
jge 0x4114aa
mov edx, dword [esp + 0x24]
lea eax, [esi + edx]
cmp eax, dword [edi + 0x14]
jbe 0x411486
call fcn.0043f7bb
cmp dword [edi + 0x18], 8
jb 0x411491
mov eax, dword [edi + 4]
jmp 0x411494
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 0x411470
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 0x4114d5
push ebp
jmp 0x4114d7
push 0x64
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetTextExtentExPointW]
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x1c]
jle 0x4114ed
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x28]
xor esi, esi
test edx, edx
jle 0x411539
lea ecx, [ebx + ebx - 2]
jmp 0x411500
add esi, 1
add ecx, 2
lea eax, [ebx + esi - 1]
cmp eax, dword [edi + 0x14]
mov dword [esp + 0x38], ecx
jbe 0x411520
call fcn.0043f7bb
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
cmp dword [edi + 0x18], 8
jb 0x41152b
mov eax, dword [edi + 4]
jmp 0x41152e
lea eax, [edi + 4]
cmp word [ecx + eax], 0xa
je 0x411539
cmp esi, edx
jl 0x411500
cmp esi, edx
jne 0x411552
cmp esi, ebp
jge 0x411552
lea eax, [esi + ebx - 1]
mov ebx, dword [esp + 0x40]
call fcn.00411d30
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 0x411440
mov esi, dword [esp + 0x18]
cmp dword [esi], 0
je 0x4115ae
cmp dword [esi + 0xa4], 8
mov eax, dword [esi + 0xa0]
jb 0x411587
mov esi, dword [esi + 0x90]
jmp 0x41158d
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 0x4115e1
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 0x41161c
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 0x411611
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 0x4116d4
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.00443e10
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 0x4116ad
call fcn.00428600
test eax, eax
jne 0x4116ad
mov ecx, dword [esp + 0x10]
push 4
lea eax, [esi + 0xa]
push eax
push 0xed
add ebx, 0xfffffffb
push ebx
push ecx
jmp 0x4116be
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 0x41177e
cmp dword [0x471f7c], 0
mov eax, dword [esp + 0x1c]
je 0x41171d
cmp dword [eax], 0
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
je 0x411706
mov ecx, dword [esp + 0x18]
push 0xb1
push 0x154
push 0
push 0
push 0
add ebx, 0xb
push ecx
jmp 0x411752
mov edx, dword [esp + 0x18]
push 0x9b
push 0x154
push 0
push 0
push 0
push edx
jmp 0x411752
cmp dword [eax], 0
je 0x411738
mov edx, dword [esp + 0x18]
lea ecx, [esi + 0x7f]
push ecx
push 0x154
push 0
push 0
push 0
push edx
jmp 0x41174c
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 0x4117a7
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.0043ef12
add esp, 0x308
ret 4