Function at 0x403360
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5263a9
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x587730]
xor eax, ebp
mov dword [ebp - 0x30], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7c], 0
push str.Compsetupstarter
lea ecx, [ebp - 0x48]
call fcn.00406480
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.00406440
mov byte [ebp - 4], 2
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x10]
call fcn.00406480
mov byte [ebp - 4], 3
mov byte [ebp - 0x49], 0
lea ecx, [ebp - 0x2c]
call fcn.00419274
mov byte [ebp - 4], 4
push 0
lea ecx, [ebp - 0x10]
call fcn.00406580
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041931b
test eax, eax
je 0x40359c
lea ecx, [ebp - 0x60]
push ecx
push 0
lea ecx, [ebp - 0x10]
call fcn.00406590
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 0x58]
push edx
call fcn.0041730b
add esp, 4
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x4034d1
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x60]
push eax
push 0
lea ecx, [ebp - 0x10]
call fcn.00406590
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4034d1
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x5c]
push edx
push 0x536ec8
mov eax, dword [ebp - 0x54]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4034d1
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 8]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 8]
and eax, 0xffff
movzx ecx, ax
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 0xc]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 0xc]
and eax, 0xffff
movzx ecx, ax
mov dword [ebp - 0x34], ecx
mov byte [ebp - 0x49], 1
cmp dword [ebp - 0x54], 0
je 0x4034e9
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x74]
push eax
call fcn.00417316
add esp, 4
movzx ecx, byte [ebp - 0x49]
test ecx, ecx
je 0x403538
lea ecx, [ebp - 0x6c]
call fcn.00406440
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
push str._d._d._d._d
lea eax, [ebp - 0x6c]
push eax
call fcn.00407220
add esp, 0x18
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x50]
call fcn.00406520
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x6c]
call fcn.00406500
jmp 0x40359a
lea edx, [ebp - 0x10]
push edx
push str.File_version_couldn
lea eax, [ebp - 0x78]
push eax
call fcn.00405d20
add esp, 0xc
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x84], ecx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x84]
call fcn.00406580
push eax
lea ecx, [ebp - 0x48]
call fcn.00406580
push eax
push 1
push 0x588f50
call fcn.00416d20
add esp, 0x10
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x78]
call fcn.00406500
push 0x537d0c
lea ecx, [ebp - 0x50]
call fcn.00406540
jmp 0x4035ca
mov edx, dword [ebp - 0x10]
push edx
push str.__GetFileVers:_File_not_found:__s
lea ecx, [ebp - 0x48]
call fcn.00406580
push eax
push 0xb
push 0x588f50
call fcn.00416d20
add esp, 0x14
push 0x537cc0
lea ecx, [ebp - 0x50]
call fcn.00406540
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406460
mov ecx, dword [ebp - 0x7c]
or ecx, 1
mov dword [ebp - 0x7c], ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.004192a6
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.00406500
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.00406500
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00406500
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.0050c838
mov esp, ebp
pop ebp
ret