Function at 0x596e90
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406e34
mov eax, dword [ebp - 8]
call fcn.00406e34
xor eax, eax
push ebp
push 0x597112
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
call fcn.00406d50
cmp dword [ebp - 4], 0
jne 0x596ef3
lea edx, [ebp - 4]
mov eax, dword [0x5b1760]
mov eax, dword [eax]
call fcn.005305c0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
call fcn.00407c20
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jbe 0x5970df
mov eax, ebx
call fcn.0040458c
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x5970d8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
push eax
push ebx
push 0
push esi
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x5970c2
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x597120
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x5970c2
lea eax, [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0x2c]
movzx eax, word [ebx]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0
movzx eax, word [ebx + 2]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
lea edx, [ebp - 0x3c]
mov ecx, 1
mov eax, 0x597160
call fcn.00420bc4
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x597180
push dword [ebp - 0x10]
push 0x5971b0
push dword [ebp - 8]
lea eax, [ebp - 0x40]
mov edx, 4
call fcn.00407f04
mov eax, dword [ebp - 0x40]
call fcn.00407c20
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x596fd5
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x20]
call fcn.00407c78
jmp 0x5970c2
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x44]
mov ecx, dword [ebp - 8]
mov edx, 0x5971c0
call fcn.00407e7c
mov eax, dword [ebp - 0x44]
call fcn.00407c20
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x597013
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x20]
call fcn.00407c78
jmp 0x5970c2
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 8]
mov edx, 0x597200
call fcn.00407e7c
mov eax, dword [ebp - 0x48]
call fcn.00407c20
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x59704e
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x20]
call fcn.00407c78
jmp 0x5970c2
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x4c]
mov ecx, dword [ebp - 8]
mov edx, 0x597240
call fcn.00407e7c
mov eax, dword [ebp - 0x4c]
call fcn.00407c20
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x597089
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x20]
call fcn.00407c78
jmp 0x5970c2
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x50]
mov ecx, dword [ebp - 8]
mov edx, 0x597280
call fcn.00407e7c
mov eax, dword [ebp - 0x50]
call fcn.00407c20
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x5970c2
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x20]
call fcn.00407c78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5970df
mov eax, dword [ebp - 0x18]
call fcn.004045a8
ret
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
call fcn.00407130
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x597119
lea eax, [ebp - 0x50]
mov edx, 5
call fcn.00406db0
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00406db0
ret