Function at 0x4d7770
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576405
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5e8024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x34], eax
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00409540
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x4d77d0
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.004096b0
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
or ebx, 0xffffffff
test esi, esi
je 0x4d7934
push esi
lea ecx, [ebp - 0x18]
call fcn.004b89e0
test al, al
jne 0x4d77fd
mov edi, dword [ebp - 0x18]
jmp 0x4d7934
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x4d781a
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.004096b0
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x18]
push edi
push esi
push dword [ebp - 0x14]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4d7934
call fcn.00409d30
mov ecx, eax
test ecx, ecx
je 0x4d7980
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push str.VarFileInfoTranslation
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4d7879
cmp dword [ebp - 0x20], 0
je 0x4d7879
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax]
movzx eax, word [eax + 2]
jmp 0x4d7883
mov ecx, 0x409
mov eax, 0x4e2
push 0x598e64
push eax
push ecx
lea eax, [ebp - 0x14]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.00408de0
mov esi, dword [ebp - 0x14]
add esp, 0x14
cmp dword [esi - 4], 1
jle 0x4d78b2
push dword [esi - 0xc]
lea ecx, [ebp - 0x14]
call fcn.004096b0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4d7919
cmp dword [ebp - 0x28], 0
je 0x4d7919
mov edx, dword [ebp - 0x2c]
test edx, edx
jne 0x4d78d7
xor ecx, ecx
jmp 0x4d78f0
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x30], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d78e0
sub ecx, dword [ebp - 0x30]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x34]
push edx
call fcn.004098b0
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4d7915
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov bl, 1
jmp 0x4d7936
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4d7934
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor bl, bl
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d7955
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
push edi
call fcn.0052e812
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
push 0x80004005
call fcn.00409a00
int3