Function at 0x4d9980
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x52
push 0
push 0
dec ecx
jne 0x4d9988
mov dword [ebp - 0x38], eax
xor eax, eax
push ebp
push 0x4d9ea1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x34], 0
jne 0x4d99d6
push 0x20a
lea eax, [ebp - 0x25e]
push eax
mov eax, dword [0x53eb50]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameW
mov eax, dword [ebp - 0x38]
add eax, 0x34
lea edx, [ebp - 0x25e]
mov ecx, 0x105
call fcn.00405d60
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x34]
call fcn.00405bec
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
seta al
mov edx, dword [ebp - 0x38]
mov byte [edx + 0x3c], al
test al, al
je 0x4d9d5d
mov eax, dword [ebp - 0x44]
call fcn.00403064
mov dword [ebp - 0x50], eax
xor eax, eax
push ebp
push 0x4d9d56
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x44]
push eax
push 0
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x34]
call fcn.00405bec
push eax
call sub.version.dll_GetFileVersionInfoW
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
push 0x4d9eac
mov eax, dword [ebp - 0x50]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4d9aaa
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
call fcn.004095ac
movzx eax, ax
mov dword [ebp - 0x268], eax
mov byte [ebp - 0x264], 0
lea edx, [ebp - 0x268]
xor ecx, ecx
mov eax, 0x4d9eec
call fcn.0040d930
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x40]
movzx eax, word [eax]
mov dword [ebp - 0x268], eax
mov byte [ebp - 0x264], 0
lea edx, [ebp - 0x268]
xor ecx, ecx
mov eax, 0x4d9eec
call fcn.0040d930
push 0x4d9f04
push dword [ebp - 4]
push dword [ebp - 8]
push 0x4d9f30
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.00406118
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x26c]
mov ecx, 0x4d9f40
mov edx, dword [ebp - 0x34]
call fcn.00406034
mov eax, dword [ebp - 0x26c]
call fcn.00405bec
push eax
mov eax, dword [ebp - 0x50]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4d9b06
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x54]
call fcn.00405d0c
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x270]
mov ecx, 0x4d9f64
mov edx, dword [ebp - 0x34]
call fcn.00406034
mov eax, dword [ebp - 0x270]
call fcn.00405bec
push eax
mov eax, dword [ebp - 0x50]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4d9b45
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x54]
call fcn.00405d0c
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x274]
mov ecx, 0x4d9f90
mov edx, dword [ebp - 0x34]
call fcn.00406034
mov eax, dword [ebp - 0x274]
call fcn.00405bec
push eax
mov eax, dword [ebp - 0x50]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4d9b84
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x54]
call fcn.00405d0c
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x278]
mov ecx, 0x4d9fb4
mov edx, dword [ebp - 0x34]
call fcn.00406034
mov eax, dword [ebp - 0x278]
call fcn.00405bec
push eax
mov eax, dword [ebp - 0x50]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4d9bc3
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x54]
call fcn.00405d0c
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x27c]
mov ecx, 0x4d9fdc
mov edx, dword [ebp - 0x34]
call fcn.00406034
mov eax, dword [ebp - 0x27c]
call fcn.00405bec
push eax
mov eax, dword [ebp - 0x50]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4d9c02
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x54]
call fcn.00405d0c
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x280]
mov ecx, 0x4da008
mov edx, dword [ebp - 0x34]
call fcn.00406034
mov eax, dword [ebp - 0x280]
call fcn.00405bec
push eax
mov eax, dword [ebp - 0x50]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4d9c41
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x54]
call fcn.00405d0c
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x284]
mov ecx, 0x4da034
mov edx, dword [ebp - 0x34]
call fcn.00406034
mov eax, dword [ebp - 0x284]
call fcn.00405bec
push eax
mov eax, dword [ebp - 0x50]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4d9c80
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x54]
call fcn.00405d0c
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x288]
mov ecx, 0x4da064
mov edx, dword [ebp - 0x34]
call fcn.00406034
mov eax, dword [ebp - 0x288]
call fcn.00405bec
push eax
mov eax, dword [ebp - 0x50]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4d9cbf
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x54]
call fcn.00405d0c
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x28c]
mov ecx, 0x4da088
mov edx, dword [ebp - 0x34]
call fcn.00406034
mov eax, dword [ebp - 0x28c]
call fcn.00405bec
push eax
mov eax, dword [ebp - 0x50]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4d9cfe
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x54]
call fcn.00405d0c
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x290]
mov ecx, 0x4da0b4
mov edx, dword [ebp - 0x34]
call fcn.00406034
mov eax, dword [ebp - 0x290]
call fcn.00405bec
push eax
mov eax, dword [ebp - 0x50]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4d9d3d
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x54]
call fcn.00405d0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d9ddf
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x50]
call fcn.00403098
ret
lea eax, [ebp - 0xc]
mov edx, 0x4da0d4
call fcn.00405bb4
lea eax, [ebp - 0x10]
mov edx, 0x4da0d4
call fcn.00405bb4
lea eax, [ebp - 0x14]
mov edx, 0x4da0d4
call fcn.00405bb4
lea eax, [ebp - 0x18]
mov edx, 0x4da0d4
call fcn.00405bb4
lea eax, [ebp - 0x1c]
mov edx, 0x4da0d4
call fcn.00405bb4
lea eax, [ebp - 0x20]
mov edx, 0x4da0d4
call fcn.00405bb4
lea eax, [ebp - 0x24]
mov edx, 0x4da0d4
call fcn.00405bb4
lea eax, [ebp - 0x28]
mov edx, 0x4da0d4
call fcn.00405bb4
lea eax, [ebp - 0x2c]
mov edx, 0x4da0d4
call fcn.00405bb4
lea eax, [ebp - 0x30]
mov edx, 0x4da0d4
call fcn.00405bb4
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d9ea8
lea eax, [ebp - 0x290]
mov edx, 0xa
call fcn.00405b58
lea eax, [ebp - 0x34]
mov edx, 0xd
call fcn.00405b58
ret