Function at 0x407c20
Capabilities:
Get file version info

Disassembly:
sub esp, 0x228
lea eax, [esp + 0x1c]
push ebx
push esi
push edi
mov esi, dword [esp + 0x238]
push ebp
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jne 0x407c7e
lea eax, [esp + 0x28]
push eax
push esi
call fcn.0040b600
add esp, 8
test eax, eax
je 0x407c6e
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x240]
mov edx, dword [esp + 0x244]
mov dword [ecx], eax
mov dword [edx], 0
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x228
ret
mov ecx, dword [esp + 0x248]
mov eax, dword [esp + 0x24c]
push edi
mov dword [ecx], 0
mov dword [eax], 0
call fcn.0040bf40
add esp, 4
mov ebx, eax
test ebx, ebx
jne 0x407cbe
mov ebp, dword [esp + 0x250]
push esi
push 0x41fc14
push str.Out_of_memory_allocating_version_buffer_for_file__1
jmp 0x407e9d
mov eax, dword [esp + 0x2c]
push ebx
push edi
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x407cf6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, dword [esp + 0x250]
push esi
push eax
push str._d_s
push str.GetFileVersionInfo_returned__1_on_file__2
push ebp
call fcn.00406e20
add esp, 0x14
jmp 0x407ea6
mov ebp, dword [esp + 0x250]
lea eax, [esp + 0x34]
lea ecx, [esp + 0x20]
push ebp
push esi
push eax
push ecx
push 0x421aa8
push ebx
call fcn.00407ee0
add esp, 0x18
test eax, eax
je 0x407d37
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x240]
mov edx, dword [eax + 8]
mov dword [ecx], edx
mov edx, dword [eax + 0xc]
mov ecx, dword [esp + 0x244]
mov dword [ecx], edx
lea eax, [esp + 0x14]
push ebp
lea ecx, [esp + 0x14]
push esi
push eax
push ecx
push str.VarFileInfoTranslation
push ebx
call fcn.00407ee0
add esp, 0x18
test eax, eax
je 0x407ec0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov eax, ecx
mov dword [esp + 0x24], ecx
and eax, 0xffff
lea ecx, [esp + 0x138]
mov dword [esp + 0x18], eax
push eax
push 0x420c10
push ecx
call fcn.0040dcf0
add dword [esp + 0x1c], 4
add esp, 0xc
cmp dword [esp + 0x14], 4
jbe 0x407dd2
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov cx, word [eax]
lea edi, [esp + 0x138]
push ecx
sub eax, eax
push 0x421a88
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + ecx + 0x13f]
push eax
call fcn.0040dcf0
sub dword [esp + 0x20], 4
add dword [esp + 0x1c], 4
add esp, 0xc
cmp dword [esp + 0x14], 4
ja 0x407d90
lea eax, [esp + 0x138]
push eax
call fcn.0040bf10
mov ecx, dword [esp + 0x250]
add esp, 4
test eax, eax
mov dword [ecx], eax
jne 0x407dff
push esi
push 0x41fc14
push str.Out_of_memory_duplicating_language_string_for_file__1
jmp 0x407e9d
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
shr eax, 0x10
push ecx
movzx edi, ax
lea eax, [esp + 0x3c]
push edi
push str.StringFileInfo_04x_04xFileVersion
push eax
call fcn.0040dcf0
lea ecx, [esp + 0x40]
lea edx, [esp + 0x2c]
lea eax, [esp + 0x48]
add esp, 0x10
push ebp
push esi
push ecx
push edx
push eax
push ebx
call fcn.00407ee0
add esp, 0x18
test eax, eax
jne 0x407e71
mov eax, dword [esp + 0x18]
push edi
lea ecx, [esp + 0x3c]
push eax
push str.StringFileInfo_04x_04xFileVersion
push ecx
call fcn.0040dcf0
lea ecx, [esp + 0x40]
lea edx, [esp + 0x2c]
lea eax, [esp + 0x48]
add esp, 0x10
push ebp
push esi
push ecx
push edx
push eax
push ebx
call fcn.00407ee0
add esp, 0x18
cmp dword [esp + 0x1c], 0
je 0x407ec0
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040bf10
mov ecx, dword [esp + 0x24c]
add esp, 4
test eax, eax
mov dword [ecx], eax
jne 0x407ec0
push esi
push 0x41fc14
push str.Out_of_memory_duplicating_version_string_for_file__1
push ebp
call fcn.00406e20
add esp, 0x10
test ebx, ebx
je 0x407eb3
push ebx
call fcn.0040bec0
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x228
ret
push ebx
call fcn.0040bec0
add esp, 4
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x228
ret