Function at 0x421c06
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x2204]
mov eax, 0x2204
call fcn.00432340
push 0xffffffffffffffff
push 0x43f8ff
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x451070]
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.00428f40
add esp, 0xc
lea eax, [ebp]
push eax
push 0x2000
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x421d77
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 0x421d1b
test dword [ebp - 0x14], 0xfffffffc
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x18], ebx
jbe 0x421d1b
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 0x421da6
mov eax, dword [ebp - 0x14]
inc dword [ebp - 0x18]
shr eax, 2
cmp dword [ebp - 0x18], eax
jb 0x421cbd
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 0x421e1d
inc esi
cmp esi, 2
jb 0x421d2b
mov esi, dword [ebp - 0x1c]
push 0x445b70
call fcn.00401600
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.00426962
add ebp, 0x2204
leave
ret
xor edi, edi
inc edi
cmp dword [ebp - 0x14], ebx
je 0x421dc8
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x64]
call fcn.0040d2d4
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 2
jmp 0x421de2
push 0x445b70
lea esi, [ebp - 0x9c]
call fcn.00401600
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 4
mov esi, dword [ebp - 0x1c]
push eax
call fcn.00401620
or dword [ebp - 0x10], edi
test byte [ebp - 0x10], 4
je 0x421e05
and dword [ebp - 0x10], 0xfffffffb
push ebx
push edi
lea esi, [ebp - 0x9c]
call fcn.0040186b
test byte [ebp - 0x10], 2
je 0x421e15
lea esi, [ebp - 0x64]
push ebx
push edi
call fcn.0040186b
mov eax, dword [ebp - 0x1c]
jmp 0x421d83
cmp dword [ebp - 0x14], ebx
je 0x421e40
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x48]
call fcn.0040d2d4
mov dword [ebp - 4], 2
mov dword [ebp - 0x10], 8
jmp 0x421e5b
push 0x445b70
lea esi, [ebp - 0x80]
call fcn.00401600
mov dword [ebp - 4], 3
mov dword [ebp - 0x10], 0x10
mov esi, dword [ebp - 0x1c]
push eax
call fcn.00401620
xor edi, edi
inc edi
or dword [ebp - 0x10], edi
test byte [ebp - 0x10], 0x10
je 0x421e7e
and dword [ebp - 0x10], 0xffffffef
push ebx
push edi
lea esi, [ebp - 0x80]
call fcn.0040186b
test byte [ebp - 0x10], 8
je 0x421e15
lea esi, [ebp - 0x48]
jmp 0x421e0e