Function at 0x404b50
Capabilities:
Check if file exists
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x42c9e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x34]
push esi
lea eax, [esp + 0x1c]
push edi
xor edi, edi
push eax
push ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x2c], edi
mov ebx, 1
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, edi
je 0x404cfe
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 0x20]
mov edi, eax
push edi
push esi
push ecx
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x14]
cmp eax, ebx
jae 0x404bf5
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
push str.StringFileInfo040904b0FileVersion
push edi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x14]
cmp eax, 4
jne 0x404cf0
mov eax, dword [0x438ca8]
mov dword [esp + 0x3c], eax
xor esi, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], esi
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x3c]
mov byte [esp + 0x34], bl
mov ecx, dword [eax]
push ecx
push str._08x
push edx
call fcn.0042042c
add esp, 0xc
lea eax, [esp + 0x28]
lea ecx, [esp + 0x3c]
push 4
push eax
call fcn.0041ffeb
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 2
call fcn.0042121d
lea ecx, [esp + 0x28]
mov byte [esp + 0x34], bl
call fcn.004210e4
lea ecx, [esp + 0x28]
push 4
push ecx
lea ecx, [esp + 0x44]
call fcn.00420067
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 3
call fcn.00421488
lea ecx, [esp + 0x28]
mov byte [esp + 0x34], bl
call fcn.004210e4
push str.StringFileInfo_
lea ecx, [esp + 0x40]
call fcn.0042126d
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x3c]
push edx
call fcn.00421488
push 0x438580
lea ecx, [esp + 0x40]
call fcn.0042144c
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
push edx
push edi
call sub.VERSION.dll_VerQueryValueA
cmp dword [esp + 0x14], ebx
jae 0x404ccf
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 0
call fcn.004210e4
lea ecx, [esp + 0x3c]
mov dword [esp + 0x34], 0xffffffff
call fcn.004210e4
jmp 0x404d0b
cmp eax, ebx
jae 0x404d0b
mov dword [esp + 0x10], 0
jmp 0x404d0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x404d0b
xor ebx, ebx
mov eax, dword [0x438ca8]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], 4
test eax, eax
je 0x404d69
push eax
call fcn.00411c20
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ecx + edx - 1]
mov cl, byte [ecx + edx - 1]
cmp cl, 0x31
jge 0x404d54
mov byte [eax], 0
mov cl, byte [eax - 1]
dec eax
cmp cl, 0x31
jl 0x404d48
push edx
lea ecx, [esp + 0x1c]
call fcn.0042126d
lea ecx, [esp + 0x18]
call fcn.00421537
jmp 0x404d77
push 0x43d5f0
lea ecx, [esp + 0x1c]
call fcn.0042126d
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x40]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x24]
test esi, esi
je 0x404db0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], 0xffffffff
call fcn.004210e4
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 8