Function at 0x4011b0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x43c
mov eax, dword [0x41f4c8]
xor eax, esp
mov dword [esp + 0x438], eax
mov eax, dword [esp + 0x448]
mov ecx, dword [esp + 0x44c]
mov edx, dword [esp + 0x450]
push esi
mov dword [esp + 0xc], eax
mov eax, dword [0x474abc]
cmp eax, 1
push edi
mov edi, dword [esp + 0x44c]
mov dword [esp + 8], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], edx
mov byte [esp + 0x40], 0
jle 0x40126a
mov esi, 1
mov eax, dword [0x474ac0]
mov ecx, dword [eax + esi*4]
push 7
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.00404b00
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x4b], 0
call fcn.00416b71
push 7
lea ecx, [esp + 0x48]
push str._TITLE:
push ecx
call fcn.00404cfb
add esp, 0x1c
test eax, eax
je 0x40124d
inc esi
cmp esi, dword [0x474abc]
jl 0x401206
jmp 0x40126a
mov edx, dword [0x474ac0]
mov esi, dword [edx + esi*4]
lea eax, [esi + 7]
lea edx, [esp + 0x40]
sub edx, eax
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401260
mov eax, dword [0x474ac0]
mov ecx, dword [eax]
mov edx, edi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x401273
push ebp
lea ecx, [esp + 0x38]
push ecx
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, eax
push esi
push 8
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x401348
push edi
push esi
mov esi, dword [esp + 0x14]
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40133a
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x14]
push eax
push str.StringFileInfo041104b0FileVersion
push edi
call sub.VERSION.dll_VerQueryValueA
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov eax, edx
sub esi, edx
mov edi, edi
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x4012e0
cmp byte [esp + 0x44], cl
jne 0x401307
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x14]
push edx
push str.StringFileInfo041104b0ProductName
push edi
call sub.VERSION.dll_VerQueryValueA
jmp 0x40131a
lea ecx, [esp + 0x44]
jmp 0x401310
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x401310
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push eax
push ecx
push str._s__s
push edx
call fcn.004048de
mov esi, dword [esp + 0x1c]
add esp, 0x10
push edi
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40134c
mov esi, dword [esp + 0xc]
mov eax, dword [0x474ac0]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov edx, esi
pop ebp
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x401360
mov edx, dword [0x474ac0]
mov ecx, dword [edx]
mov edx, esi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x401374
push 0
push 0x80
push 3
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
lea eax, [esp + 0x34]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx edx, word [esp + 0x2a]
movzx eax, word [esp + 0x26]
movzx ecx, word [esp + 0x24]
push edx
mov edx, dword [esp + 0x20]
push eax
push ecx
push str._.4d._.2d._.2d
push edx
call fcn.004048de
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x440]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0040495b
add esp, 0x43c
ret