Function at 0x40f738
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x654
mov eax, dword [0x44000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 0x62c], ecx
push 0x208
lea eax, [ebp - 0x618]
push eax
push dword [ebx + 4]
push dword [ebx]
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
je 0x40fb77
mov esi, 0xfde9
lea edx, [ebp - 0x618]
push esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
call fcn.00409d37
pop ecx
pop ecx
mov ecx, dword [ebp - 0x62c]
mov edx, 0x43a61c
mov edi, eax
call fcn.0040a70c
mov edx, edi
mov ecx, eax
call fcn.0040a596
mov edx, 0x43a188
mov ecx, eax
call fcn.0040a70c
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.00408008
push 0xc
lea eax, [ebp - 0x654]
push eax
push dword [ebx + 4]
push dword [ebx]
call dword [sym.imp.PSAPI.DLL_GetModuleInformation]
mov edi, dword [ebp - 0x62c]
test eax, eax
je 0x40f84e
mov eax, dword [ebp - 0x650]
mov edx, str.___________Image_Base:_______0x
push 8
pop ecx
mov dword [ebp - 0x634], eax
mov eax, dword [ebp - 0x654]
mov dword [ebp - 0x630], ecx
mov dword [ebp - 0x640], ecx
mov ecx, edi
mov dword [ebp - 0x644], eax
call fcn.0040a70c
lea edx, [ebp - 0x644]
mov ecx, eax
call fcn.0040fd2e
mov ebx, 0x43a188
mov ecx, eax
mov edx, ebx
call fcn.0040a70c
mov edx, str.___________Image_Size:_______0x
mov ecx, eax
call fcn.0040a70c
lea edx, [ebp - 0x634]
mov ecx, eax
call fcn.0040fd2e
mov edx, ebx
mov ecx, eax
call fcn.0040a70c
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x618]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x630], eax
test eax, eax
je 0x40fb77
inc eax
push eax
call fcn.0041747f
pop ecx
mov ebx, eax
lea eax, [ebp - 0x618]
push ebx
push dword [ebp - 0x630]
mov dword [ebp - 0x63c], ebx
push dword [ebp - 0x648]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
and dword [ebp - 0x628], 0
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x628]
push eax
push 0x439870
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40fa6d
mov eax, dword [ebp - 0x628]
mov edx, str.___________File_Version:
mov ecx, edi
movzx ebx, word [eax + 0xa]
call fcn.0040a70c
push 0xa
mov edi, eax
lea eax, [ebp - 0x44]
push 0x20
push eax
push ebx
call fcn.00422741
lea edx, [ebp - 0x44]
mov ecx, edi
call fcn.0040a70c
mov ecx, eax
mov dl, 0x2e
mov eax, dword [ebp - 0x628]
movzx ebx, word [eax + 8]
call fcn.0040a22b
push 0xa
mov edi, eax
lea eax, [ebp - 0x24]
push 0x20
push eax
push ebx
call fcn.00422741
lea edx, [ebp - 0x24]
mov ecx, edi
call fcn.0040a70c
mov ecx, eax
mov dl, 0x2e
mov eax, dword [ebp - 0x628]
movzx ebx, word [eax + 0xe]
call fcn.0040a22b
push 0xa
mov edi, eax
lea eax, [ebp - 0x64]
push 0x20
push eax
push ebx
call fcn.00422741
lea edx, [ebp - 0x64]
mov ecx, edi
call fcn.0040a70c
mov ecx, eax
mov dl, 0x2e
mov eax, dword [ebp - 0x628]
movzx ebx, word [eax + 0xc]
call fcn.0040a22b
push 0xa
mov edi, eax
lea eax, [ebp - 0x84]
push 0x20
push eax
push ebx
call fcn.00422741
add esp, 0x40
lea edx, [ebp - 0x84]
mov ecx, edi
call fcn.0040a70c
mov ecx, eax
mov edx, 0x43a188
mov eax, dword [ebp - 0x628]
movzx ebx, word [eax + 0x12]
call fcn.0040a70c
mov edx, str.___________Product_Version:
mov ecx, eax
call fcn.0040a70c
push 0xa
mov edi, eax
lea eax, [ebp - 0xa4]
push 0x20
push eax
push ebx
call fcn.00422741
lea edx, [ebp - 0xa4]
mov ecx, edi
call fcn.0040a70c
mov ecx, eax
mov eax, dword [ebp - 0x628]
movzx ebx, word [eax + 0x10]
mov dl, 0x2e
call fcn.0040a22b
push 0xa
mov edi, eax
lea eax, [ebp - 0xc4]
push 0x20
push eax
push ebx
call fcn.00422741
lea edx, [ebp - 0xc4]
mov ecx, edi
call fcn.0040a70c
mov ecx, eax
mov dl, 0x2e
mov eax, dword [ebp - 0x628]
movzx ebx, word [eax + 0x16]
call fcn.0040a22b
push 0xa
mov edi, eax
lea eax, [ebp - 0xe4]
push 0x20
push eax
push ebx
call fcn.00422741
lea edx, [ebp - 0xe4]
mov ecx, edi
call fcn.0040a70c
mov ecx, eax
mov dl, 0x2e
mov eax, dword [ebp - 0x628]
movzx ebx, word [eax + 0x14]
call fcn.0040a22b
push 0xa
mov edi, eax
lea eax, [ebp - 0x104]
push 0x20
push eax
push ebx
call fcn.00422741
add esp, 0x40
lea edx, [ebp - 0x104]
mov ecx, edi
call fcn.0040a70c
mov edx, 0x43a188
mov ecx, eax
call fcn.0040a70c
mov edi, dword [ebp - 0x63c]
xor ebx, ebx
mov dword [ebp - 0x624], 0x43a6a4
mov dword [ebp - 0x620], 0x43a6bc
mov dword [ebp - 0x61c], 0x43a6dc
mov dword [ebp - 0x10], str.Company:
mov dword [ebp - 0xc], str.File_Description:
mov dword [ebp - 8], str.Product_Name:
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x630]
push eax
push str.VarFileInfoTranslation
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40fb6b
mov ecx, dword [ebp - 0x630]
push dword [ebp + ebx - 0x624]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x208]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.0040fed1
add esp, 0x14
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x208]
push eax
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40fb6b
mov edx, dword [ebp - 0x640]
lea ecx, [ebp - 0x3c]
push esi
push 0xffffffffffffffff
call fcn.00409d37
pop ecx
pop ecx
mov ecx, dword [ebp - 0x62c]
mov edx, 0x43a79c
mov edi, eax
call fcn.0040a70c
mov edx, dword [ebp + ebx - 0x10]
mov ecx, eax
call fcn.0040a70c
mov edx, edi
mov ecx, eax
call fcn.0040a596
mov edx, 0x43a188
mov ecx, eax
call fcn.0040a70c
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.00408008
mov edi, dword [ebp - 0x63c]
add ebx, 4
cmp ebx, 0xc
jb 0x40faa8
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x62c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004171a2
mov esp, ebp
pop ebp
ret