Function at 0x409bf0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x435b26
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x45a6d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x1f4], 0xf
mov dword [ebp - 0x1f8], ebx
mov byte [ebp - 0x208], bl
push 0xc8
lea eax, [ebp - 0xf8]
push eax
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0xf8]
push edx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
cmp esi, ebx
jne 0x409ca8
push 0xc
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
push str.None_Version
mov ecx, edi
mov byte [edi], bl
call fcn.004028b2
cmp dword [ebp - 0x1f4], 0x10
jb 0x409f9e
mov eax, dword [ebp - 0x208]
push eax
jmp 0x409f96
push esi
call fcn.0041a77e
add esp, 4
push eax
push esi
push ebx
lea ecx, [ebp - 0xf8]
push ecx
mov dword [ebp - 0x210], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
mov ecx, dword [ebp - 0x210]
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x224]
push eax
push str.VarFileInfoTranslation
push ecx
mov dword [ebp - 0x214], ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
xor ecx, ecx
test dword [ebp - 0x214], 0xfffffffc
mov dword [ebp - 0x20c], ecx
ja 0x409d8a
mov edx, dword [ebp - 0x210]
push edx
call fcn.0041bfc5
mov esi, 0xf
lea eax, [ebp - 0x208]
add esp, 4
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
mov byte [edi], bl
cmp edi, eax
je 0x409f86
cmp dword [edi + 0x14], 0x10
jb 0x409d40
mov ecx, dword [edi]
push ecx
call fcn.0041bfc5
add esp, 4
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
mov byte [edi], bl
cmp dword [ebp - 0x1f4], 0x10
jae 0x409f6a
mov edx, dword [ebp - 0x1f8]
inc edx
push edx
lea eax, [ebp - 0x208]
push eax
push edi
call fcn.0041b8d0
mov edx, dword [ebp - 0x1f8]
mov eax, dword [ebp - 0x1f4]
add esp, 0xc
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], eax
jmp 0x409f9e
mov ecx, dword [ebp - 0x20c]
mov eax, dword [ebp - 0x224]
movzx edx, word [eax + ecx*4 + 2]
movzx eax, word [eax + ecx*4]
push edx
push eax
lea ecx, [ebp - 0x1c0]
push str.StringFileInfo_04x_04xFileVersion
push ecx
call fcn.0041b6ac
add esp, 0x10
lea edx, [ebp - 0x218]
push edx
mov edx, dword [ebp - 0x210]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x1c0]
push ecx
push edx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x218], ebx
call dword [sym.imp.VERSION.dll_VerQueryValueA]
mov eax, dword [ebp - 0x21c]
mov edi, eax
mov dword [ebp - 0x1d8], 0xf
mov dword [ebp - 0x1dc], ebx
mov byte [ebp - 0x1ec], bl
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x409e00
sub eax, esi
mov esi, eax
cmp esi, 0xfffffffe
ja 0x409f60
cmp esi, 0xf
jbe 0x409e28
push ebx
push esi
lea ecx, [ebp - 0x1ec]
call fcn.00402ce9
jmp 0x409e38
cmp esi, ebx
jne 0x409e3a
mov dword [ebp - 0x1dc], ebx
mov byte [ebp - 0x1ec], bl
cmp esi, ebx
seta al
cmp al, bl
je 0x409e85
cmp dword [ebp - 0x1d8], 0x10
mov eax, dword [ebp - 0x1ec]
jae 0x409e56
lea eax, [ebp - 0x1ec]
push esi
push edi
push eax
call fcn.0041dc40
mov eax, dword [ebp - 0x1ec]
mov edi, 0x10
add esp, 0xc
mov dword [ebp - 0x1dc], esi
cmp dword [ebp - 0x1d8], edi
jae 0x409e80
lea eax, [ebp - 0x1ec]
mov byte [eax + esi], bl
jmp 0x409e8a
mov edi, 0x10
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1ec]
cmp dword [ebp - 0x1d8], edi
jae 0x409ea2
lea eax, [ebp - 0x1ec]
lea ecx, [ebp - 0x1c4]
push ecx
lea edx, [ebp - 0x1c8]
push edx
lea ecx, [ebp - 0x1cc]
push ecx
lea edx, [ebp - 0x1d0]
push edx
push str._d__d__d__d
push eax
call fcn.0041c44e
mov eax, dword [ebp - 0x1c4]
mov ecx, dword [ebp - 0x1c8]
mov edx, dword [ebp - 0x1cc]
push eax
mov eax, dword [ebp - 0x1d0]
push ecx
push edx
push eax
lea ecx, [ebp - 0x30]
push str._d._d._d._d
push ecx
call fcn.0041b6ac
lea eax, [ebp - 0x30]
add esp, 0x30
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x409f00
sub eax, edx
lea edx, [ebp - 0x30]
mov ebx, eax
push edx
lea eax, [ebp - 0x208]
call fcn.00402786
mov byte [ebp - 4], 0
cmp dword [ebp - 0x1d8], edi
jb 0x409f35
mov eax, dword [ebp - 0x1ec]
push eax
call fcn.0041bfc5
add esp, 4
mov eax, dword [ebp - 0x20c]
mov ecx, dword [ebp - 0x214]
inc eax
shr ecx, 2
xor ebx, ebx
mov dword [ebp - 0x20c], eax
cmp eax, ecx
jb 0x409d84
mov edi, dword [ebp - 0x220]
jmp 0x409d05
push str.string_too_long
call fcn.0041a6c3
mov ecx, dword [ebp - 0x208]
mov edx, dword [ebp - 0x1f8]
mov eax, dword [ebp - 0x1f4]
mov dword [edi], ecx
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], eax
jmp 0x409f9e
cmp dword [ebp - 0x1f4], 0x10
jb 0x409f9e
mov ecx, dword [ebp - 0x208]
push ecx
call fcn.0041bfc5
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b4d6
mov esp, ebp
pop ebp
ret