Function at 0x40c760
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, 0xb90
mov eax, dword [0x44a750]
push ebx
push esi
push edi
mov ebx, 0x104
push ebx
mov esi, 0x545c50
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.00429eb0
cmp eax, edi
pop ecx
pop ecx
jne 0x40c7b2
push edi
push str.Fatal_Error
push str.Invalid_access_rights_
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
jmp 0x40ccf0
push esi
mov byte [eax + 1], 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x85c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x85c]
push 0x43c9e4
push eax
call fcn.0041bd67
test al, al
pop ecx
pop ecx
je 0x40c7fa
lea eax, [ebp - 0x85c]
push eax
call fcn.00429210
pop ecx
lea ecx, [ebp - 0x85c]
dec ecx
mov byte [eax + ecx], 0
push edi
call fcn.0042a413
push eax
lea eax, [ebp - 0x85c]
push eax
push str._s.zylominstallertemp_d_
push 0x545640
call dword [sym.imp.USER32.dll_wsprintfA]
push str.UnInstall.log
mov esi, 0x545850
push esi
call fcn.00429600
add esp, 0x1c
call fcn.0041d24a
cmp eax, 1
mov dword [ebp - 0xa68], eax
jle 0x40ca47
lea eax, [ebp - 0x758]
push eax
push 1
call fcn.0041d250
lea eax, [ebp - 0x758]
push str.__uninstall
push eax
call fcn.00429e20
add esp, 0x10
test eax, eax
jne 0x40c888
cmp dword [ebp - 0xa68], 2
mov byte [0x546175], 1
jle 0x40ca54
push esi
push 2
call fcn.0041d250
pop ecx
pop ecx
jmp 0x40ca47
lea eax, [ebp - 0x758]
push str.__uninstallfromtemp
push eax
call fcn.00429e20
test eax, eax
pop ecx
pop ecx
jne 0x40c8d6
cmp dword [ebp - 0xa68], 3
mov byte [0x546175], 1
mov byte [0x546176], 1
jle 0x40ca54
push 0x545d58
push 2
call fcn.0041d250
push esi
push 3
call fcn.0041d250
add esp, 0x10
jmp 0x40ca47
lea eax, [ebp - 0x758]
push str.__myzylom
push eax
call fcn.00429e20
test eax, eax
pop ecx
pop ecx
jne 0x40c947
cmp dword [ebp - 0xa68], 2
mov byte [0x546177], 1
jle 0x40ca47
lea eax, [ebp - 0x758]
push eax
push 2
call fcn.0041d250
lea eax, [ebp - 0x758]
push str.__uninstall
push eax
call fcn.00429e20
add esp, 0x10
test eax, eax
jne 0x40ca47
cmp dword [ebp - 0xa68], 3
mov byte [0x546175], 1
jle 0x40ca54
push esi
push 3
jmp 0x40c87c
lea eax, [ebp - 0x758]
push str.__buy
push eax
call fcn.00429e20
test eax, eax
pop ecx
pop ecx
jne 0x40c96a
mov byte [0x546178], 1
jmp 0x40ca47
lea eax, [ebp - 0x758]
push str.__activate
push eax
call fcn.00429e20
test eax, eax
pop ecx
pop ecx
jne 0x40ca29
cmp dword [ebp - 0xa68], 2
mov byte [0x546179], 1
jle 0x40ca47
push 2
pop eax
lea ecx, [ebp - 0x758]
push ecx
mov dword [ebp - 0xa68], eax
push eax
jmp 0x40ca1c
lea eax, [ebp - 0x758]
push eax
call fcn.00429210
test eax, eax
pop ecx
jbe 0x40ca09
mov ecx, 0x546180
call fcn.00413260
test eax, eax
jbe 0x40c9e6
push 0x43c778
lea eax, [ebp + 0x50]
push eax
mov ecx, 0x546180
call fcn.0041f6b3
lea ecx, [ebp + 0x50]
call fcn.0041f5a7
lea eax, [ebp - 0x758]
push eax
lea eax, [ebp - 0xa88]
push eax
mov ecx, 0x546180
call fcn.0041f6b3
lea ecx, [ebp - 0xa88]
call fcn.0041f5a7
inc dword [ebp - 0xa68]
lea eax, [ebp - 0x758]
push eax
push dword [ebp - 0xa68]
call fcn.0041d250
test al, al
pop ecx
pop ecx
jne 0x40c9ac
jmp 0x40ca47
lea eax, [ebp - 0x758]
push str.__buy_coupon
push eax
call fcn.00429e20
test eax, eax
pop ecx
pop ecx
jne 0x40ca47
mov byte [0x54617a], 1
cmp byte [0x546175], 0
je 0x40cc7d
push ebx
lea eax, [ebp - 0x358]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x960]
mov dword [ebp - 0xa74], eax
lea eax, [ebp - 0xa74]
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.00429600
pop ecx
pop ecx
lea eax, [ebp - 0xa74]
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.00429600
cmp byte [0x546176], 0
pop ecx
pop ecx
jne 0x40cbd3
lea eax, [ebp - 0xa64]
push 0x545640
push eax
call fcn.00429600
lea eax, [ebp - 0xa64]
push str.ZylomGameITemp.exe
push eax
call fcn.00429610
lea eax, [ebp - 0xa64]
push 1
push eax
call fcn.004137a4
add esp, 0x18
push edi
lea eax, [ebp - 0xa64]
push eax
lea eax, [ebp - 0x358]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40cbcd
lea eax, [ebp - 0xa64]
push eax
lea eax, [ebp - 0x6c8]
push eax
call fcn.00429600
lea eax, [ebp - 0x6c8]
push str.___uninstallfromtemp__
push eax
call fcn.00429610
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x6c8]
push eax
call fcn.00429610
lea eax, [ebp - 0x6c8]
push 0x43d698
push eax
call fcn.00429610
lea eax, [ebp - 0x6c8]
push esi
push eax
call fcn.00429610
lea eax, [ebp - 0x6c8]
push 0x43c8a8
push eax
call fcn.00429610
push 0x44
pop esi
push esi
lea eax, [ebp - 0xb04]
push edi
push eax
call fcn.00428c80
push 0x10
lea eax, [ebp + 0x54]
push edi
push eax
mov dword [ebp - 0xb04], esi
call fcn.00428c80
add esp, 0x48
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp - 0xb04]
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.0040316a
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push esi
mov byte [ebp - 0xa69], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0xa70], eax
je 0x40cc75
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x40cc60
lea eax, [esi + 1]
push eax
mov dword [ebp - 0xa68], edi
call fcn.00426e44
pop ecx
push edi
mov ebx, eax
lea eax, [ebp - 0xa68]
push eax
push esi
push ebx
push dword [ebp - 0xa70]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0xa68]
test eax, eax
setne al
test al, al
mov byte [ebx + ecx], 0
je 0x40cc60
cmp dword [ebp - 0xa68], esi
jne 0x40cc60
push ebx
mov ecx, 0x546284
call fcn.0041e6e9
mov byte [ebp - 0xa69], 1
push dword [ebp - 0xa70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0xa69], 0
jne 0x40cc7d
xor eax, eax
inc eax
jmp 0x40d519
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
xor ebx, ebx
inc ebx
cmp byte [0x546175], 0
mov dword [ebp - 0xa68], edi
jne 0x40ccba
lea eax, [ebp - 0xa68]
push eax
call fcn.00401e1c
test eax, eax
pop ecx
ja 0x40ccba
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 0x40ccef
lea eax, [ebp - 0xa68]
push eax
call fcn.00401e1c
pop ecx
push dword [ebp - 0xa68]
mov ecx, 0x5461c8
push edi
push str.34324
call fcn.00410556
test al, al
jne 0x40ccf5
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.0042a190
push dword [0x5461f8]
lea esi, [ebp - 0x254]
mov eax, esi
push eax
call fcn.00429600
mov eax, esi
push eax
call fcn.00429210
add esp, 0xc
jmp 0x40cd27
mov cl, byte [ebp + eax - 0x254]
cmp cl, 0x5c
je 0x40cd2e
cmp cl, 0x2f
je 0x40cd2e
dec eax
cmp eax, edi
jg 0x40cd16
jmp 0x40cd35
lea esi, [ebp + eax - 0x253]
push esi
call fcn.00402e90
push dword [0x546204]
push esi
call fcn.00429600
lea esi, [ebp - 0x254]
mov eax, esi
push eax
call fcn.00429210
add esp, 0x10
jmp 0x40cd6b
mov cl, byte [ebp + eax - 0x254]
cmp cl, 0x5c
je 0x40cd72
cmp cl, 0x2f
je 0x40cd72
dec eax
cmp eax, edi
jg 0x40cd5a
jmp 0x40cd79
lea esi, [ebp + eax - 0x253]
push esi
call fcn.00402e90
pop ecx
lea ecx, [ebp - 0xb28]
call fcn.0041c591
lea ecx, [ebp - 0xb28]
call fcn.0041c80d
lea ecx, [ebp - 0xb28]
call fcn.004119ab
push dword [0x546200]
test eax, eax
setg al
mov byte [0x54615a], al
call fcn.0042a258
push eax
call fcn.00412f1f
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x40ce20
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x40]
cmp eax, ebx
jne 0x40cde1
cmp byte [0x54615a], 0
jne 0x40cde1
mov byte [0x54615a], 1
jmp 0x40ce19
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x40]
test eax, eax
jne 0x40cdf7
cmp byte [0x54615a], al
je 0x40cdf7
push ebx
jmp 0x40ce0b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x40]
test eax, eax
jne 0x40ce19
cmp byte [0x54615a], al
jne 0x40ce19
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 0x43c9d1
push eax
call fcn.00429600
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 0x40ced0
lea eax, [ebp - 0xa70]
push eax
push 0x20019
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xa70], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ced0
push 0x209
mov dword [ebp - 0xa74], 0x208
call fcn.00426e44
pop ecx
mov esi, eax
lea eax, [ebp - 0xa74]
push eax
push esi
lea eax, [ebp - 0xa68]
push eax
push edi
push str.ProgramFilesDir
mov byte [esi], 0
push dword [ebp - 0xa70]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40cec9
cmp dword [ebp - 0xa68], ebx
jne 0x40cec9
lea eax, [ebp - 0x150]
push esi
push eax
call fcn.00429600
pop ecx
pop ecx
push esi
call fcn.00429f46
pop ecx
lea eax, [ebp - 0x150]
push eax
call fcn.00429210
test eax, eax
pop ecx
jne 0x40cef4
lea eax, [ebp - 0x150]
push str.C:Program_Files_
push eax
call fcn.00429600
pop ecx
pop ecx
lea eax, [ebp - 0x150]
push eax
mov esi, 0x545748
push esi
call fcn.00429600
mov ebx, 0x43c9e4
lea eax, [ebp - 0x150]
push ebx
push eax
call fcn.0041bd67
add esp, 0x10
test al, al
jne 0x40cf2e
lea eax, [ebp - 0x150]
push ebx
push eax
call fcn.00429610
pop ecx
pop ecx
lea eax, [ebp - 0x150]
push str.Zylom_Games_
push eax
call fcn.00429610
lea eax, [ebp - 0x150]
push edi
push eax
call fcn.0042a3cd
add esp, 0x10
test eax, eax
jne 0x40cf6e
lea eax, [ebp - 0x150]
push eax
call fcn.0041382a
pop ecx
test al, al
lea eax, [ebp - 0x150]
push eax
push esi
je 0x40cf95
jmp 0x40cf81
push esi
call fcn.0041382a
test al, al
pop ecx
je 0x40cf88
lea eax, [ebp - 0x150]
push eax
push esi
call fcn.00429600
jmp 0x40cfa1
call fcn.0042a348
lea eax, [ebp - 0x150]
push eax
push esi
call fcn.00429600
mov byte [0x546158], 1
pop ecx
pop ecx
call fcn.0040d667
test al, al
je 0x40cfbc
call fcn.0040d5c4
test al, al
jne 0x40cfbc
mov byte [0x546158], 1
cmp byte [0x546158], 0
je 0x40d069
call fcn.0040d667
test al, al
push 1
lea eax, [ebp - 0x150]
je 0x40cfde
push 0x1c
jmp 0x40cfe0
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.00429600
lea eax, [ebp - 0x150]
push ebx
push eax
call fcn.0041bd67
add esp, 0x10
test al, al
jne 0x40d01e
lea eax, [ebp - 0x150]
push ebx
push eax
call fcn.00429610
pop ecx
pop ecx
lea eax, [ebp - 0x150]
push str.Zylom_Games_
push eax
call fcn.00429610
lea eax, [ebp - 0x150]
push edi
push eax
call fcn.0042a3cd
add esp, 0x10
test eax, eax
lea eax, [ebp - 0x150]
je 0x40d04f
lea eax, [ebp - 0x358]
push eax
call fcn.0041382a
test al, al
pop ecx
je 0x40d069
lea eax, [ebp - 0x150]
push eax
push esi
call fcn.00429600
pop ecx
pop ecx
push ebx
push esi
call fcn.0041bd67
test al, al
pop ecx
pop ecx
jne 0x40d07f
push ebx
push esi
call fcn.00429610
pop ecx
pop ecx
mov esi, 0x9c
push esi
lea eax, [ebp - 0x4c]
push edi
push eax
call fcn.00428c80
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 0x40d0bc
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], 0x94
call esi
test eax, eax
jne 0x40d0bc
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
cmp dword [ebp - 0x48], 3
push 4
pop ebx
mov esi, 0x546270
jne 0x40d0f2
cmp dword [ebp - 0x44], 0x33
jne 0x40d24b
push str.Windows_NT_3.51
lea eax, [ebp - 0xa88]
push eax
mov ecx, esi
call fcn.0041f632
lea ecx, [ebp - 0xa88]
call fcn.0041f5a7
cmp dword [ebp - 0x48], ebx
jne 0x40d1aa
cmp dword [ebp - 0x44], edi
jne 0x40d159
push str.Windows_95
lea eax, [ebp - 0xa88]
push eax
mov ecx, esi
call fcn.0041f632
lea ecx, [ebp - 0xa88]
call fcn.0041f5a7
cmp dword [ebp - 0x48], ebx
jne 0x40d1aa
cmp dword [ebp - 0x44], edi
jne 0x40d159
cmp dword [ebp - 0x3c], 2
jne 0x40d24b
push str.Windows_NT_4.0
lea eax, [ebp - 0xa88]
push eax
mov ecx, esi
call fcn.0041f632
lea ecx, [ebp - 0xa88]
call fcn.0041f5a7
cmp dword [ebp - 0x48], ebx
jne 0x40d1aa
cmp dword [ebp - 0x44], 0xa
jne 0x40d182
push str.Windows_98
lea eax, [ebp - 0xa88]
push eax
mov ecx, esi
call fcn.0041f632
lea ecx, [ebp - 0xa88]
call fcn.0041f5a7
cmp dword [ebp - 0x48], ebx
jne 0x40d1aa
cmp dword [ebp - 0x44], 0x5a
jne 0x40d24b
push str.Windows_Me
lea eax, [ebp - 0xa88]
push eax
mov ecx, esi
call fcn.0041f632
lea ecx, [ebp - 0xa88]
call fcn.0041f5a7
cmp dword [ebp - 0x48], 5
jne 0x40d227
cmp dword [ebp - 0x44], edi
jne 0x40d1d9
push str.Windows_2000
lea eax, [ebp - 0xa88]
push eax
mov ecx, esi
call fcn.0041f632
lea ecx, [ebp - 0xa88]
call fcn.0041f5a7
cmp dword [ebp - 0x48], 5
jne 0x40d227
cmp dword [ebp - 0x44], 1
jne 0x40d203
push str.Windows_XP
lea eax, [ebp - 0xa88]
push eax
mov ecx, esi
call fcn.0041f632
lea ecx, [ebp - 0xa88]
call fcn.0041f5a7
cmp dword [ebp - 0x48], 5
jne 0x40d227
cmp dword [ebp - 0x44], 2
jne 0x40d24b
push str.Windows_Server_2003
lea eax, [ebp - 0xa88]
push eax
mov ecx, esi
call fcn.0041f632
lea ecx, [ebp - 0xa88]
call fcn.0041f5a7
cmp dword [ebp - 0x48], 6
jne 0x40d24b
push str.Windows_Vista
lea eax, [ebp - 0xa88]
push eax
mov ecx, esi
call fcn.0041f632
lea ecx, [ebp - 0xa88]
call fcn.0041f5a7
mov al, byte [0x5461d1]
mov ebx, dword [ebp + 0x70]
mov byte [0x4490a0], al
lea eax, [ebp + 0x54]
push eax
push ebx
push edi
mov ecx, 0x546194
call fcn.00401924
call fcn.0040c625
push 0x30
pop esi
push esi
lea eax, [ebp - 0xac0]
push edi
push eax
mov dword [ebp + 0x70], edi
call fcn.00428c80
add esp, 0xc
lea eax, [ebp - 0xac0]
mov dword [ebp - 0xac0], esi
push eax
mov esi, str.ZylomInstallerClass
push esi
push ebx
call dword [sym.imp.USER32.dll_GetClassInfoExA]
test eax, eax
jne 0x40d4ff
push 0x104
lea eax, [ebp - 0x358]
push eax
push edi
mov dword [ebp - 0xabc], 3
mov dword [ebp - 0xab8], 0x404b06
mov dword [ebp - 0xab4], edi
mov dword [ebp - 0xab0], edi
mov dword [ebp - 0xaac], 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 - 0xaa8], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0xaa4], eax
lea eax, [ebp - 0xac0]
push eax
mov dword [ebp - 0xaa0], edi
mov dword [ebp - 0xa9c], edi
mov dword [ebp - 0xa98], esi
mov dword [ebp - 0xa94], edi
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x40d4ff
push edi
push ebx
push edi
push edi
push dword [0x44909c]
mov eax, SysReAllocString
push dword [0x449098]
push eax
push eax
push 0x480000
push dword [0x546224]
push esi
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp eax, edi
mov dword [0x546164], eax
je 0x40d4ff
lea ecx, [ebp + 0x54]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x40d479
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 - 0xa70], 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 0x40d477
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 - 0xa74], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, ebx
mov ebx, dword [ebp - 0xa70]
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 - 0xa74]
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 - 0xaec]
push eax
push dword [0x546164]
call dword [sym.imp.USER32.dll_GetWindowPlacement]
push dword [0x546164]
call dword [sym.imp.USER32.dll_IsWindowVisible]
neg eax
sbb eax, eax
and eax, 8
mov dword [ebp - 0xae4], eax
mov eax, dword [ebp + 0x70]
mov dword [ebp - 0xacc], edi
add edi, eax
lea eax, [ebp - 0xaec]
push eax
push dword [0x546164]
mov dword [ebp - 0xad0], esi
add esi, ebx
mov dword [ebp - 0xac8], esi
mov dword [ebp - 0xac4], edi
mov dword [ebp - 0xaec], 0x2c
call dword [sym.imp.USER32.dll_SetWindowPlacement]
xor edi, edi
push 5
push dword [0x546164]
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
jmp 0x40d4e7
lea eax, [ebp - 0xa90]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
mov eax, dword [0x546164]
cmp dword [ebp - 0xa90], eax
je 0x40d4da
cmp dword [ebp - 0xa8c], 0x100
jb 0x40d4da
cmp dword [ebp - 0xa8c], 0x108
ja 0x40d4da
push dword [ebp - 0xa84]
push dword [ebp - 0xa88]
push dword [ebp - 0xa8c]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0xa90]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push edi
push edi
lea eax, [ebp - 0xa90]
push edi
push eax
call esi
test eax, eax
jne 0x40d48f
mov esi, dword [ebp - 0xa88]
jmp 0x40d502
mov esi, dword [ebp + 0x70]
mov ecx, 0x546194
call fcn.004030cd
lea ecx, [ebp - 0xb28]
call fcn.0041c5b5
mov eax, esi
mov ecx, dword [ebp + 0x64]
pop edi
pop esi
pop ebx
call fcn.0042954e
add ebp, 0x68
leave
ret 0x10