Function at 0x40cb78
Capabilities:
Check os version
Copy file
Create process on windows
Get common file path
Get file size
Get program files directory
Query or enumerate registry value
Read file on windows
Set current directory
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0xf90
mov eax, dword [0x44c750]
push ebx
push esi
push edi
mov ebx, 0x104
push ebx
mov esi, 0x547c50
push esi
xor edi, edi
push edi
mov dword [ebp + 0x64], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push esi
call fcn.0042b230
cmp eax, edi
pop ecx
pop ecx
jne 0x40cbca
push edi
push str.Fatal_Error
push str.Invalid_access_rights_
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
jmp 0x40d108
push esi
mov byte [eax + 1], 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0xa64]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0xa64]
push 0x43da24
push eax
call fcn.0041d066
test al, al
pop ecx
pop ecx
je 0x40cc12
lea eax, [ebp - 0xa64]
push eax
call fcn.0042a590
pop ecx
lea ecx, [ebp - 0xa64]
dec ecx
mov byte [eax + ecx], 0
push edi
call fcn.0042b793
push eax
lea eax, [ebp - 0xa64]
push eax
push str._s.zylomisrtemp_d_
push 0x547640
call dword [sym.imp.USER32.dll_wsprintfA]
push str.UnInstall.log
mov esi, 0x547850
push esi
call fcn.0042a980
add esp, 0x1c
call fcn.0041e54d
cmp eax, 1
mov dword [ebp - 0xe68], eax
jle 0x40ce5f
lea eax, [ebp - 0x758]
push eax
push 1
call fcn.0041e553
lea eax, [ebp - 0x758]
push str.__uninstall
push eax
call fcn.0042b1a0
add esp, 0x10
test eax, eax
jne 0x40cca0
cmp dword [ebp - 0xe68], 2
mov byte [0x548179], 1
jle 0x40ce6c
push esi
push 2
call fcn.0041e553
pop ecx
pop ecx
jmp 0x40ce5f
lea eax, [ebp - 0x758]
push str.__uninstallfromtemp
push eax
call fcn.0042b1a0
test eax, eax
pop ecx
pop ecx
jne 0x40ccee
cmp dword [ebp - 0xe68], 3
mov byte [0x548179], 1
mov byte [0x54817a], 1
jle 0x40ce6c
push 0x547d58
push 2
call fcn.0041e553
push esi
push 3
call fcn.0041e553
add esp, 0x10
jmp 0x40ce5f
lea eax, [ebp - 0x758]
push str.__myzylom
push eax
call fcn.0042b1a0
test eax, eax
pop ecx
pop ecx
jne 0x40cd5f
cmp dword [ebp - 0xe68], 2
mov byte [0x54817b], 1
jle 0x40ce5f
lea eax, [ebp - 0x758]
push eax
push 2
call fcn.0041e553
lea eax, [ebp - 0x758]
push str.__uninstall
push eax
call fcn.0042b1a0
add esp, 0x10
test eax, eax
jne 0x40ce5f
cmp dword [ebp - 0xe68], 3
mov byte [0x548179], 1
jle 0x40ce6c
push esi
push 3
jmp 0x40cc94
lea eax, [ebp - 0x758]
push str.__buy
push eax
call fcn.0042b1a0
test eax, eax
pop ecx
pop ecx
jne 0x40cd82
mov byte [0x54817c], 1
jmp 0x40ce5f
lea eax, [ebp - 0x758]
push str.__activate
push eax
call fcn.0042b1a0
test eax, eax
pop ecx
pop ecx
jne 0x40ce41
cmp dword [ebp - 0xe68], 2
mov byte [0x54817d], 1
jle 0x40ce5f
push 2
pop eax
lea ecx, [ebp - 0x758]
push ecx
mov dword [ebp - 0xe68], eax
push eax
jmp 0x40ce34
lea eax, [ebp - 0x758]
push eax
call fcn.0042a590
test eax, eax
pop ecx
jbe 0x40ce21
mov ecx, 0x548184
call fcn.004116f8
test eax, eax
jbe 0x40cdfe
push 0x43d7bc
lea eax, [ebp + 0x50]
push eax
mov ecx, 0x548184
call fcn.00420a2b
lea ecx, [ebp + 0x50]
call fcn.0042091f
lea eax, [ebp - 0x758]
push eax
lea eax, [ebp - 0xe88]
push eax
mov ecx, 0x548184
call fcn.00420a2b
lea ecx, [ebp - 0xe88]
call fcn.0042091f
inc dword [ebp - 0xe68]
lea eax, [ebp - 0x758]
push eax
push dword [ebp - 0xe68]
call fcn.0041e553
test al, al
pop ecx
pop ecx
jne 0x40cdc4
jmp 0x40ce5f
lea eax, [ebp - 0x758]
push str.__buy_coupon
push eax
call fcn.0042b1a0
test eax, eax
pop ecx
pop ecx
jne 0x40ce5f
mov byte [0x54817e], 1
cmp byte [0x548179], 0
je 0x40d095
push ebx
lea eax, [ebp - 0x358]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x960]
mov dword [ebp - 0xe74], eax
lea eax, [ebp - 0xe74]
push eax
lea eax, [ebp - 0x960]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [ebp - 0x960]
push eax
push esi
call fcn.0042a980
pop ecx
pop ecx
lea eax, [ebp - 0xe74]
push eax
lea eax, [ebp - 0x960]
push eax
push ebx
lea eax, [ebp - 0x358]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [ebp - 0x960]
push eax
lea eax, [ebp - 0x358]
push eax
call fcn.0042a980
cmp byte [0x54817a], 0
pop ecx
pop ecx
jne 0x40cfeb
lea eax, [ebp - 0x85c]
push 0x547640
push eax
call fcn.0042a980
lea eax, [ebp - 0x85c]
push str.ZylomGameITemp.exe
push eax
call fcn.0042a990
lea eax, [ebp - 0x85c]
push 1
push eax
call fcn.00413511
add esp, 0x18
push edi
lea eax, [ebp - 0x85c]
push eax
lea eax, [ebp - 0x358]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40cfe5
lea eax, [ebp - 0x85c]
push eax
lea eax, [ebp - 0x6c8]
push eax
call fcn.0042a980
lea eax, [ebp - 0x6c8]
push str.___uninstallfromtemp__
push eax
call fcn.0042a990
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x6c8]
push eax
call fcn.0042a990
lea eax, [ebp - 0x6c8]
push 0x43e6f0
push eax
call fcn.0042a990
lea eax, [ebp - 0x6c8]
push esi
push eax
call fcn.0042a990
lea eax, [ebp - 0x6c8]
push 0x43d8ec
push eax
call fcn.0042a990
push 0x44
pop esi
push esi
lea eax, [ebp - 0xf04]
push edi
push eax
call fcn.0042a000
push 0x10
lea eax, [ebp + 0x54]
push edi
push eax
mov dword [ebp - 0xf04], esi
call fcn.0042a000
add esp, 0x48
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp - 0xf04]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x6c8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push edi
call fcn.004031bd
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push esi
mov byte [ebp - 0xe69], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0xe70], eax
je 0x40d08d
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x40d078
lea eax, [esi + 1]
push eax
mov dword [ebp - 0xe68], edi
call fcn.004281b4
pop ecx
push edi
mov ebx, eax
lea eax, [ebp - 0xe68]
push eax
push esi
push ebx
push dword [ebp - 0xe70]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0xe68]
test eax, eax
setne al
test al, al
mov byte [ebx + ecx], 0
je 0x40d078
cmp dword [ebp - 0xe68], esi
jne 0x40d078
push ebx
mov ecx, 0x5482ec
call fcn.0041f9ec
mov byte [ebp - 0xe69], 1
push dword [ebp - 0xe70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0xe69], 0
jne 0x40d095
xor eax, eax
inc eax
jmp 0x40d9d0
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
xor ebx, ebx
inc ebx
cmp byte [0x548179], 0
mov dword [ebp - 0xe68], edi
jne 0x40d0d2
lea eax, [ebp - 0xe68]
push eax
call fcn.00401e1c
test eax, eax
pop ecx
ja 0x40d0d2
push 0x34
push str.Warning
push str.Warning__nThe_setup_file_seems_incomplete._nAre_you_sure_you_want_to_continue_to_install_
push edi
call esi
cmp eax, 7
je 0x40d107
lea eax, [ebp - 0xe68]
push eax
call fcn.00401e1c
pop ecx
push dword [ebp - 0xe68]
mov ecx, 0x5481e0
push edi
push str.34324
call fcn.004102c7
test al, al
jne 0x40d10d
push edi
push str.Fatal_Error
push str.Unable_to_perform_the_installation._nThe_setup_file_has_been_altered_or_is_incomplete._nPlease_download_the_file_again.
push edi
call esi
push ebx
call fcn.0042b59d
push dword [0x548210]
lea esi, [ebp - 0x254]
mov eax, esi
push eax
call fcn.0042a980
mov eax, esi
push eax
call fcn.0042a590
add esp, 0xc
jmp 0x40d13f
mov cl, byte [ebp + eax - 0x254]
cmp cl, 0x5c
je 0x40d146
cmp cl, 0x2f
je 0x40d146
dec eax
cmp eax, edi
jg 0x40d12e
jmp 0x40d14d
lea esi, [ebp + eax - 0x253]
push esi
call fcn.00402ef3
push dword [0x54821c]
push esi
call fcn.0042a980
lea esi, [ebp - 0x254]
mov eax, esi
push eax
call fcn.0042a590
add esp, 0x10
jmp 0x40d183
mov cl, byte [ebp + eax - 0x254]
cmp cl, 0x5c
je 0x40d18a
cmp cl, 0x2f
je 0x40d18a
dec eax
cmp eax, edi
jg 0x40d172
jmp 0x40d191
lea esi, [ebp + eax - 0x253]
push esi
call fcn.00402ef3
pop ecx
lea ecx, [ebp - 0xf28]
call fcn.0041d890
lea ecx, [ebp - 0xf28]
call fcn.0041db0c
lea ecx, [ebp - 0xf28]
call fcn.00411720
push dword [0x548218]
test eax, eax
setg al
mov byte [0x54815d], al
call fcn.0042b411
push eax
call fcn.00412c90
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x40d238
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x40]
cmp eax, ebx
jne 0x40d1f9
cmp byte [0x54815d], 0
jne 0x40d1f9
mov byte [0x54815d], 1
jmp 0x40d231
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x40]
test eax, eax
jne 0x40d20f
cmp byte [0x54815d], al
je 0x40d20f
push ebx
jmp 0x40d223
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x40]
test eax, eax
jne 0x40d231
cmp byte [0x54815d], al
jne 0x40d231
push edi
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x44]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x38]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax]
lea eax, [ebp - 0x150]
push 0x43da11
push eax
call fcn.0042a980
pop ecx
pop ecx
push ebx
push 0x26
lea eax, [ebp - 0x150]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
cmp eax, ebx
je 0x40d2e8
lea eax, [ebp - 0xe70]
push eax
push 0x20019
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xe70], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d2e8
push 0x209
mov dword [ebp - 0xe74], 0x208
call fcn.004281b4
pop ecx
mov esi, eax
lea eax, [ebp - 0xe74]
push eax
push esi
lea eax, [ebp - 0xe68]
push eax
push edi
push str.ProgramFilesDir
mov byte [esi], 0
push dword [ebp - 0xe70]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d2e1
cmp dword [ebp - 0xe68], ebx
jne 0x40d2e1
lea eax, [ebp - 0x150]
push esi
push eax
call fcn.0042a980
pop ecx
pop ecx
push esi
call fcn.0042b2c6
pop ecx
lea eax, [ebp - 0x150]
push eax
call fcn.0042a590
test eax, eax
pop ecx
jne 0x40d30c
lea eax, [ebp - 0x150]
push str.C:Program_Files_
push eax
call fcn.0042a980
pop ecx
pop ecx
lea eax, [ebp - 0x150]
push eax
mov esi, 0x547748
push esi
call fcn.0042a980
mov ebx, 0x43da24
lea eax, [ebp - 0x150]
push ebx
push eax
call fcn.0041d066
add esp, 0x10
test al, al
jne 0x40d346
lea eax, [ebp - 0x150]
push ebx
push eax
call fcn.0042a990
pop ecx
pop ecx
lea eax, [ebp - 0x150]
push str.Zylom_Games_
push eax
call fcn.0042a990
lea eax, [ebp - 0x150]
push edi
push eax
call fcn.0042b74d
add esp, 0x10
test eax, eax
jne 0x40d386
lea eax, [ebp - 0x150]
push eax
call fcn.00413597
pop ecx
test al, al
lea eax, [ebp - 0x150]
push eax
push esi
je 0x40d3ad
jmp 0x40d399
push esi
call fcn.00413597
test al, al
pop ecx
je 0x40d3a0
lea eax, [ebp - 0x150]
push eax
push esi
call fcn.0042a980
jmp 0x40d3b9
call fcn.0042b6c8
lea eax, [ebp - 0x150]
push eax
push esi
call fcn.0042a980
mov byte [0x54815b], 1
pop ecx
pop ecx
call fcn.00413e74
test al, al
je 0x40d3d4
call fcn.00413dd1
test al, al
jne 0x40d3d4
mov byte [0x54815b], 1
cmp byte [0x54815b], 0
je 0x40d481
call fcn.00413e74
test al, al
push 1
lea eax, [ebp - 0x150]
je 0x40d3f6
push 0x1c
jmp 0x40d3f8
push 0x1a
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x358]
push eax
call fcn.0042a980
lea eax, [ebp - 0x150]
push ebx
push eax
call fcn.0041d066
add esp, 0x10
test al, al
jne 0x40d436
lea eax, [ebp - 0x150]
push ebx
push eax
call fcn.0042a990
pop ecx
pop ecx
lea eax, [ebp - 0x150]
push str.Zylom_Games_
push eax
call fcn.0042a990
lea eax, [ebp - 0x150]
push edi
push eax
call fcn.0042b74d
add esp, 0x10
test eax, eax
lea eax, [ebp - 0x150]
je 0x40d467
lea eax, [ebp - 0x358]
push eax
call fcn.00413597
test al, al
pop ecx
je 0x40d481
lea eax, [ebp - 0x150]
push eax
push esi
call fcn.0042a980
pop ecx
pop ecx
push ebx
push esi
call fcn.0041d066
test al, al
pop ecx
pop ecx
jne 0x40d497
push ebx
push esi
call fcn.0042a990
pop ecx
pop ecx
mov esi, 0x9c
push esi
lea eax, [ebp - 0x4c]
push edi
push eax
call fcn.0042a000
add esp, 0xc
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x40d4d4
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], 0x94
call esi
test eax, eax
jne 0x40d4d4
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
cmp dword [ebp - 0x48], 3
push 4
pop ebx
mov esi, 0x5482d8
jne 0x40d50a
cmp dword [ebp - 0x44], 0x33
jne 0x40d674
push str.Windows_NT_3.51
lea eax, [ebp - 0xe88]
push eax
mov ecx, esi
call fcn.004209aa
lea ecx, [ebp - 0xe88]
call fcn.0042091f
cmp dword [ebp - 0x48], ebx
jne 0x40d5c2
cmp dword [ebp - 0x44], edi
jne 0x40d571
push str.Windows_95
lea eax, [ebp - 0xe88]
push eax
mov ecx, esi
call fcn.004209aa
lea ecx, [ebp - 0xe88]
call fcn.0042091f
cmp dword [ebp - 0x48], ebx
jne 0x40d5c2
cmp dword [ebp - 0x44], edi
jne 0x40d571
cmp dword [ebp - 0x3c], 2
jne 0x40d674
push str.Windows_NT_4.0
lea eax, [ebp - 0xe88]
push eax
mov ecx, esi
call fcn.004209aa
lea ecx, [ebp - 0xe88]
call fcn.0042091f
cmp dword [ebp - 0x48], ebx
jne 0x40d5c2
cmp dword [ebp - 0x44], 0xa
jne 0x40d59a
push str.Windows_98
lea eax, [ebp - 0xe88]
push eax
mov ecx, esi
call fcn.004209aa
lea ecx, [ebp - 0xe88]
call fcn.0042091f
cmp dword [ebp - 0x48], ebx
jne 0x40d5c2
cmp dword [ebp - 0x44], 0x5a
jne 0x40d674
push str.Windows_Me
lea eax, [ebp - 0xe88]
push eax
mov ecx, esi
call fcn.004209aa
lea ecx, [ebp - 0xe88]
call fcn.0042091f
push 5
pop ebx
cmp dword [ebp - 0x48], ebx
jne 0x40d63f
cmp dword [ebp - 0x44], edi
jne 0x40d5f2
push str.Windows_2000
lea eax, [ebp - 0xe88]
push eax
mov ecx, esi
call fcn.004209aa
lea ecx, [ebp - 0xe88]
call fcn.0042091f
cmp dword [ebp - 0x48], ebx
jne 0x40d63f
cmp dword [ebp - 0x44], 1
jne 0x40d61b
push str.Windows_XP
lea eax, [ebp - 0xe88]
push eax
mov ecx, esi
call fcn.004209aa
lea ecx, [ebp - 0xe88]
call fcn.0042091f
cmp dword [ebp - 0x48], ebx
jne 0x40d63f
cmp dword [ebp - 0x44], 2
jne 0x40d668
push str.Windows_Server_2003
lea eax, [ebp - 0xe88]
push eax
mov ecx, esi
call fcn.004209aa
lea ecx, [ebp - 0xe88]
call fcn.0042091f
cmp dword [ebp - 0x48], 6
jne 0x40d663
push str.Windows_Vista
lea eax, [ebp - 0xe88]
push eax
mov ecx, esi
call fcn.004209aa
lea ecx, [ebp - 0xe88]
call fcn.0042091f
cmp dword [ebp - 0x48], ebx
jne 0x40d674
cmp dword [ebp - 0x44], edi
mov byte [0x54815a], 1
je 0x40d67b
mov byte [0x54815a], 0
cmp dword [ebp - 0x48], 5
mov ebx, dword [ebp + 0x70]
sbb al, al
inc al
mov byte [0x548159], al
mov al, byte [0x5481ea]
mov byte [0x44b0a0], al
lea eax, [ebp + 0x54]
push eax
push ebx
push edi
mov ecx, 0x5481b0
call fcn.0040191b
call fcn.0040ca3d
lea eax, [ebp - 0xe64]
push 0x547640
push eax
call fcn.0042a980
push dword [0x548270]
lea eax, [ebp - 0xe64]
push eax
call fcn.0042a990
add esp, 0x10
lea eax, [ebp - 0xe64]
mov esi, 0x548198
push eax
mov ecx, esi
call fcn.00414fd6
push dword [0x548274]
mov ecx, esi
call fcn.00415017
lea eax, [ebp - 0xe64]
push 0x547640
push eax
call fcn.0042a980
push dword [0x548278]
lea eax, [ebp - 0xe64]
push eax
call fcn.0042a990
add esp, 0x10
lea eax, [ebp - 0xe64]
push eax
mov ecx, esi
call fcn.00415054
push 0x30
pop esi
push esi
lea eax, [ebp - 0xec0]
push edi
push eax
mov dword [ebp + 0x70], edi
call fcn.0042a000
add esp, 0xc
lea eax, [ebp - 0xec0]
mov dword [ebp - 0xec0], esi
push eax
mov esi, str.ZylomInstallerClass
push esi
push ebx
call dword [sym.imp.USER32.dll_GetClassInfoExA]
test eax, eax
jne 0x40d9b6
push 0x104
lea eax, [ebp - 0x358]
push eax
push edi
mov dword [ebp - 0xebc], 3
mov dword [ebp - 0xeb8], 0x404bdb
mov dword [ebp - 0xeb4], edi
mov dword [ebp - 0xeb0], edi
mov dword [ebp - 0xeac], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push edi
lea eax, [ebp - 0x358]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_ExtractIconA]
push 0x7f00
push edi
mov dword [ebp - 0xea8], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0xea4], eax
lea eax, [ebp - 0xec0]
push eax
mov dword [ebp - 0xea0], edi
mov dword [ebp - 0xe9c], edi
mov dword [ebp - 0xe98], esi
mov dword [ebp - 0xe94], edi
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x40d9b6
push edi
push ebx
push edi
push edi
push dword [0x44b09c]
mov eax, SysReAllocString
push dword [0x44b098]
push eax
push eax
push 0x480000
push dword [0x54824c]
push esi
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp eax, edi
mov dword [0x548168], eax
je 0x40d9b6
lea ecx, [ebp + 0x54]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x40d930
mov esi, dword [ebp + 0x5c]
mov edi, dword [ebp + 0x60]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
sub esi, dword [ebp + 0x54]
sub edi, dword [ebp + 0x58]
push 7
call ebx
lea eax, [esi + eax*2]
push 8
mov dword [ebp - 0xe70], eax
call ebx
push 4
lea edi, [edi + eax*2]
call ebx
add edi, eax
push 0
mov dword [ebp + 0x70], edi
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
test edi, edi
je 0x40d92e
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
push edi
call esi
push 0xa
push edi
mov ebx, eax
call esi
push edi
push 0
mov dword [ebp - 0xe74], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, ebx
mov ebx, dword [ebp - 0xe70]
cdq
sub eax, edx
mov esi, eax
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
sar esi, 1
sub esi, eax
mov eax, dword [ebp - 0xe74]
cdq
sub eax, edx
mov edi, eax
mov eax, dword [ebp + 0x70]
cdq
sub eax, edx
sar eax, 1
sar edi, 1
sub edi, eax
lea eax, [ebp - 0xeec]
push eax
push dword [0x548168]
call dword [sym.imp.USER32.dll_GetWindowPlacement]
push dword [0x548168]
call dword [sym.imp.USER32.dll_IsWindowVisible]
neg eax
sbb eax, eax
and eax, 8
mov dword [ebp - 0xee4], eax
mov eax, dword [ebp + 0x70]
mov dword [ebp - 0xecc], edi
add edi, eax
lea eax, [ebp - 0xeec]
push eax
push dword [0x548168]
mov dword [ebp - 0xed0], esi
add esi, ebx
mov dword [ebp - 0xec8], esi
mov dword [ebp - 0xec4], edi
mov dword [ebp - 0xeec], 0x2c
call dword [sym.imp.USER32.dll_SetWindowPlacement]
xor edi, edi
push 5
push dword [0x548168]
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
jmp 0x40d99e
lea eax, [ebp - 0xe90]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
mov eax, dword [0x548168]
cmp dword [ebp - 0xe90], eax
je 0x40d991
cmp dword [ebp - 0xe8c], 0x100
jb 0x40d991
cmp dword [ebp - 0xe8c], 0x108
ja 0x40d991
push dword [ebp - 0xe84]
push dword [ebp - 0xe88]
push dword [ebp - 0xe8c]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0xe90]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push edi
push edi
lea eax, [ebp - 0xe90]
push edi
push eax
call esi
test eax, eax
jne 0x40d946
mov esi, dword [ebp - 0xe88]
jmp 0x40d9b9
mov esi, dword [ebp + 0x70]
mov ecx, 0x5481b0
call fcn.00403113
lea ecx, [ebp - 0xf28]
call fcn.0041d8b4
mov eax, esi
mov ecx, dword [ebp + 0x64]
pop edi
pop esi
pop ebx
call fcn.0042a8ce
add ebp, 0x68
leave
ret 0x10