Function at 0x409b13
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c0d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x54
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 1
push str.1.0.0.0
lea ecx, [ebp - 0x14]
call fcn.0043d811
mov byte [ebp - 4], 2
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0xc]
push eax
push str.IN_CLaserSMMgrApp::GetEXEVersion__szFileName_is___s_
call fcn.00413e70
add esp, 8
lea ecx, [ebp + 0xc]
call fcn.00404560
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x40]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x409bd2
push str.IN_CLaserSMMgrApp::GetEXEVersion__GetFileVersionInfoSize_failed
call fcn.00413e70
add esp, 4
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
call fcn.0043d518
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x38]
or ecx, 1
mov dword [ebp - 0x38], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0043d7a3
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.0043d7a3
mov eax, dword [ebp + 8]
jmp 0x409f0a
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x409c25
push str.IN_CLaserSMMgrApp::GetEXEVersion__GetProcessHeap___failed
call fcn.00413e70
add esp, 4
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp + 8]
call fcn.0043d518
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x38]
or al, 1
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0043d7a3
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.0043d7a3
mov eax, dword [ebp + 8]
jmp 0x409f0a
mov ecx, dword [ebp - 0x2c]
push ecx
push 0
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x409c83
push str.IN_CLaserSMMgrApp::GetEXEVersion__HeapAlloc___failed
call fcn.00413e70
add esp, 4
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
call fcn.0043d518
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x38]
or ecx, 1
mov dword [ebp - 0x38], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0043d7a3
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.0043d7a3
mov eax, dword [ebp + 8]
jmp 0x409f0a
lea ecx, [ebp + 0xc]
call fcn.00404560
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push 0
mov ecx, dword [ebp - 0x50]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x409d4e
push str.IN_CLaserSMMgrApp::GetEXEVersion__GetFileVersionInfo___failed
call fcn.00413e70
add esp, 4
mov edx, dword [ebp - 0x1c]
push edx
push 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x409d16
push 0x45da10
call fcn.00413e70
add esp, 4
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0043d518
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x38]
or edx, 1
mov dword [ebp - 0x38], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0043d7a3
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.0043d7a3
mov eax, dword [ebp + 8]
jmp 0x409f0a
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
call fcn.0043d518
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x38]
or ecx, 1
mov dword [ebp - 0x38], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0043d7a3
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.0043d7a3
mov eax, dword [ebp + 8]
jmp 0x409f0a
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x28]
push eax
push 0x45da44
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x409e11
push str.IN_CLaserSMMgrApp::GetEXEVersion__VerQueryValue___failed
call fcn.00413e70
add esp, 4
mov edx, dword [ebp - 0x1c]
push edx
push 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x409dd9
push 0x45da84
call fcn.00413e70
add esp, 4
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0043d518
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x38]
or edx, 1
mov dword [ebp - 0x38], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0043d7a3
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.0043d7a3
mov eax, dword [ebp + 8]
jmp 0x409f0a
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
call fcn.0043d518
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x38]
or ecx, 1
mov dword [ebp - 0x38], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0043d7a3
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.0043d7a3
mov eax, dword [ebp + 8]
jmp 0x409f0a
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x14]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x14]
shr eax, 0x10
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x10]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x10]
shr ecx, 0x10
push ecx
push str._i._i._i._i
lea edx, [ebp - 0x14]
push edx
call fcn.0043c7c7
add esp, 0x18
mov eax, dword [ebp - 0x1c]
push eax
push 0
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x409eb2
push str.IN_CLaserSMMgrApp::GetEXEVersion__HeapFree___failed
call fcn.00413e70
add esp, 4
mov dword [ebp - 0x1c], 0
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp + 8]
call fcn.0043d518
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x38]
or al, 1
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0043d7a3
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.0043d7a3
mov eax, dword [ebp + 8]
jmp 0x409f0a
jmp 0x409ed4
mov dword [ebp - 4], 2
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp + 8]
call fcn.0043d518
mov eax, dword [ebp - 0x38]
or al, 1
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0043d7a3
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.0043d7a3
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8