Function at 0x4d054c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x33
push 0
push 0
dec ecx
jne 0x4d0554
push ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d0b79
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4d05a3
push 0x105
lea eax, [ebp - 0x169]
push eax
mov eax, dword [0x4da668]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
mov eax, dword [ebp - 4]
add eax, 0x34
lea edx, [ebp - 0x169]
mov ecx, 0x105
call fcn.00404b90
mov word [ebp - 0x4e], 0
mov word [ebp - 0x50], 0
mov word [ebp - 0x52], 0
mov word [ebp - 0x54], 0
mov byte [ebp - 0x55], 0
mov byte [ebp - 0x56], 0
mov byte [ebp - 0x57], 0
mov byte [ebp - 0x58], 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.00404de0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
seta al
mov edx, dword [ebp - 4]
mov byte [edx + 0x3c], al
test al, al
je 0x4d09d0
mov eax, dword [ebp - 0x18]
call fcn.00408b0c
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x4d09c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.00404de0
push eax
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4d0b84
mov eax, dword [ebp - 0x24]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4d069f
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004078a4
movzx eax, ax
mov dword [ebp - 0x174], eax
mov byte [ebp - 0x170], 0
lea edx, [ebp - 0x174]
xor ecx, ecx
mov eax, 0x4d0ba8
call fcn.0040a018
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax]
mov dword [ebp - 0x174], eax
mov byte [ebp - 0x170], 0
lea edx, [ebp - 0x174]
xor ecx, ecx
mov eax, 0x4d0ba8
call fcn.0040a018
push 0x4d0bb8
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0x4d0bd0
lea eax, [ebp - 0x64]
mov edx, 4
call fcn.00404ca0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x178]
mov ecx, 0x4d0bdc
mov edx, dword [ebp - 0x64]
call fcn.00404c2c
mov eax, dword [ebp - 0x178]
call fcn.00404de0
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4d06fb
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x5c]
call fcn.00404b18
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x17c]
mov ecx, 0x4d0bf0
mov edx, dword [ebp - 0x64]
call fcn.00404c2c
mov eax, dword [ebp - 0x17c]
call fcn.00404de0
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4d073a
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x5c]
call fcn.00404b18
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x180]
mov ecx, 0x4d0c08
mov edx, dword [ebp - 0x64]
call fcn.00404c2c
mov eax, dword [ebp - 0x180]
call fcn.00404de0
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4d0779
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x5c]
call fcn.00404b18
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x184]
mov ecx, 0x4d0c1c
mov edx, dword [ebp - 0x64]
call fcn.00404c2c
mov eax, dword [ebp - 0x184]
call fcn.00404de0
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4d07b8
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x5c]
call fcn.00404b18
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x188]
mov ecx, 0x4d0c34
mov edx, dword [ebp - 0x64]
call fcn.00404c2c
mov eax, dword [ebp - 0x188]
call fcn.00404de0
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4d07f7
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0x5c]
call fcn.00404b18
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x18c]
mov ecx, 0x4d0c4c
mov edx, dword [ebp - 0x64]
call fcn.00404c2c
mov eax, dword [ebp - 0x18c]
call fcn.00404de0
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4d0836
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 0x5c]
call fcn.00404b18
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x190]
mov ecx, 0x4d0c64
mov edx, dword [ebp - 0x64]
call fcn.00404c2c
mov eax, dword [ebp - 0x190]
call fcn.00404de0
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4d0875
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x5c]
call fcn.00404b18
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x194]
mov ecx, 0x4d0c80
mov edx, dword [ebp - 0x64]
call fcn.00404c2c
mov eax, dword [ebp - 0x194]
call fcn.00404de0
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4d08b4
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0x5c]
call fcn.00404b18
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x198]
mov ecx, 0x4d0c94
mov edx, dword [ebp - 0x64]
call fcn.00404c2c
mov eax, dword [ebp - 0x198]
call fcn.00404de0
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4d08f3
lea eax, [ebp - 0x48]
mov edx, dword [ebp - 0x5c]
call fcn.00404b18
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x19c]
mov ecx, 0x4d0cac
mov edx, dword [ebp - 0x64]
call fcn.00404c2c
mov eax, dword [ebp - 0x19c]
call fcn.00404de0
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4d0932
lea eax, [ebp - 0x4c]
mov edx, dword [ebp - 0x5c]
call fcn.00404b18
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x60]
push eax
push 0x4d0cb8
mov eax, dword [ebp - 0x24]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4d09b0
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 8]
shr eax, 0x10
mov word [ebp - 0x4e], ax
mov eax, dword [ebp - 0x60]
mov ax, word [eax + 8]
and ax, 0xffff
mov word [ebp - 0x50], ax
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 0xc]
shr eax, 0x10
mov word [ebp - 0x52], ax
mov eax, dword [ebp - 0x60]
mov ax, word [eax + 0xc]
and ax, 0xffff
mov word [ebp - 0x54], ax
mov eax, dword [ebp - 0x60]
test byte [eax + 0x1c], 1
setne byte [ebp - 0x55]
mov eax, dword [ebp - 0x60]
test byte [eax + 0x1c], 2
setne byte [ebp - 0x56]
mov eax, dword [ebp - 0x60]
test byte [eax + 0x1c], 8
setne byte [ebp - 0x57]
mov eax, dword [ebp - 0x60]
test byte [eax + 0x1c], 0x20
setne byte [ebp - 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d0a52
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x24]
call fcn.004027d4
ret
lea eax, [ebp - 0x28]
mov edx, 0x4d0cc4
call fcn.004049b8
lea eax, [ebp - 0x2c]
mov edx, 0x4d0cc4
call fcn.004049b8
lea eax, [ebp - 0x30]
mov edx, 0x4d0cc4
call fcn.004049b8
lea eax, [ebp - 0x34]
mov edx, 0x4d0cc4
call fcn.004049b8
lea eax, [ebp - 0x38]
mov edx, 0x4d0cc4
call fcn.004049b8
lea eax, [ebp - 0x3c]
mov edx, 0x4d0cc4
call fcn.004049b8
lea eax, [ebp - 0x40]
mov edx, 0x4d0cc4
call fcn.004049b8
lea eax, [ebp - 0x44]
mov edx, 0x4d0cc4
call fcn.004049b8
lea eax, [ebp - 0x48]
mov edx, 0x4d0cc4
call fcn.004049b8
lea eax, [ebp - 0x4c]
mov edx, 0x4d0cc4
call fcn.004049b8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 0x3c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 0x48]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 0x4c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
mov dx, word [ebp - 0x4e]
mov word [eax + 0x44], dx
mov eax, dword [ebp - 4]
mov dx, word [ebp - 0x50]
mov word [eax + 0x46], dx
mov eax, dword [ebp - 4]
mov dx, word [ebp - 0x52]
mov word [eax + 0x48], dx
mov eax, dword [ebp - 4]
mov dx, word [ebp - 0x54]
mov word [eax + 0x4a], dx
mov eax, dword [ebp - 4]
mov dl, byte [ebp - 0x55]
mov byte [eax + 0x4c], dl
mov eax, dword [ebp - 4]
mov dl, byte [ebp - 0x56]
mov byte [eax + 0x4d], dl
mov eax, dword [ebp - 4]
mov dl, byte [ebp - 0x57]
mov byte [eax + 0x4e], dl
mov eax, dword [ebp - 4]
mov dl, byte [ebp - 0x58]
mov byte [eax + 0x4f], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d0b80
lea eax, [ebp - 0x19c]
mov edx, 0xa
call fcn.00404944
lea eax, [ebp - 0x64]
call fcn.00404920
lea eax, [ebp - 0x4c]
mov edx, 0xa
call fcn.00404944
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404944
ret