Function at 0x406210
Capabilities:
Get file version info

Disassembly:
sub esp, 0x148
push ebx
push ebp
push esi
push edi
mov edi, 0x413da0
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x160]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [esp + 0x15c]
mov eax, ecx
mov esi, edi
mov edi, ebx
mov dword [esp + 0x20], 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x413da0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x20]
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x164]
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x40641b
push esi
call fcn.0040806b
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esp + 0x1c], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x18]
push eax
push esi
push 0
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40640e
lea ecx, [esp + 0x24]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x10], ecx
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], eax
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push 0x411314
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x406332
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov edx, ecx
and edx, 0xffff
shr ecx, 0x10
push edx
push ecx
mov ecx, eax
and ecx, 0xffff
shr eax, 0x10
push ecx
push eax
push str._u._u._u._u
push ebx
call esi
add esp, 0x18
jmp 0x406338
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [esp + 0x10]
mov ecx, 0xd
xor eax, eax
mov dword [esp + 0x14], 0
rep stosd dword es:[edi], eax
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push str.VarFileInfoTranslation
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40640e
mov ebx, dword [esp + 0x14]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x59]
mov byte [esp + 0x58], 0
xor ebp, ebp
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
stosw word es:[edi], ax
shr ebx, 2
test ebx, ebx
stosb byte es:[edi], al
mov dword [esp + 0x1c], ecx
jle 0x40640e
jmp 0x40639c
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
test ebp, ebp
jle 0x4063a5
add dword [esp + 0x1c], 4
mov edx, dword [esp + 0x1c]
test ebp, ebp
mov eax, dword [edx]
jne 0x4063c6
and eax, 0xffff
push eax
lea eax, [esp + 0x5c]
push 0x4113f4
push eax
call esi
add esp, 0xc
jmp 0x4063e3
mov ecx, dword [esp + 0x164]
and eax, 0xffff
push eax
push ecx
lea edx, [esp + 0x60]
push str._s__u
push edx
call esi
add esp, 0x10
lea edi, [esp + 0x58]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x164]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebp
cmp ebp, ebx
rep movsb byte es:[edi], byte [esi]
jl 0x406396
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00408002
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x148
ret