Function at 0x4c7af4
Capabilities:
Get file version info
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x4c7afc
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c7f00
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x1a], 0
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x34]
mov eax, dword [0x527b70]
mov eax, dword [eax]
call fcn.004662e8
mov eax, dword [ebp - 0x34]
call fcn.004056ac
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4c7c66
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.00402d48
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4c7c4f
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
lea edx, [ebp - 0x38]
mov eax, dword [0x527b70]
mov eax, dword [eax]
call fcn.004662e8
mov eax, dword [ebp - 0x38]
call fcn.004056ac
push eax
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4c7f10
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
push 0x4c7f1c
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
shr eax, 0x10
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x3c]
call fcn.00409dd8
push dword [ebp - 0x3c]
push 0x4c7f28
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
and eax, 0xffff
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x40]
call fcn.00409dd8
push dword [ebp - 0x40]
push 0x4c7f28
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
shr eax, 0x10
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x44]
call fcn.00409dd8
push dword [ebp - 0x44]
push 0x4c7f28
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
and eax, 0xffff
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x48]
call fcn.00409dd8
push dword [ebp - 0x48]
lea eax, [ebp - 0x18]
mov edx, 8
call fcn.0040556c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4c7f10
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
mov eax, dword [ebp - 0x14]
test byte [eax + 0x1c], 2
setne byte [ebp - 0x1a]
mov eax, dword [ebp - 8]
call fcn.00402d64
jmp 0x4c7c5c
lea eax, [ebp - 0x18]
mov edx, 0x4c7f34
call fcn.00405280
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c7c7d
mov byte [ebp - 0x19], 1
cmp byte [ebp - 0x1a], 0
je 0x4c7c96
lea eax, [ebp - 0x18]
mov edx, 0x4c7f44
call fcn.004054b4
jmp 0x4c7c9a
mov byte [ebp - 0x19], 0
cmp byte [ebp - 0x19], 0
je 0x4c7eca
lea edx, [ebp - 0x54]
mov eax, dword [0x527b70]
mov eax, dword [eax]
call fcn.004662e8
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x50]
call fcn.0040a800
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
call fcn.00409758
lea eax, [ebp - 0x4c]
mov edx, dword [ebp - 0x18]
call fcn.004054b4
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x24]
call fcn.0047c7b0
xor ecx, ecx
mov dl, 1
mov eax, dword [0x425abc]
call fcn.004263f4
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
call fcn.0040beec
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.0047add0
movzx eax, ax
sub eax, 0x7d0
imul ebx, eax, 0x16d
call fcn.0040beec
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.0047aef0
movzx eax, ax
add ebx, eax
mov dword [ebp - 0x30], ebx
xor eax, eax
push ebp
push 0x4c7d8e
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0x20]
call fcn.00425c9c
push 0
mov ecx, dword [ebp - 0x24]
mov edx, 0x4c7f54
mov eax, dword [ebp - 0x20]
call fcn.00426604
mov dword [ebp - 0x28], eax
mov edx, 0x80000001
mov eax, dword [ebp - 0x20]
call fcn.00425c9c
push 0
mov ecx, dword [ebp - 0x24]
mov edx, 0x4c7f54
mov eax, dword [ebp - 0x20]
call fcn.00426604
mov dword [ebp - 0x2c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c7d98
cmp dword [ebp - 0x28], 0
jne 0x4c7e3e
cmp dword [ebp - 0x2c], 0
jne 0x4c7e3e
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebp
push 0x4c7df1
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0x20]
call fcn.00425c9c
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, 0x4c7f54
mov eax, dword [ebp - 0x20]
call fcn.00426704
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c7dfb
xor eax, eax
push ebp
push 0x4c7e34
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000001
mov eax, dword [ebp - 0x20]
call fcn.00425c9c
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, 0x4c7f54
mov eax, dword [ebp - 0x20]
call fcn.00426704
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c7e3e
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x2c]
jge 0x4c7e4c
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x28]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x1e
jle 0x4c7ec2
push 0x40
push 0x4c7f88
push dword [ebp - 0x18]
push 0x4c7f9c
lea edx, [ebp - 0x60]
mov eax, dword [0x527b70]
mov eax, dword [eax]
call fcn.004662e8
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x5c]
call fcn.0040a800
push dword [ebp - 0x5c]
push 0x4c7fac
lea eax, [ebp - 0x58]
mov edx, 5
call fcn.0040556c
mov eax, dword [ebp - 0x58]
call fcn.004056ac
mov edx, eax
mov ecx, 0x4c7fe0
mov eax, dword [0x527b70]
mov eax, dword [eax]
call fcn.00465d84
push 0
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebp - 0x20]
call fcn.004042c8
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
call fcn.0040523c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c7f07
lea eax, [ebp - 0x60]
mov edx, 0xc
call fcn.0040520c
lea eax, [ebp - 0x24]
call fcn.004051e8
lea eax, [ebp - 0x18]
call fcn.004051e8
ret