Function at 0x41fa44
Capabilities:
Create thread

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xab4
mov eax, dword [ebp + 0x7c]
and dword [ebp + 0x34], 0
and dword [ebp + 0x38], 0
cmp word [eax], 0x2d
mov dword [ebp + 0x28], ecx
mov byte [ebp + 0x5b], 0xff
mov byte [ebp + 0x73], 0
mov byte [ebp + 0x3f], 0
mov byte [ebp + 0x62], 0
mov dword [ebp + 0x20], 1
mov byte [ebp + 0x63], 0x2a
jne 0x41fa82
mov byte [ebp + 0x63], 0x2d
mov cl, byte [ebp + 0x63]
cmp cl, byte [eax]
push ebx
push esi
jne 0x41fadb
add eax, 2
push str.guis
mov dword [ebp + 0x5c], eax
push 4
pop eax
lea ebx, [ebp + 0x5c]
call fcn.00413687
test al, al
pop ecx
je 0x41fad8
push str.35:INDATADispSet
lea ecx, [ebp + 0x48]
call fcn.00448399
push dword [ebp + 0x5c]
lea ecx, [ebp + 0x48]
call fcn.0043fe06
push dword [ebp + 0x48]
mov ecx, dword [ebp + 0x28]
call fcn.004309f9
lea ecx, [ebp + 0x48]
mov esi, eax
call fcn.00439cfd
jmp 0x420c63
mov eax, dword [ebp + 0x7c]
mov cl, byte [ebp + 0x63]
cmp cl, byte [eax]
push edi
mov dword [ebp + 0x5c], eax
jne 0x41fc66
add eax, 2
push str.confirm
mov dword [ebp + 0x5c], eax
push 7
pop eax
lea ebx, [ebp + 0x5c]
call fcn.00413687
test al, al
pop ecx
je 0x41fc66
mov edi, dword [ebp + 0x5c]
push edi
mov dword [ebp + 0x7c], edi
call dword [sym.imp.USER32.dll_CharUpperW]
movsx esi, byte [ebp + 0x63]
jmp 0x41fb26
lea eax, [ebp + 0x7c]
push eax
call fcn.00405444
pop ecx
mov eax, dword [ebp + 0x7c]
movzx ecx, word [eax]
cmp esi, ecx
je 0x41fb1c
push 0x4f
push eax
xor esi, esi
xor ebx, ebx
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x41fb44
push 0x10
pop ebx
push 0x28
lea ecx, [ebp + 0x68]
call fcn.0043fdb8
push ebx
push str.____0x_X
push dword [ebp + 0x68]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push str.__confirm_
lea ecx, [ebp + 0x68]
call fcn.0043fe06
push edi
lea ecx, [ebp + 0x68]
call fcn.0043fe06
mov ecx, dword [ebp + 0x28]
push 0x4ae9fc
push str.YesNo
call fcn.0043f62b
push dword [0x4c72a8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call edi
lea ecx, [ebp - 8]
mov ebx, eax
call fcn.0043fc26
lea eax, [ebx + 8]
push eax
lea ecx, [ebp - 8]
mov dword [ebp - 4], esi
mov dword [ebp], esi
call fcn.0043fddf
lea eax, [ebx + 1]
push eax
push dword [0x4c72a8]
push dword [ebp - 8]
call fcn.0040542c
mov eax, dword [ebp - 8]
add esp, 0xc
jmp 0x41fbf7
cmp byte [eax], 0x5c
jne 0x41fbf5
lea ecx, [eax + 2]
mov dl, byte [ecx]
cmp dl, 0x6e
jne 0x41fbe9
mov word [eax], 0xd
mov eax, ecx
mov word [eax], 0xa
jmp 0x41fbf5
cmp dl, 0x5c
jne 0x41fbf5
mov word [eax], 0x20
mov eax, ecx
inc eax
inc eax
cmp word [eax], si
jne 0x41fbcc
push eax
call edi
shl eax, 1
mov dword [ebp], eax
mov dword [ebp - 4], eax
call fcn.004118cf
movzx edi, ax
add ebx, 2
push ebx
push edi
push dword [ebp - 8]
call fcn.0041192a
mov ebx, dword [ebp - 8]
add esp, 0xc
push 0xffffffffffffffff
push str.mem
lea ecx, [ebp + 0x18]
mov dword [ebp - 8], esi
call fcn.004483cf
mov eax, dword [eax]
mov ecx, dword [ebp + 0x28]
push esi
push esi
shl edi, 0x10
or edi, 0x40
push edi
push eax
push dword [ebp + 0x68]
push ebx
call fcn.0047b8a4
lea ecx, [ebp + 0x18]
mov esi, eax
call fcn.00439cfd
lea ecx, [ebp - 8]
call fcn.00439cfd
lea ecx, [ebp + 0x68]
jmp 0x420c5d
push 0x4c8f48
push 0x4c8f54
push str.User32.DLL
push str.SetDisplayConfig
xor esi, esi
mov byte [ebp + 0x53], 0
call fcn.0043afc7
add esp, 0x10
push 0xf
pop ecx
mov word [ebp - 0x2e8], si
xor eax, eax
lea edi, [ebp - 0x2e6]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x27
pop ecx
xor eax, eax
lea edi, [ebp - 0x2a8]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x18]
lea ebx, [ebp - 0x2e8]
mov word [ebp - 0x2a4], 0xdc
mov dword [ebp - 0x23c], 0x280
mov dword [ebp - 0x238], 0x1e0
mov dword [ebp - 0x240], 4
mov dword [ebp - 0x230], 1
mov dword [ebp + 0x40], esi
call fcn.0043fd9a
lea ecx, [ebp + 0x10]
call fcn.0043fd9a
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
jmp 0x41fff1
cmp cx, 0x2d
jne 0x41fd34
cmp word [edx + 2], cx
jne 0x41fd34
xor eax, eax
mov ax, word [edx + 4]
cmp ax, si
je 0x420040
call fcn.0040ea2b
test al, al
jne 0x420040
movzx eax, cx
movsx ecx, byte [ebp + 0x63]
cmp ecx, eax
jne 0x420000
push 6
lea eax, [ebp + 0x7c]
inc edx
push eax
inc edx
push str.delay
mov dword [ebp + 0x7c], edx
call fcn.00441bc4
add esp, 0xc
test al, al
je 0x41fd68
mov byte [ebp + 0x3f], 1
jmp 0x41fff1
push 6
lea eax, [ebp + 0x7c]
push eax
push str.reset
call fcn.00441bc4
add esp, 0xc
test al, al
je 0x41fd88
mov byte [ebp + 0x62], 1
jmp 0x41fff1
push 7
lea eax, [ebp + 0x7c]
push eax
push 0x4b2b4c
call fcn.00441bc4
add esp, 0xc
test al, al
je 0x41fdb2
cmp byte [ebp + 0x5b], 0
jge 0x41fff1
mov byte [ebp + 0x5b], 1
jmp 0x41fff1
push 8
lea eax, [ebp + 0x7c]
push eax
push str.confirm_
call fcn.00441bc4
add esp, 0xc
test al, al
je 0x41fddc
cmp byte [ebp + 0x5b], 0
jge 0x41fff1
mov byte [ebp + 0x5b], 0
jmp 0x41fff1
push 5
lea eax, [ebp + 0x7c]
push eax
push str.nsort
call fcn.00441bc4
add esp, 0xc
test al, al
je 0x41fdfb
mov dword [ebp + 0x20], esi
jmp 0x41fff1
push 5
lea eax, [ebp + 0x7c]
push eax
push 0x4b2b30
call fcn.00441bc4
add esp, 0xc
test al, al
je 0x41fe1e
mov dword [ebp + 0x20], 0xffff
jmp 0x41fff1
push 4
lea eax, [ebp + 0x7c]
push eax
push str.size
call fcn.00441bc4
add esp, 0xc
test al, al
je 0x41fe41
mov dword [ebp + 0x34], 0x10000
jmp 0x41fff1
push 3
lea eax, [ebp + 0x7c]
push eax
push 0x4b2b24
call fcn.00441bc4
add esp, 0xc
test al, al
je 0x41fe64
mov dword [ebp + 0x38], 0x20000
jmp 0x41fff1
push 6
lea eax, [ebp + 0x7c]
push eax
push str.bright:
call fcn.00441c77
add esp, 0xc
test al, al
je 0x41fe81
mov byte [ebp + 0x5a], 0xff
jmp 0x41fea0
push 7
lea eax, [ebp + 0x7c]
push eax
push 0x4b2b10
call fcn.00441c77
add esp, 0xc
test al, al
je 0x41ffe7
mov byte [ebp + 0x5a], 1
cmp byte [ebp + 0x5a], 0
fld qword [0x4b2b08]
fstp qword [ebp - 0x54]
jle 0x41fedf
lea ecx, [ebp + 0x7c]
call fcn.0040ea44
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x5c], eax
mov eax, ecx
push eax
call fcn.0040549b
mov eax, dword [ebp + 0x7c]
cmp word [eax], si
pop ecx
je 0x41feee
mov word [eax], si
add dword [ebp + 0x7c], 2
lea ecx, [ebp + 0x7c]
call fcn.0040ea44
jmp 0x41feee
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp + 0x7c]
push eax
call fcn.0047c2f7
pop ecx
pop ecx
push 0x4c8f50
push 0x4c8f58
mov edi, str.gdi32.DLL
push edi
push str.SetDeviceGammaRamp
mov dword [ebp + 0x68], 0x80004001
call fcn.0043afc7
push 0x4c8f50
push 0x4c8f5c
push edi
push 0x4b2ad0
call fcn.0043afc7
add esp, 0x20
push esi
mov dword [ebp + 0x18], esi
call dword [sym.imp.USER32.dll_GetDC]
push 0x600
lea ecx, [ebp + 4]
mov dword [ebp + 0x14], eax
call fcn.0043fc43
cmp byte [ebp + 0x5a], 0
mov eax, dword [ebp + 4]
mov dword [ebp + 0x24], eax
lea ecx, [eax + 0x200]
lea edx, [eax + 0x400]
jg 0x42004c
cmp byte [ebp + 0x5a], 1
jge 0x41ffc9
cmp dword [0x4c8f58], esi
je 0x41ffc9
mov dword [ebp + 0x48], edx
sub dword [ebp + 0x48], ecx
mov dword [ebp + 0x68], esi
mov edi, ecx
fild dword [ebp + 0x68]
fmul qword [ebp - 0x54]
fadd qword [0x4b2ac8]
call fcn.0049ad34
cmp eax, 0xffff
jbe 0x41ff93
mov eax, 0xffff
mov ecx, dword [ebp + 0x48]
mov edx, dword [ebp + 0x68]
inc dword [ebp + 0x68]
mov word [edi + ecx], ax
mov ecx, dword [ebp + 0x24]
mov word [edi], ax
inc edi
inc edi
cmp dword [ebp + 0x68], 0x100
mov word [ecx + edx*2], ax
jl 0x41ff76
push ecx
push dword [ebp + 0x14]
call dword [0x4c8f58]
push eax
call fcn.0043492e
pop ecx
mov dword [ebp + 0x68], eax
mov eax, dword [ebp + 0x7c]
cmp word [eax], si
lea ecx, [ebp + 4]
je 0x4200c9
call fcn.00439cfd
lea ecx, [ebp + 0x14]
call fcn.0040103b
jmp 0x41fff1
lea eax, [ebp + 0x7c]
push eax
call fcn.00405444
pop ecx
mov edx, dword [ebp + 0x7c]
mov cx, word [edx]
cmp cx, si
jne 0x41fd0c
mov al, byte [ebp + 0x3f]
neg al
sbb eax, eax
and eax, 0x10000000
cmp byte [ebp + 0x62], 0
mov dword [ebp - 0x34], eax
je 0x42001c
mov dword [ebp - 0x34], 0x40000000
push 1
lea eax, [ebp + 0x7c]
push eax
push 0x4b2ac0
call fcn.00439d66
add esp, 0xc
test eax, eax
je 0x4200de
mov byte [ebp + 0x73], 1
jmp 0x4200f9
lea eax, [ebp + 0x7c]
push eax
call fcn.00405444
pop ecx
jmp 0x420000
mov ecx, dword [0x4c8f5c]
cmp ecx, esi
mov word [ebp - 0x400], si
je 0x4200b4
push eax
push dword [ebp + 0x14]
call ecx
push eax
call fcn.0043492e
cmp eax, esi
pop ecx
mov dword [ebp + 0x68], eax
jne 0x4200b4
xor ecx, ecx
xor ebx, ebx
xor edi, edi
mov eax, dword [ebp + 0x24]
movzx eax, word [eax + edi*2]
cdq
add ecx, eax
adc ebx, edx
inc edi
cmp edi, 0x300
jl 0x420077
push esi
add ecx, 1
push 0x17e80
adc ebx, esi
push ebx
push ecx
call fcn.0049adb0
push eax
lea eax, [ebp - 0x400]
push 0x4af1c4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, dword [ebp + 0x28]
lea eax, [ebp - 0x400]
push eax
push dword [ebp + 0x5c]
call fcn.0043f62b
lea ecx, [ebp + 4]
call fcn.00439cfd
lea ecx, [ebp + 0x14]
call fcn.0040103b
mov esi, dword [ebp + 0x68]
jmp 0x420c52
push 2
lea eax, [ebp + 0x7c]
push eax
push 0x4b2ab8
call fcn.00439d66
add esp, 0xc
test eax, eax
je 0x4200f9
mov byte [ebp + 0x73], 2
or dword [ebp + 0xc], 0xffffffff
xor eax, eax
mov dword [ebp - 0xa40], 0x348
mov ecx, 0xd1
lea edi, [ebp - 0xa3c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x7c]
mov dword [ebp - 0x30], eax
cmp word [eax], 0x3d
mov dword [ebp + 0x44], esi
jne 0x42017c
inc eax
inc eax
mov dword [ebp + 0x7c], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0044b4a1
lea eax, [ebp + 0x7c]
push eax
call fcn.00405444
add esp, 0xc
cmp dword [ebp + 0xc], esi
jge 0x420155
mov esi, 0x80070057
jmp 0x420c52
push esi
lea eax, [ebp - 0xa40]
push eax
push dword [ebp + 0xc]
push esi
call dword [sym.imp.USER32.dll_EnumDisplayDevicesW]
test eax, eax
jne 0x420173
xor esi, esi
inc esi
jmp 0x420c52
lea eax, [ebp - 0xa3c]
mov dword [ebp + 0x44], eax
cmp byte [ebp + 0x73], 0
je 0x420195
mov ecx, dword [ebp + 0x28]
push esi
push 0x2c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x7c]
push eax
call fcn.0043525c
push dword [ebp + 0x7c]
call dword [sym.imp.USER32.dll_CharUpperW]
or edi, 0xffffffff
push 0x328
lea ecx, [ebp - 0x1c]
mov dword [ebp + 0x64], esi
mov dword [ebp + 0x4c], edi
mov byte [ebp + 0x62], 0
mov dword [ebp + 0x5c], esi
mov dword [ebp + 0x2c], 0x64
mov dword [ebp + 0x54], edi
call fcn.0043fc43
mov eax, dword [ebp + 0x7c]
push 0x53
push eax
mov dword [ebp + 0x48], esi
mov dword [ebp + 0x6c], esi
mov dword [ebp + 0x68], eax
call fcn.00414ef9
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp + 0x6c], eax
je 0x42020f
add dword [ebp + 0x6c], 2
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp + 0x6c]
push eax
mov dword [ebp + 0x4c], edi
call fcn.0044b4a1
cmp dword [ebp + 0x4c], edi
pop ecx
pop ecx
je 0x420204
mov dword [ebp + 0x64], 0x400
mov eax, dword [ebp + 0x6c]
cmp eax, dword [ebp + 0x68]
jbe 0x42020f
mov dword [ebp + 0x68], eax
push 0x50
push dword [ebp + 0x7c]
call fcn.00414ef9
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp + 0x6c], eax
mov edi, 0x84
je 0x42023d
cmp dword [ebp + 0x44], esi
je 0x42023d
cmp dword [ebp + 0x4c], edi
jne 0x42023d
or byte [ebp + 0x65], 1
cmp eax, dword [ebp + 0x68]
jbe 0x42023d
mov dword [ebp + 0x68], eax
push 0x40
push dword [ebp + 0x7c]
call fcn.00414ef9
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp + 0x6c], eax
je 0x420319
cmp dword [ebp + 0x4c], edi
je 0x420262
cmp dword [ebp + 0x4c], esi
jg 0x420319
or byte [ebp + 0x65], 2
add dword [ebp + 0x6c], 2
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp + 0x6c]
mov edi, 0x80000000
push eax
mov dword [ebp + 0x24], edi
mov dword [ebp - 0x10], edi
call fcn.0044b4a1
cmp eax, 1
pop ecx
pop ecx
jl 0x42030e
mov dword [ebp + 0x30], 0x328
add dword [ebp + 0x6c], 2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x6c]
push eax
call fcn.0044b4a1
mov eax, dword [ebp + 0x2c]
cmp dword [ebp + 0x5c], eax
pop ecx
pop ecx
jg 0x4202cb
add dword [ebp + 0x30], 0x320
push dword [ebp + 0x30]
add dword [ebp + 0x2c], 0x64
lea ecx, [ebp - 0x1c]
call fcn.0043fc68
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0x48], eax
mov ecx, dword [ebp + 0x5c]
mov eax, dword [ebp + 0x48]
inc dword [ebp + 0x5c]
or byte [ebp + 0x65], 1
lea eax, [eax + ecx*8]
mov ecx, dword [ebp + 0x24]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 4], ecx
mov eax, dword [ebp + 0x6c]
cmp word [eax], 0x3a
jne 0x420311
inc eax
inc eax
mov dword [ebp + 0x6c], eax
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp + 0x6c]
push eax
mov dword [ebp + 0x24], edi
mov dword [ebp - 0x10], edi
call fcn.0044b4a1
cmp eax, 1
pop ecx
pop ecx
jge 0x420294
mov eax, dword [ebp + 0x6c]
cmp eax, dword [ebp + 0x68]
jbe 0x420319
mov dword [ebp + 0x68], eax
mov eax, dword [ebp + 0x68]
mov dword [ebp + 0x7c], eax
cmp word [eax], si
jne 0x420334
cmp dword [ebp + 0x64], esi
jne 0x420334
mov byte [ebp + 0x62], 0x40
mov dword [ebp + 0x64], 0x40
cmp byte [ebp + 0x73], 2
mov dword [ebp + 0x68], esi
je 0x420352
lea eax, [ebp - 0x2e8]
push eax
push 0xffffffffffffffff
push dword [ebp + 0x44]
call dword [sym.imp.USER32.dll_EnumDisplaySettingsW]
mov dword [ebp + 0x68], eax
xor eax, eax
cmp byte [ebp + 0x73], 1
push 0x37
pop ecx
lea esi, [ebp - 0x2e8]
lea edi, [ebp - 0x20c]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x14], eax
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x2c], eax
je 0x420415
cmp byte [ebp + 0x62], al
jne 0x420386
cmp byte [ebp + 0x73], al
je 0x420594
movzx eax, word [ebp + 0x20]
or eax, dword [ebp + 0x38]
push dword [ebp + 0x44]
or eax, dword [ebp + 0x34]
push eax
lea eax, [ebp - 0x14]
push 0x3e8
push eax
call fcn.00418b55
mov dword [ebp + 0x30], eax
mov eax, dword [ebp - 0x14]
add esp, 0x10
and dword [ebp + 0x40], 0
mov dword [ebp + 0x2c], eax
mov eax, dword [ebp + 0x30]
cmp dword [ebp + 0x40], eax
jge 0x42046b
mov ebx, dword [ebp + 0x40]
xor eax, eax
imul ebx, ebx, 0xdc
add ebx, dword [ebp + 0x2c]
push eax
push dword [ebp - 0x3c]
push eax
push dword [ebp - 0x44]
call fcn.0049a8f0
mov esi, dword [ebx + 0xac]
mov dword [ebp + 0x1c], eax
mov eax, dword [ebx + 0xb0]
mov dword [ebp + 0x18], esi
imul esi, eax
mov dword [ebp + 8], eax
xor eax, eax
cmp byte [ebp + 0x73], 2
mov dword [ebp + 0x20], edx
jne 0x4204d1
mov ecx, dword [ebp + 0x10]
cmp word [ecx], ax
je 0x420415
push 0x4b1ee0
lea ecx, [ebp + 0x10]
call fcn.0043fe06
xor ecx, ecx
cmp dword [ebp + 0x38], ecx
jne 0x420497
cmp dword [ebp + 0x34], ecx
je 0x420490
mov eax, str._d_t_d
push dword [ebx + 0x54]
push dword [ebx + 0xb8]
push dword [ebx + 0xa8]
push dword [ebx + 0xb0]
push dword [ebx + 0xac]
push eax
lea eax, [ebp - 0x6f8]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x6f8]
push eax
lea ecx, [ebp + 0x10]
call fcn.0043fe06
cmp byte [ebp + 0x73], 1
jne 0x42054a
cmp byte [ebp + 0x73], 0
jne 0x420552
xor eax, eax
ja 0x420552
jb 0x420488
cmp dword [ebp - 0x3c], eax
ja 0x420552
xor esi, esi
inc esi
jmp 0x420c42
mov eax, str._d_t_d_t_d_t_d
jmp 0x420426
cmp dword [ebp + 0x34], ecx
mov eax, str._d_t_d_d_d
jne 0x4204ab
mov eax, str._d_t_d_t_d_t_d_t_d
jmp 0x420426
push dword [ebx + 0x54]
lea eax, [ebp - 0x6f8]
push dword [ebx + 0xb0]
push dword [ebx + 0xac]
push str._d_t_d_t_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
jmp 0x420452
cmp edx, eax
ja 0x42054a
jb 0x4204dc
cmp dword [ebp + 0x1c], esi
ja 0x42054a
mov edi, dword [ebx + 0xb8]
mov ebx, dword [ebx + 0xa8]
push eax
push edi
push eax
push ebx
mov dword [ebp - 0x48], eax
call fcn.0049a8f0
xor ecx, ecx
push ecx
push esi
push edx
push eax
call fcn.0049a8f0
push dword [ebp - 0x20]
mov dword [ebp - 4], eax
push dword [ebp - 0x24]
mov esi, edx
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
call fcn.0049a8f0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push edx
push eax
call fcn.0049a8f0
cmp edx, esi
ja 0x42054a
jb 0x42052d
cmp eax, dword [ebp - 4]
jae 0x42054a
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], eax
inc dword [ebp + 0x40]
jmp 0x4203b2
cmp byte [ebp + 0x73], 0
mov edi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x160], edi
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x154], esi
jne 0x420732
push esi
push ecx
push eax
push edi
push str.autodisp:_w_d_h_d_r_d_f_d_r_n
push dword [ebp + 0x28]
call fcn.0041009a
add esp, 0x18
cmp dword [ebp + 0x4c], 0xffffffff
je 0x4205ae
mov eax, dword [0x4c8f54]
test eax, eax
je 0x4205ae
push dword [ebp + 0x4c]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
call eax
mov edi, dword [sym.imp.SHLWAPI.dll_StrChrW]
push 0x57
push dword [ebp + 0x7c]
call edi
xor esi, esi
cmp eax, esi
push 2
mov dword [ebp + 0x6c], eax
pop ebx
je 0x4205ee
or dword [ebp + 0x54], 0xffffffff
add dword [ebp + 0x6c], ebx
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp + 0x6c]
push eax
call fcn.0047c444
mov eax, dword [ebp + 0x54]
cmp eax, esi
pop ecx
pop ecx
jle 0x4205ee
or dword [ebp + 0x64], 1
mov dword [ebp - 0x160], eax
push 0x48
push dword [ebp + 0x7c]
call edi
cmp eax, esi
mov dword [ebp + 0x6c], eax
je 0x420622
or dword [ebp + 0x54], 0xffffffff
add dword [ebp + 0x6c], ebx
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp + 0x6c]
push eax
call fcn.0047c444
mov eax, dword [ebp + 0x54]
cmp eax, esi
pop ecx
pop ecx
jle 0x420622
or dword [ebp + 0x64], ebx
mov dword [ebp - 0x15c], eax
push 0x42
push dword [ebp + 0x7c]
call edi
cmp eax, esi
mov dword [ebp + 0x6c], eax
je 0x420657
or dword [ebp + 0x54], 0xffffffff
add dword [ebp + 0x6c], ebx
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp + 0x6c]
push eax
call fcn.0047c444
mov eax, dword [ebp + 0x54]
cmp eax, esi
pop ecx
pop ecx
jle 0x420657
or dword [ebp + 0x64], 4
mov dword [ebp - 0x164], eax
push 0x46
push dword [ebp + 0x7c]
call edi
cmp eax, esi
mov dword [ebp + 0x6c], eax
je 0x42068d
or dword [ebp + 0x54], 0xffffffff
add dword [ebp + 0x6c], ebx
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp + 0x6c]
push eax
call fcn.0047c444
mov eax, dword [ebp + 0x54]
cmp eax, 1
pop ecx
pop ecx
jle 0x42068d
or dword [ebp + 0x64], 8
mov dword [ebp - 0x154], eax
push 0x54
push dword [ebp + 0x7c]
call edi
cmp eax, esi
mov dword [ebp + 0x6c], eax
je 0x4206b7
cmp dword [ebp + 0x64], esi
je 0x4206b7
push esi
add eax, ebx
push esi
push eax
mov dword [ebp + 0x6c], eax
call fcn.0040e92a
pop ecx
mov ecx, dword [ebp + 0x28]
push eax
call fcn.00414c28
push 0x4f
push dword [ebp + 0x7c]
call edi
cmp eax, esi
mov dword [ebp + 0x6c], eax
je 0x4206ec
or dword [ebp + 0x54], 0xffffffff
add dword [ebp + 0x6c], ebx
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp + 0x6c]
push eax
call fcn.0047c444
mov eax, dword [ebp + 0x54]
cmp eax, esi
pop ecx
pop ecx
jl 0x4206ec
or dword [ebp + 0x64], 0x10
mov dword [ebp - 0x1b8], eax
cmp dword [ebp + 0x64], esi
je 0x420c42
cmp byte [ebp + 0x64], 0
mov ebx, dword [sym.imp.USER32.dll_ChangeDisplaySettingsExW]
mov dword [ebp + 0x18], esi
mov dword [ebp + 8], esi
mov dword [ebp + 0x2c], esi
je 0x420a40
mov eax, dword [ebp - 0x160]
cmp eax, dword [ebp - 0x23c]
jne 0x420747
mov eax, dword [ebp - 0x15c]
cmp eax, dword [ebp - 0x238]
jne 0x420747
xor edx, edx
inc edx
mov dword [ebp + 0x20], edx
jmp 0x42074d
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0x28]
push dword [ebp - 0x18]
call fcn.0043f62b
xor esi, esi
jmp 0x420c42
xor edx, edx
mov dword [ebp + 0x20], esi
inc edx
mov ecx, dword [ebp - 0x164]
xor eax, eax
cmp ecx, dword [ebp - 0x240]
sete al
mov dword [ebp + 0x30], eax
mov eax, dword [ebp + 0x64]
mov dword [ebp + 0x38], eax
and dword [ebp + 0x38], 8
je 0x420782
mov ecx, dword [ebp - 0x154]
cmp ecx, edx
jb 0x420782
cmp ecx, dword [ebp - 0x230]
mov dword [ebp + 0x34], esi
jne 0x420785
mov dword [ebp + 0x34], edx
push 0x37
pop ecx
lea esi, [ebp - 0x20c]
lea edi, [ebp - 0x130]
rep movsd dword es:[edi], dword [esi]
push 0x37
pop ecx
lea esi, [ebp - 0x2e8]
lea edi, [ebp - 0x5b8]
rep movsd dword es:[edi], dword [esi]
mov edx, eax
mov esi, eax
mov ecx, eax
and edx, 1
and esi, 2
and ecx, 4
and eax, 0x10
shl edx, 0x13
shl esi, 0x13
shl ecx, 0x10
shl eax, 3
cmp dword [ebp + 0x38], 0
je 0x4207d8
cmp dword [ebp - 0x78], 1
jbe 0x4207d8
mov edi, 0x400000
jmp 0x4207da
xor edi, edi
or edi, eax
or edi, ecx
or edi, esi
or edi, edx
mov dword [ebp - 0xe8], edi
jne 0x4207f4
mov dword [ebp - 0xe8], 0x1c0000
xor edi, edi
cmp eax, edi
je 0x420855
mov eax, dword [ebp - 0x1b8]
mov ecx, dword [ebp - 0x564]
and eax, 1
and ecx, 1
cmp eax, ecx
je 0x420834
cmp edx, edi
jne 0x420834
cmp esi, edi
jne 0x420834
mov ecx, dword [ebp - 0x508]
or byte [ebp - 0xe6], 0x18
mov dword [ebp - 0x84], ecx
mov ecx, dword [ebp - 0x50c]
mov dword [ebp - 0x80], ecx
cmp eax, edi
je 0x420855
cmp edx, edi
je 0x420855
cmp esi, edi
je 0x420855
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x34]
push edi
or eax, 1
push eax
mov dword [ebp + 0x40], eax
push edi
lea eax, [ebp - 0x130]
push eax
push dword [ebp + 0x44]
call ebx
cmp eax, edi
je 0x420a04
cmp dword [ebp + 0x20], edi
je 0x42087f
cmp dword [ebp + 0x30], edi
jne 0x4208eb
mov eax, dword [ebp - 0x160]
push 0x37
pop ecx
lea esi, [ebp - 0x2e8]
lea edi, [ebp - 0x130]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x15c]
push 0
push dword [ebp + 0x40]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0x88], eax
push 0
lea eax, [ebp - 0x130]
push eax
push dword [ebp + 0x44]
mov dword [ebp - 0xe8], 0x1c0000
call ebx
test eax, eax
mov dword [ebp + 0x2c], eax
jne 0x4208eb
push 0x37
pop ecx
lea esi, [ebp - 0x130]
lea edi, [ebp - 0x2e8]
rep movsd dword es:[edi], dword [esi]
jmp 0x4209b7
cmp dword [ebp + 0x20], 0
jne 0x42095a
mov eax, dword [ebp - 0x160]
push 0x37
pop ecx
push 0
push dword [ebp + 0x40]
lea esi, [ebp - 0x2e8]
lea edi, [ebp - 0x130]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x80], eax
push 0
lea eax, [ebp - 0x130]
push eax
push dword [ebp + 0x44]
mov dword [ebp - 0xe8], 0x180000
call ebx
test eax, eax
mov dword [ebp + 0x2c], eax
jne 0x42095a
cmp dword [ebp + 0x30], eax
push 0x37
pop ecx
lea esi, [ebp - 0x130]
lea edi, [ebp - 0x2e8]
rep movsd dword es:[edi], dword [esi]
jne 0x4209b7
cmp dword [ebp + 0x34], eax
je 0x420a04
cmp dword [ebp + 0x30], 0
jne 0x4209b7
mov eax, dword [ebp - 0x164]
push 0x37
pop ecx
push 0
push dword [ebp + 0x40]
lea esi, [ebp - 0x2e8]
lea edi, [ebp - 0x130]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x88], eax
push 0
lea eax, [ebp - 0x130]
push eax
push dword [ebp + 0x44]
mov dword [ebp - 0xe8], 0x40000
call ebx
test eax, eax
mov dword [ebp + 0x18], eax
jne 0x4209b7
cmp dword [ebp + 0x34], eax
push 0x37
pop ecx
lea esi, [ebp - 0x130]
lea edi, [ebp - 0x2e8]
rep movsd dword es:[edi], dword [esi]
je 0x420a04
cmp dword [ebp + 0x34], 0
jne 0x420a0a
cmp dword [ebp - 0x154], 1
jbe 0x420a0a
mov eax, dword [ebp - 0x154]
push 0x37
pop ecx
push 0
push dword [ebp + 0x40]
lea esi, [ebp - 0x2e8]
lea edi, [ebp - 0x130]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x78], eax
push 0
lea eax, [ebp - 0x130]
push eax
push dword [ebp + 0x44]
mov dword [ebp - 0xe8], 0x400000
call ebx
test eax, eax
mov dword [ebp + 8], eax
jne 0x420a0a
mov byte [ebp + 0x53], 1
jmp 0x420a3e
xor eax, eax
inc eax
cmp eax, dword [ebp - 0x230]
sbb eax, eax
and eax, 0x400000
or eax, 0x1c0000
cmp dword [ebp + 0x68], 0
mov dword [ebp - 0x2a0], eax
je 0x420a3e
push 0
push dword [ebp + 0x40]
lea eax, [ebp - 0x2e8]
push 0
push eax
push dword [ebp + 0x44]
call ebx
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [ebp + 0x20], eax
mov eax, dword [ebp + 0x18]
cmp eax, esi
je 0x420a50
mov dword [ebp + 0x20], eax
mov eax, dword [ebp + 0x2c]
cmp eax, esi
je 0x420a5a
mov dword [ebp + 0x20], eax
push 0xf
pop ecx
xor eax, eax
mov word [ebp - 0x3c4], si
lea edi, [ebp - 0x3c2]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x27
pop ecx
xor eax, eax
push 0xf
lea edi, [ebp - 0x384]
rep stosd dword es:[edi], eax
pop ecx
mov word [ebp - 0x4dc], si
lea edi, [ebp - 0x4da]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x27
xor eax, eax
test byte [ebp + 0x65], 0xf
pop ecx
lea edi, [ebp - 0x49c]
rep stosd dword es:[edi], eax
je 0x420bed
mov edx, 0x84
cmp dword [ebp + 0x4c], edx
je 0x420abb
cmp dword [ebp + 0x5c], esi
jle 0x420bed
cmp dword [ebp + 0x5c], esi
push 0x20
pop ecx
mov word [ebp - 0x380], 0xdc
mov dword [ebp - 0x37c], ecx
mov dword [ebp - 0x374], esi
mov dword [ebp - 0x378], esi
jle 0x420b01
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x5c], eax
jle 0x420b01
cmp eax, esi
jl 0x420b01
mov edi, dword [ebp + 0x48]
lea eax, [edi + eax*8]
mov edi, dword [eax]
mov dword [ebp - 0x378], edi
mov eax, dword [eax + 4]
mov dword [ebp - 0x374], eax
test byte [ebp + 0x65], 1
mov dword [ebp - 0x37c], ecx
je 0x420b22
push esi
push 0x11
push esi
lea eax, [ebp - 0x3c4]
push eax
push dword [ebp + 0x44]
call ebx
mov edx, 0x84
cmp dword [ebp + 0x4c], edx
jne 0x420b33
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x378], eax
mov eax, dword [ebp + 0x5c]
cmp eax, esi
mov dword [ebp + 0x38], 6
jle 0x420b44
mov dword [ebp + 0x38], eax
cmp dword [ebp + 0x4c], edx
je 0x420b51
cmp eax, esi
jle 0x420be2
xor edi, edi
cmp dword [ebp + 0x38], esi
jle 0x420be2
push esi
lea eax, [ebp - 0xa40]
push eax
push edi
push esi
call dword [sym.imp.USER32.dll_EnumDisplayDevicesW]
test eax, eax
je 0x420bd8
cmp dword [ebp + 0x5c], esi
jg 0x420b7c
cmp edi, dword [ebp + 0xc]
je 0x420bd8
jmp 0x420b97
cmp dword [ebp + 0x5c], edi
jle 0x420be2
mov eax, dword [ebp + 0x48]
mov ecx, dword [eax + edi*8]
mov dword [ebp - 0x378], ecx
mov eax, dword [eax + edi*8 + 4]
mov dword [ebp - 0x374], eax
push esi
push 9
push esi
lea eax, [ebp - 0x3c4]
push eax
lea eax, [ebp - 0xa3c]
push eax
call ebx
cmp dword [ebp + 0x4c], 0x84
jne 0x420bd8
lea eax, [ebp - 0x4dc]
push eax
push 0xffffffffffffffff
push dword [ebp + 0x44]
mov dword [ebp - 0x430], esi
call dword [sym.imp.USER32.dll_EnumDisplaySettingsW]
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x378], eax
inc edi
cmp edi, dword [ebp + 0x38]
jl 0x420b5c
push esi
push esi
push esi
push esi
push esi
call ebx
mov byte [ebp + 0x53], 2
cmp byte [ebp + 0x53], 0
jle 0x420c3f
push 0x4c8bd0
mov eax, 0x10000
push eax
push esi
push 0x41066b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 1
mov dword [ebp - 4], edi
mov dword [ebp], esi
je 0x420c38
mov ecx, dword [ebp + 0x28]
lea eax, [ebp - 0xc]
push eax
push 0x2328
push 0x3a98
call fcn.00414c28
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp + 0x20]
lea ecx, [ebp - 0x14]
call fcn.00439cfd
lea ecx, [ebp - 0x1c]
call fcn.00439cfd
lea ecx, [ebp + 0x10]
call fcn.00439cfd
lea ecx, [ebp - 0x18]
call fcn.00439cfd
pop edi
mov eax, esi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4