Function at 0x4be8a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e6b22
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x66a074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xdc], esi
mov eax, dword [esi]
mov dword [esi + 4], eax
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xec], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xc0]
push 0x10
xor eax, eax
mov dword [ebp - 0xb0], 0
push str.2345Explorer.exe
mov dword [ebp - 0xac], 7
mov word [ebp - 0xc0], ax
call fcn.00409060
lea edx, [ebp - 0xf4]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc0]
call fcn.004ce8f0
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 0
mov bl, al
call fcn.00408ff0
mov edi, dword [ebp - 0xf4]
test bl, bl
je 0x4bec36
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0x100], eax
cmp edi, eax
je 0x4bec2e
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
nop dword [eax]
mov edx, dword [edi]
lea ecx, [ebp - 0xd8]
call fcn.004cf0c0
xor eax, eax
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 7
mov word [ebp - 0xa8], ax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc0]
push 0x10
push str.OriginalFileName
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], 7
mov word [ebp - 0xc0], ax
call fcn.00409060
mov byte [ebp - 4], 4
cmp dword [ebp - 0xc8], 0
je 0x4beb75
cmp dword [ebp - 0xc4], 8
lea ecx, [ebp - 0xe0]
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xe0], 0
cmovae eax, dword [ebp - 0xd8]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x4beb6f
push ebx
call fcn.005b79a5
mov esi, eax
add esp, 4
mov dword [ebp - 0x104], esi
push ebx
push 0
push esi
mov byte [ebp - 4], 5
call fcn.005b9c20
add esp, 0xc
lea eax, [ebp - 0xd8]
cmp dword [ebp - 0xc4], 8
cmovae eax, dword [ebp - 0xd8]
push esi
push ebx
push dword [ebp - 0xe0]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4beb5e
lea eax, [ebp - 0xf8]
mov dword [ebp - 0xe4], 0
push eax
lea eax, [ebp - 0xe4]
mov dword [ebp - 0xf8], 0
push eax
push str.VarFileInfoTranslation
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov ebx, dword [ebp - 0xe4]
test ebx, ebx
je 0x4beb5e
push 0x80
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.005b9c20
movzx eax, word [ebx + 2]
add esp, 0xc
push eax
movzx eax, word [ebx]
push eax
push str.StringFileInfo_04x_04x_
push 0xffffffffffffffff
lea eax, [ebp - 0x90]
push 0x40
push eax
call fcn.004ac840
add esp, 0x18
lea eax, [ebp - 0xc0]
cmp dword [ebp - 0xac], 8
cmovae eax, dword [ebp - 0xc0]
push eax
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0xfc]
mov dword [ebp - 0xfc], 0
push eax
lea eax, [ebp - 0xe8]
mov dword [ebp - 0xe8], 0
push eax
lea eax, [ebp - 0x90]
push eax
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4beb5e
mov edx, dword [ebp - 0xe8]
test edx, edx
je 0x4beb5e
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4beb42
sub eax, ebx
lea ecx, [ebp - 0xa8]
sar eax, 1
push eax
push edx
call fcn.00409060
push 1
push esi
call fcn.005b7992
mov esi, dword [ebp - 0xdc]
add esp, 8
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 3
call fcn.00408ff0
cmp dword [ebp - 0x94], 8
lea eax, [ebp - 0xa8]
push str.2345Explorer.exe
cmovae eax, dword [ebp - 0xa8]
push eax
call ebx
test eax, eax
je 0x4bebe4
cmp dword [ebp - 0x94], 8
lea eax, [ebp - 0xa8]
push str.chrome.exe
cmovae eax, dword [ebp - 0xa8]
push eax
call ebx
test eax, eax
je 0x4bebe4
cmp dword [ebp - 0x94], 8
lea eax, [ebp - 0xa8]
push str.Coral.exe
cmovae eax, dword [ebp - 0xa8]
push eax
call ebx
test eax, eax
jne 0x4bebff
mov ecx, dword [esi + 4]
cmp dword [esi + 8], ecx
je 0x4bebf6
mov eax, dword [edi]
mov dword [ecx], eax
add dword [esi + 4], 4
jmp 0x4bebff
push edi
push ecx
mov ecx, esi
call fcn.00417cc0
lea ecx, [ebp - 0xa8]
call fcn.00408ff0
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0
call fcn.00408ff0
add edi, 4
cmp edi, dword [ebp - 0x100]
jne 0x4be980
mov edi, dword [ebp - 0xf4]
mov eax, dword [esi]
cmp eax, dword [esi + 4]
setne bl
test edi, edi
je 0x4bec69
mov ecx, dword [ebp - 0xec]
mov eax, edi
sub ecx, edi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x4bec5f
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4bec87
push ecx
push edi
call fcn.005b7992
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b75ab
mov esp, ebp
pop ebp
ret
call fcn.005c00b0
int3