Function at 0x4054b0
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x46961b
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x4886d0]
xor eax, esp
mov dword [esp + 0x1a4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4886d0]
xor eax, esp
push eax
lea eax, [esp + 0x1bc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1d4]
mov ebp, dword [esp + 0x1cc]
mov edi, dword [esp + 0x1d0]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
push str.Unavailable
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call fcn.00405200
lea ecx, [esp + 0x2c]
push ecx
push edi
mov dword [esp + 0x1cc], ebx
call fcn.0041be5c
test eax, eax
je 0x4056b4
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
jne 0x405595
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
push eax
call fcn.00403d60
add eax, 0x10
mov dword [ebp], eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x1c4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4056e9
push esi
call fcn.00405be0
add esp, 4
mov ebp, eax
push ebp
push esi
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoA
cmp eax, ebx
je 0x40561d
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
push str.VarFileInfoTranslation
push ebp
call sub.VERSION.dll_VerQueryValueA
cmp eax, ebx
je 0x4055cc
cmp dword [esp + 0x18], ebx
jne 0x40561d
push ebp
call fcn.00405beb
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
push eax
call fcn.00403d60
mov esi, dword [esp + 0x28]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 8
mov dword [esp + 0x1c4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405616
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x4056f7
xor esi, esi
test dword [esp + 0x18], 0xfffffffc
jbe 0x4056a7
lea esp, [esp]
mov eax, dword [esp + 0x1c]
movzx edx, word [eax + esi*4 + 2]
mov ecx, dword [esp + 0x28]
movzx eax, word [eax + esi*4]
push ecx
push edx
push eax
lea ecx, [esp + 0x160]
push str.StringFileInfo_04x_04x_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x15c]
push ecx
push ebp
call sub.VERSION.dll_VerQueryValueA
cmp eax, ebx
je 0x4056a7
mov edx, dword [esp + 0x24]
cmp edx, ebx
jne 0x405682
xor eax, eax
jmp 0x405690
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405687
sub eax, edi
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.00403ff0
mov edx, dword [esp + 0x18]
inc esi
shr edx, 2
cmp esi, edx
jb 0x405630
push ebp
call fcn.00405beb
mov ebp, dword [esp + 0x24]
add esp, 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
push eax
call fcn.00403d60
add eax, 0x10
mov dword [ebp], eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x1c4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4056f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x1bc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1a4]
xor ecx, esp
call fcn.0043a454
add esp, 0x1b4
ret 0xc