Function at 0x4d1260
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x561de8
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.0040a1d0
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
cmp dword [esi - 4], 1
jle 0x4d12bd
push dword [esi - 0xc]
lea ecx, [ebp - 0x14]
call fcn.004124b0
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 0x4d140b
push ebx
lea ecx, [ebp - 0x18]
call fcn.004b32b0
test al, al
jne 0x4d12e7
mov edi, dword [ebp - 0x18]
jmp 0x4d140b
cmp dword [esi - 4], 1
jle 0x4d12fb
push dword [esi - 0xc]
lea ecx, [ebp - 0x14]
call fcn.004124b0
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
push edi
push ebx
push dword [ebp - 0x1c]
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4d140b
lea ecx, [ebp - 0x10]
call fcn.00411710
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 0x4d1351
cmp dword [ebp - 0x20], 0
je 0x4d1351
mov ecx, dword [ebp - 0x24]
push 0x5832fc
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
jmp 0x4d1360
push 0x5832fc
push 0x4e2
push 0x409
lea eax, [ebp - 0x10]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.00417cc0
mov eax, dword [ebp - 0x10]
add esp, 0x14
cmp dword [eax - 4], 1
jle 0x4d1388
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.004124b0
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 0x4d13ec
cmp dword [ebp - 0x28], 0
je 0x4d13ec
mov edx, dword [ebp - 0x2c]
test edx, edx
jne 0x4d13a9
xor ecx, ecx
jmp 0x4d13bf
mov ecx, edx
lea ebx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d13b0
sub ecx, ebx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x30]
push edx
call fcn.004126c0
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 0x4d13e8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov bl, 1
jmp 0x4d140d
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 0x4d140b
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 0x4d1429
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
push edi
call fcn.00521c5a
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