Function at 0x4d0e50
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x561ba8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x30], eax
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.0040be70
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
cmp dword [esi - 4], 1
jle 0x4d0ead
push dword [esi - 0xc]
lea ecx, [ebp - 0x14]
call fcn.004141b0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x4d1000
push ebx
lea ecx, [ebp - 0x18]
call fcn.004b2f10
test al, al
jne 0x4d0ed7
mov edi, dword [ebp - 0x18]
jmp 0x4d1000
cmp dword [esi - 4], 1
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
jle 0x4d0ef4
push dword [esi - 0xc]
lea ecx, [ebp - 0x14]
call fcn.004141b0
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x18]
push edi
push ebx
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4d1000
lea ecx, [ebp - 0x10]
call fcn.00413410
mov byte [ebp - 4], 4
lea eax, [ebp - 0x20]
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
push eax
lea eax, [ebp - 0x24]
push eax
push str.VarFileInfoTranslation
push edi
call ebx
test eax, eax
je 0x4d0f48
cmp dword [ebp - 0x20], 0
je 0x4d0f48
mov ecx, dword [ebp - 0x24]
push 0x5833f0
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
jmp 0x4d0f57
push 0x5833f0
push 0x4e2
push 0x409
lea eax, [ebp - 0x10]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.00419120
mov eax, dword [ebp - 0x10]
add esp, 0x14
cmp dword [eax - 4], 1
jle 0x4d0f7f
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.004141b0
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x4d0fe1
cmp dword [ebp - 0x28], 0
je 0x4d0fe1
mov edx, dword [ebp - 0x2c]
test edx, edx
jne 0x4d0fa0
xor ecx, ecx
jmp 0x4d0fb4
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d0fa5
sub ecx, ebx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x30]
push edx
call fcn.004143c0
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d0fdd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov bl, 1
jmp 0x4d1002
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d1000
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor bl, bl
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4d101e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
push edi
call fcn.00521576
add esp, 4
mov dword [ebp - 0x18], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret