Function at 0x40b91a
Capabilities:
Copy file
Create process on windows
Enumerate processes
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 - 0x96c]
sub esp, 0x9ec
mov eax, dword [0x434450]
push ebx
push esi
push edi
mov esi, 0x104
push esi
mov edi, 0x52f5f0
push edi
xor ebx, ebx
push ebx
mov dword [ebp + 0x968], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push edi
call fcn.0041ebd0
cmp eax, ebx
pop ecx
pop ecx
jne 0x40b970
push ebx
push str.Fatal_Error
push str.Invalid_access_rights_
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40bd77
push edi
mov byte [eax + 1], bl
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp + 0x628]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp + 0x628]
push 0x429924
push eax
call fcn.00417381
test al, al
pop ecx
pop ecx
je 0x40b9b6
lea eax, [ebp + 0x628]
push eax
call fcn.0041de70
pop ecx
lea ecx, [ebp + 0x628]
dec ecx
mov byte [eax + ecx], bl
push ebx
call fcn.0041f07c
push eax
lea eax, [ebp + 0x628]
push eax
push str._s.zylominstallertemp_d_
push 0x52efe0
call dword [sym.imp.USER32.dll_wsprintfA]
push str.UnInstall.log
mov edi, 0x52f1f0
push edi
call fcn.0041e260
add esp, 0x1c
call fcn.00417b84
cmp eax, 1
mov dword [ebp + 0x1c], eax
jle 0x40bb0e
lea eax, [ebp + 0x20]
push eax
push 1
call fcn.00417b8a
lea eax, [ebp + 0x20]
push str.__uninstall
push eax
call fcn.0041ea80
add esp, 0x10
test eax, eax
jne 0x40ba38
cmp dword [ebp + 0x1c], 2
mov byte [0x52fb11], 1
jle 0x40bb1a
push edi
push 2
call fcn.00417b8a
pop ecx
pop ecx
jmp 0x40bb0e
lea eax, [ebp + 0x20]
push str.__uninstallfromtemp
push eax
call fcn.0041ea80
test eax, eax
pop ecx
pop ecx
jne 0x40ba80
cmp dword [ebp + 0x1c], 3
mov byte [0x52fb11], 1
mov byte [0x52fb12], 1
jle 0x40bb1a
push 0x52f6f8
push 2
call fcn.00417b8a
push edi
push 3
call fcn.00417b8a
add esp, 0x10
jmp 0x40bb0e
lea eax, [ebp + 0x20]
push str.__myzylom
push eax
call fcn.0041ea80
test eax, eax
pop ecx
pop ecx
jne 0x40bad6
cmp dword [ebp + 0x1c], 2
mov byte [0x52fb13], 1
jle 0x40bb0e
lea eax, [ebp + 0x20]
push eax
push 2
call fcn.00417b8a
lea eax, [ebp + 0x20]
push str.__uninstall
push eax
call fcn.0041ea80
add esp, 0x10
test eax, eax
jne 0x40bb0e
cmp dword [ebp + 0x1c], 3
mov byte [0x52fb11], 1
jle 0x40bb1a
push edi
push 3
jmp 0x40ba2c
lea eax, [ebp + 0x20]
push str.__buy
push eax
call fcn.0041ea80
test eax, eax
pop ecx
pop ecx
jne 0x40baf3
mov byte [0x52fb14], 1
jmp 0x40bb0e
lea eax, [ebp + 0x20]
push str.__buy_coupon
push eax
call fcn.0041ea80
test eax, eax
pop ecx
pop ecx
jne 0x40bb0e
mov byte [0x52fb15], 1
cmp byte [0x52fb11], bl
je 0x40bd15
push esi
lea eax, [ebp + 0x750]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp + 0x420]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0x420]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [ebp + 0x420]
push eax
push edi
call fcn.0041e260
pop ecx
pop ecx
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0x420]
push eax
push esi
lea eax, [ebp + 0x750]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [ebp + 0x420]
push eax
lea eax, [ebp + 0x750]
push eax
call fcn.0041e260
cmp byte [0x52fb12], bl
pop ecx
pop ecx
jne 0x40bc8c
lea eax, [ebp + 0x524]
push 0x52efe0
push eax
call fcn.0041e260
lea eax, [ebp + 0x524]
push str.ZylomGameInstallerTemp.exe
push eax
call fcn.0041e270
lea eax, [ebp + 0x524]
push 1
push eax
call fcn.0040f641
add esp, 0x18
push ebx
lea eax, [ebp + 0x524]
push eax
lea eax, [ebp + 0x750]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40bc86
lea eax, [ebp + 0x524]
push eax
lea eax, [ebp + 0xb0]
push eax
call fcn.0041e260
lea eax, [ebp + 0xb0]
push str.___uninstallfromtemp__
push eax
call fcn.0041e270
lea eax, [ebp + 0x750]
push eax
lea eax, [ebp + 0xb0]
push eax
call fcn.0041e270
lea eax, [ebp + 0xb0]
push 0x42a4e8
push eax
call fcn.0041e270
lea eax, [ebp + 0xb0]
push edi
push eax
call fcn.0041e270
lea eax, [ebp + 0xb0]
push 0x429800
push eax
call fcn.0041e270
push 0x44
pop esi
push esi
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.0041d8e0
push 0x10
lea eax, [ebp + 0x958]
push ebx
push eax
mov dword [ebp - 0x80], esi
call fcn.0041d8e0
add esp, 0x48
lea eax, [ebp + 0x958]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp + 0xb0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push ebx
call fcn.004029da
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push edi
mov byte [ebp + 0x1b], bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0x14], eax
je 0x40bd0d
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x40bcff
lea eax, [esi + 1]
push eax
mov dword [ebp + 0x1c], ebx
call fcn.0041d202
pop ecx
push ebx
mov edi, eax
lea eax, [ebp + 0x1c]
push eax
push esi
push edi
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x1c]
test eax, eax
setne al
cmp al, bl
mov byte [edi + ecx], bl
je 0x40bcff
cmp dword [ebp + 0x1c], esi
jne 0x40bcff
push edi
mov ecx, 0x52fbd0
call fcn.00418e38
mov byte [ebp + 0x1b], 1
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp + 0x1b], bl
jne 0x40bd15
xor eax, eax
inc eax
jmp 0x40c2bd
cmp byte [0x52fb11], bl
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp + 0x1c], ebx
jne 0x40bd48
lea eax, [ebp + 0x1c]
push eax
call fcn.00401c35
test eax, eax
pop ecx
ja 0x40bd48
push 0x34
push str.Warning
push str.Warning__nThe_setup_file_seems_incomplete._nAre_you_sure_you_want_to_continue_to_install_
push ebx
call esi
cmp eax, 7
je 0x40bd77
lea eax, [ebp + 0x1c]
push eax
call fcn.00401c35
pop ecx
push dword [ebp + 0x1c]
mov ecx, 0x52fb50
push ebx
push str.34324
call fcn.0040dafb
test al, al
push ebx
jne 0x40bd7e
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 ebx
call esi
push 1
call fcn.0041ed84
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp + 0x1c], eax
je 0x40be47
push 0x49
pop ecx
xor eax, eax
lea edi, [ebp + 0x730]
rep stosd dword es:[edi], eax
mov edi, dword [0x52fb6c]
push edi
mov dword [ebp + 0x72c], 0x128
call fcn.0041de70
pop ecx
jmp 0x40bdc4
mov cl, byte [eax + edi]
cmp cl, 0x5c
je 0x40bdcb
cmp cl, 0x2f
je 0x40bdcb
dec eax
cmp eax, ebx
jg 0x40bdb7
jmp 0x40bdcf
lea edi, [edi + eax + 1]
lea eax, [ebp + 0x72c]
push eax
push dword [ebp + 0x1c]
call sub.KERNEL32.dll_Process32First
jmp 0x40be3a
lea eax, [ebp + 0x750]
push eax
push edi
call fcn.0041f013
test eax, eax
pop ecx
pop ecx
jne 0x40be2b
push dword [ebp + 0x734]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
lea eax, [ebp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp + 0x14], 0x103
jne 0x40be24
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0x72c]
push eax
push dword [ebp + 0x1c]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40bde0
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0x854]
push 0x429911
push eax
call fcn.0041e260
pop ecx
pop ecx
push 1
push 0x26
lea eax, [ebp + 0x854]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
cmp eax, 1
je 0x40bee0
lea eax, [ebp + 0x14]
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp + 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40bee0
push 0x209
mov dword [ebp + 0x10], 0x208
call fcn.0041d202
pop ecx
mov esi, eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0x1c]
push eax
push ebx
push str.ProgramFilesDir
mov byte [esi], bl
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40bed9
cmp dword [ebp + 0x1c], 1
jne 0x40bed9
lea eax, [ebp + 0x854]
push esi
push eax
call fcn.0041e260
pop ecx
pop ecx
push esi
call fcn.0041eb08
pop ecx
lea eax, [ebp + 0x854]
push eax
call fcn.0041de70
test eax, eax
pop ecx
jne 0x40bf04
lea eax, [ebp + 0x854]
push str.C:Program_Files_
push eax
call fcn.0041e260
pop ecx
pop ecx
lea eax, [ebp + 0x854]
push eax
mov edi, 0x52f0e8
push edi
call fcn.0041e260
mov esi, 0x429924
lea eax, [ebp + 0x854]
push esi
push eax
call fcn.00417381
add esp, 0x10
test al, al
jne 0x40bf3e
lea eax, [ebp + 0x854]
push esi
push eax
call fcn.0041e270
pop ecx
pop ecx
lea eax, [ebp + 0x854]
push str.Zylom_Games_
push eax
call fcn.0041e270
lea eax, [ebp + 0x854]
push ebx
push eax
call fcn.0041efcd
add esp, 0x10
test eax, eax
jne 0x40bf82
lea eax, [ebp + 0x854]
push eax
call fcn.0040f6c7
pop ecx
test al, al
lea eax, [ebp + 0x854]
push eax
push edi
jne 0x40c031
jmp 0x40bf9e
push edi
call fcn.0040f6c7
test al, al
pop ecx
jne 0x40c029
call fcn.0041ef48
lea eax, [ebp + 0x854]
push eax
push edi
call fcn.0041e260
pop ecx
pop ecx
push 1
push 0x1a
lea eax, [ebp + 0x854]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp + 0x854]
push eax
lea eax, [ebp + 0x750]
push eax
call fcn.0041e260
lea eax, [ebp + 0x854]
push esi
push eax
call fcn.00417381
add esp, 0x10
test al, al
jne 0x40bfed
lea eax, [ebp + 0x854]
push esi
push eax
call fcn.0041e270
pop ecx
pop ecx
lea eax, [ebp + 0x854]
push str.Zylom_Games_
push eax
call fcn.0041e270
lea eax, [ebp + 0x854]
push ebx
push eax
call fcn.0041efcd
add esp, 0x10
test eax, eax
lea eax, [ebp + 0x854]
je 0x40c01e
lea eax, [ebp + 0x750]
push eax
call fcn.0040f6c7
test al, al
pop ecx
je 0x40c038
lea eax, [ebp + 0x854]
push eax
push edi
call fcn.0041e260
pop ecx
pop ecx
push esi
push edi
call fcn.00417381
test al, al
pop ecx
pop ecx
jne 0x40c04e
push esi
push edi
call fcn.0041e270
pop ecx
pop ecx
mov esi, dword [ebp + 0x974]
lea eax, [ebp + 0x958]
push eax
push esi
push ebx
mov ecx, 0x52fb1c
call fcn.00401924
call fcn.0040b7df
push 0x30
pop edi
push edi
lea eax, [ebp - 0x3c]
push ebx
push eax
mov dword [ebp + 0x974], ebx
call fcn.0041d8e0
add esp, 0xc
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
push eax
mov edi, str.ZylomInstallerClass
push edi
push esi
call dword [sym.imp.USER32.dll_GetClassInfoExA]
test eax, eax
jne 0x40c2ab
push 0x104
lea eax, [ebp + 0x750]
push eax
push ebx
mov dword [ebp - 0x38], 3
mov dword [ebp - 0x34], 0x403eaa
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
lea eax, [ebp + 0x750]
push eax
push esi
call dword [sym.imp.SHELL32.dll_ExtractIconA]
push 0x7f00
push ebx
mov dword [ebp - 0x24], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x40c2ab
push ebx
push esi
push ebx
push ebx
push 0x12c
push 0x1f4
mov eax, SysReAllocString
push eax
push eax
push 0x480000
push dword [0x52fb8c]
push edi
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp eax, ebx
mov dword [0x52fb00], eax
je 0x40c2ab
lea ecx, [ebp + 0x958]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x40c243
mov esi, dword [ebp + 0x960]
mov edi, dword [ebp + 0x964]
sub esi, dword [ebp + 0x958]
sub edi, dword [ebp + 0x95c]
push 7
call dword [sym.imp.USER32.dll_GetSystemMetrics]
lea eax, [esi + eax*2]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 8
mov dword [ebp + 0x974], eax
call esi
push 4
lea edi, [edi + eax*2]
call esi
add edi, eax
push ebx
mov dword [ebp + 0x14], edi
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
cmp edi, ebx
je 0x40c243
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
push edi
call esi
push 0xa
push edi
mov dword [ebp + 0x10], eax
call esi
push edi
push ebx
mov dword [ebp + 0x1c], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp + 0x10]
cdq
sub eax, edx
mov esi, eax
mov eax, dword [ebp + 0x974]
cdq
sub eax, edx
sar eax, 1
sar esi, 1
sub esi, eax
mov eax, dword [ebp + 0x1c]
cdq
sub eax, edx
mov edi, eax
mov eax, dword [ebp + 0x14]
cdq
sub eax, edx
sar eax, 1
sar edi, 1
sub edi, eax
lea eax, [ebp - 0x68]
push eax
push dword [0x52fb00]
call dword [sym.imp.USER32.dll_GetWindowPlacement]
push dword [0x52fb00]
call dword [sym.imp.USER32.dll_IsWindowVisible]
neg eax
sbb eax, eax
and eax, 8
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x974]
mov dword [ebp - 0x4c], esi
add esi, eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x48], edi
add edi, eax
lea eax, [ebp - 0x68]
push eax
push dword [0x52fb00]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x68], 0x2c
call dword [sym.imp.USER32.dll_SetWindowPlacement]
push 5
push dword [0x52fb00]
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
jmp 0x40c299
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
mov eax, dword [0x52fb00]
cmp dword [ebp - 0xc], eax
je 0x40c28f
cmp dword [ebp - 8], 0x100
jb 0x40c28f
cmp dword [ebp - 8], 0x108
ja 0x40c28f
push dword [ebp]
push dword [ebp - 4]
push dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
lea eax, [ebp - 0xc]
push ebx
push eax
call esi
test eax, eax
jne 0x40c259
mov esi, dword [ebp - 4]
jmp 0x40c2b1
mov esi, dword [ebp + 0x974]
mov ecx, 0x52fb1c
call fcn.00402930
mov eax, esi
mov ecx, dword [ebp + 0x968]
pop edi
pop esi
pop ebx
call fcn.0041e1ae
add ebp, 0x96c
leave
ret 0x10