Function at 0x424920
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45edf9
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x473b80]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, dword [eax + 0x44]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov ecx, dword [eax + 0x48]
mov edx, dword [ebp + 0xc]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 0x50]
mov edx, dword [ebp + 0xc]
mov dword [edx + 8], ecx
mov ecx, dword [eax + 0x20]
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x10], ecx
mov ecx, dword [eax + 0x24]
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x14], ecx
mov ecx, dword [ebp + 0xc]
xor edi, edi
cmp dword [ecx], 4
je 0x424ca9
movzx edx, word [eax + 0x38]
mov eax, dword [eax + 0x3c]
shr edx, 1
push edx
push eax
add ecx, 0x28
call fcn.00403570
movzx ecx, byte [esi + 0x15]
mov eax, dword [ebp + 0xc]
neg ecx
sbb ecx, ecx
and ecx, 0xc00
add ecx, 0x400
push ecx
mov ecx, dword [eax]
lea edx, [eax + 0x20]
push edx
push esi
call fcn.00424cc0
cmp eax, ebx
jl 0x424bbe
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 0x44]
mov eax, dword [eax + 0x20]
push ecx
call fcn.00424e00
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x134], eax
mov eax, dword [edx + 0x20]
cmp eax, ebx
je 0x4249fd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x20], ebx
cmp dword [ebp - 0x134], ebx
jl 0x424c39
mov ecx, dword [ebp + 0xc]
add ecx, 0x44
push ecx
lea ecx, [ebp - 0x130]
call fcn.004018b0
add esp, 4
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0xc]
add ecx, 0x44
push eax
call fcn.00403f40
mov esi, 8
mov byte [ebp - 4], bl
cmp dword [ebp - 0x11c], esi
jb 0x424a4d
mov edx, dword [ebp - 0x130]
push edx
call fcn.00444884
add esp, 4
mov eax, dword [ebp + 0xc]
add eax, 0x44
mov dword [ebp - 0x144], ebx
cmp dword [eax + 0x14], esi
jb 0x424a60
mov eax, dword [eax]
lea ecx, [ebp - 0x144]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
cmp edi, ebx
jbe 0x424b61
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
je 0x424b61
mov eax, dword [ebp + 0xc]
add eax, 0x44
cmp dword [eax + 0x14], 8
jb 0x424a9f
mov eax, dword [eax]
push esi
push edi
push ebx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x424b52
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea edx, [ebp - 0x148]
push edx
lea eax, [ebp - 0x140]
push eax
push 0x468634
push esi
mov dword [ebp - 0x148], ebx
call edi
cmp eax, ebx
je 0x424b52
push 0xfe
lea edx, [ebp - 0x112]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x114], cx
call fcn.00449a10
mov eax, dword [ebp - 0x140]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
add esp, 0xc
push str.FileDescription
push ecx
push edx
lea eax, [ebp - 0x114]
push str.StringFileInfo_04x_04x_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea ecx, [ebp - 0x14c]
push ecx
lea edx, [ebp - 0x138]
push edx
lea eax, [ebp - 0x114]
push eax
push esi
mov dword [ebp - 0x14c], ebx
call edi
test eax, eax
je 0x424b52
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x138]
add ecx, 0x60
push ecx
call fcn.004033d0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [ebp - 0x134]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x424b9e
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x424b9e
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x424b9e
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00444627
mov esp, ebp
pop ebp
ret 0xc
cmp byte [esi + 0x15], bl
je 0x424bdd
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
lea ecx, [eax + 0x44]
push ecx
push edx
call fcn.00424e90
mov dword [ebp - 0x134], eax
jmp 0x4249fd
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x138], esp
push str.Unable_to_OpenProcess__status:__d
call fcn.00403660
lea ebx, [ebp - 0x130]
call fcn.0040e7c0
add esp, 0x20
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
add ecx, 0x44
push eax
call fcn.00403f40
mov byte [ebp - 4], 0
cmp dword [ebp - 0x11c], 8
jb 0x424c2d
mov eax, dword [ebp - 0x130]
push eax
call fcn.00444884
add esp, 4
mov dword [ebp - 0x134], 0xc0000001
xor ebx, ebx
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x138], ebx
call fcn.00425c20
lea eax, [ebp - 0x13c]
lea edi, [ebp + 0xc]
mov byte [ebp - 4], 3
call fcn.004253e0
mov byte [ebp - 4], bl
mov esi, dword [ebp - 0x138]
cmp esi, ebx
je 0x424b61
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x424b61
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x424b61
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
jmp 0x424b61
push 0xb
add ecx, 0x28
push str.System_Idle
call fcn.00403570
jmp 0x424b67