Function at 0x404b30
Capabilities:
Get file version info

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x408093
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push ebp
mov ebp, dword [esp + 0x144]
push esi
test ebp, ebp
push edi
jne 0x404b6f
lea eax, [esp + 0x38]
push 0x104
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ebp, [esp + 0x38]
lea ecx, [esp + 0x30]
push ecx
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, dword [esp + 0x150]
push 0x40c988
mov ecx, esi
mov ebx, eax
call fcn.00407606
test ebx, ebx
je 0x404e46
push ebx
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
test edi, edi
je 0x404e46
mov edx, dword [esp + 0x30]
push edi
push ebx
push edx
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [esp + 0x24]
lea ecx, [esp + 0x34]
push eax
push ecx
xor ebx, ebx
push str.VarFileInfoTranslation
push edi
mov dword [esp + 0x34], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x404e3d
push 0x40c988
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x34]
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x144], ebx
mov dx, word [eax + 2]
mov cx, word [eax]
push edx
push ecx
lea edx, [esp + 0x28]
push str.StringFileInfo_04x_04xProductVersion
push edx
call sub.MFC42.DLL_CString::Format_1
mov edx, dword [esp + 0x30]
add esp, 0x10
lea eax, [esp + 0x24]
lea ecx, [esp + 0x2c]
push eax
push ecx
push edx
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x404e29
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x404e29
cmp dword [esp + 0x24], ebx
je 0x404e29
push eax
mov ecx, esi
call fcn.00407606
push 0x40c988
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
push 0x40c988
lea ecx, [esp + 0x1c]
mov byte [esp + 0x148], 1
call sub.MFC42.DLL_CString::CString_2
push 0x40c988
lea ecx, [esp + 0x20]
mov byte [esp + 0x148], 2
call sub.MFC42.DLL_CString::CString_2
push 0x40c988
lea ecx, [esp + 0x2c]
mov byte [esp + 0x148], 3
call sub.MFC42.DLL_CString::CString_2
mov bl, 4
push esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x148], bl
call fcn.00407534
lea eax, [esp + 0x14]
push 0x40c70c
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::SpanExcluding
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x148], 5
call fcn.00407534
lea ecx, [esp + 0x14]
mov byte [esp + 0x144], bl
call fcn.004074ce
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx - 8]
mov ebp, dword [edx - 8]
sub eax, ebp
lea ecx, [esp + 0x10]
dec eax
push eax
lea eax, [esp + 0x18]
push eax
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x148], 6
call fcn.00407534
lea ecx, [esp + 0x14]
mov byte [esp + 0x144], bl
call fcn.004074ce
lea ecx, [esp + 0x14]
push 0x40c70c
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::SpanExcluding
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x148], 7
call fcn.00407534
lea ecx, [esp + 0x14]
mov byte [esp + 0x144], bl
call fcn.004074ce
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov eax, dword [edx - 8]
mov ebp, dword [ecx - 8]
sub eax, ebp
lea edx, [esp + 0x14]
dec eax
push eax
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x148], 8
call fcn.00407534
lea ecx, [esp + 0x14]
mov byte [esp + 0x144], bl
call fcn.004074ce
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
call fcn.00407534
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
push str._s._s
push esi
call sub.MFC42.DLL_CString::Format_1
push edi
call sub.MFC42.DLL_operatordelete
add esp, 0x14
lea ecx, [esp + 0x28]
mov byte [esp + 0x144], 3
call fcn.004074ce
lea ecx, [esp + 0x1c]
mov byte [esp + 0x144], 2
call fcn.004074ce
lea ecx, [esp + 0x18]
mov byte [esp + 0x144], 1
call fcn.004074ce
lea ecx, [esp + 0x10]
mov byte [esp + 0x144], 0
call fcn.004074ce
lea ecx, [esp + 0x20]
mov dword [esp + 0x144], 0xffffffff
call fcn.004074ce
mov eax, 1
jmp 0x404e48
lea ecx, [esp + 0x20]
mov dword [esp + 0x144], 0xffffffff
call fcn.004074ce
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x138
ret 8