Function at 0x4204b1
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x2204]
mov eax, 0x2204
call fcn.00430970
push 0xffffffffffffffff
push 0x43e3a5
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x44e060]
xor eax, ebp
mov dword [ebp + 0x2200], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x220c]
xor ebx, ebx
push 0x1fff
mov dword [ebp - 0x20], eax
lea eax, [ebp + 1]
mov esi, ecx
push ebx
mov dword [ebp - 0x10], ebx
push eax
mov dword [ebp - 0x1c], esi
mov edi, edx
mov byte [ebp], bl
call fcn.004278a0
add esp, 0xc
lea eax, [ebp]
push eax
push 0x2000
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x420622
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push str.VarFileInfoTranslation
lea eax, [ebp]
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x14], ebx
call sub.VERSION.dll_VerQueryValueW
mov edi, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
test eax, eax
je 0x4205c6
test dword [ebp - 0x14], 0xfffffffc
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x18], ebx
jbe 0x4205c6
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x20]
shl eax, 2
movzx ecx, word [eax + esi + 2]
movzx eax, word [eax + esi]
push ecx
push eax
push str.StringFileInfo_04x_04x_s
lea eax, [ebp + 0x2100]
push 0x80
push eax
call edi
add esp, 0x18
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x2100]
push eax
lea eax, [ebp]
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x14], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x420651
mov eax, dword [ebp - 0x14]
inc dword [ebp - 0x18]
shr eax, 2
cmp dword [ebp - 0x18], eax
jb 0x420568
mov dword [ebp - 0x2c], 0x40904b0
mov dword [ebp - 0x28], 0x40904e4
xor esi, esi
push dword [ebp - 0x20]
lea eax, [ebp + 0x2000]
push dword [ebp + esi*4 - 0x2c]
push str.StringFileInfo_08x_s
push 0x80
push eax
call edi
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x2000]
push eax
lea eax, [ebp]
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x4206c8
inc esi
cmp esi, 2
jb 0x4205d6
mov esi, dword [ebp - 0x1c]
push 0x443b64
call fcn.004021fa
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2200]
xor ecx, ebp
call fcn.0042515e
add ebp, 0x2204
leave
ret
xor edi, edi
inc edi
cmp dword [ebp - 0x14], ebx
je 0x420673
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x64]
call fcn.0040c1b2
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 2
jmp 0x42068d
push 0x443b64
lea esi, [ebp - 0x9c]
call fcn.004021fa
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 4
mov esi, dword [ebp - 0x1c]
push eax
call fcn.0040221a
or dword [ebp - 0x10], edi
test byte [ebp - 0x10], 4
je 0x4206b0
and dword [ebp - 0x10], 0xfffffffb
push ebx
push edi
lea esi, [ebp - 0x9c]
call fcn.00402701
test byte [ebp - 0x10], 2
je 0x4206c0
lea esi, [ebp - 0x64]
push ebx
push edi
call fcn.00402701
mov eax, dword [ebp - 0x1c]
jmp 0x42062e
cmp dword [ebp - 0x14], ebx
je 0x4206eb
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x48]
call fcn.0040c1b2
mov dword [ebp - 4], 2
mov dword [ebp - 0x10], 8
jmp 0x420706
push 0x443b64
lea esi, [ebp - 0x80]
call fcn.004021fa
mov dword [ebp - 4], 3
mov dword [ebp - 0x10], 0x10
mov esi, dword [ebp - 0x1c]
push eax
call fcn.0040221a
xor edi, edi
inc edi
or dword [ebp - 0x10], edi
test byte [ebp - 0x10], 0x10
je 0x420729
and dword [ebp - 0x10], 0xffffffef
push ebx
push edi
lea esi, [ebp - 0x80]
call fcn.00402701
test byte [ebp - 0x10], 8
je 0x4206c0
lea esi, [ebp - 0x48]
jmp 0x4206b9