Function at 0x4797a8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x33
push 0
push 0
dec ecx
jne 0x4797b0
push ecx
mov dword [ebp - 0x38], eax
xor eax, eax
push ebp
push 0x479dc4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x34], 0
jne 0x4797ff
push 0x105
lea eax, [ebp - 0x169]
push eax
mov eax, dword [0x4b77f8]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
mov eax, dword [ebp - 0x38]
add eax, 0x34
lea edx, [ebp - 0x169]
mov ecx, 0x105
call fcn.00404ee0
mov word [ebp - 0x52], 0
mov word [ebp - 0x54], 0
mov word [ebp - 0x56], 0
mov word [ebp - 0x58], 0
mov byte [ebp - 0x59], 0
mov byte [ebp - 0x5a], 0
mov byte [ebp - 0x5b], 0
mov byte [ebp - 0x5c], 0
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x34]
call fcn.00405100
push eax
call sub.version.dll_GetFileVersionInfoSizeA
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 0x479c2c
mov eax, dword [ebp - 0x44]
call fcn.00402f3c
mov dword [ebp - 0x50], eax
xor eax, eax
push ebp
push 0x479c25
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.00405100
push eax
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
push 0x479dd0
mov eax, dword [ebp - 0x50]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4798fb
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
call fcn.00407dcc
movzx eax, ax
mov dword [ebp - 0x174], eax
mov byte [ebp - 0x170], 0
lea edx, [ebp - 0x174]
xor ecx, ecx
mov eax, 0x479df4
call fcn.0040ac28
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x40]
movzx eax, word [eax]
mov dword [ebp - 0x174], eax
mov byte [ebp - 0x170], 0
lea edx, [ebp - 0x174]
xor ecx, ecx
mov eax, 0x479df4
call fcn.0040ac28
push 0x479e04
push dword [ebp - 4]
push dword [ebp - 8]
push 0x479e1c
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.00405004
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x178]
mov ecx, 0x479e28
mov edx, dword [ebp - 0x34]
call fcn.00404f88
mov eax, dword [ebp - 0x178]
call fcn.00405100
push eax
mov eax, dword [ebp - 0x50]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x479957
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x60]
call fcn.00404e68
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x17c]
mov ecx, 0x479e3c
mov edx, dword [ebp - 0x34]
call fcn.00404f88
mov eax, dword [ebp - 0x17c]
call fcn.00405100
push eax
mov eax, dword [ebp - 0x50]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x479996
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x60]
call fcn.00404e68
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x180]
mov ecx, 0x479e54
mov edx, dword [ebp - 0x34]
call fcn.00404f88
mov eax, dword [ebp - 0x180]
call fcn.00405100
push eax
mov eax, dword [ebp - 0x50]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4799d5
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x60]
call fcn.00404e68
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x184]
mov ecx, 0x479e68
mov edx, dword [ebp - 0x34]
call fcn.00404f88
mov eax, dword [ebp - 0x184]
call fcn.00405100
push eax
mov eax, dword [ebp - 0x50]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x479a14
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x60]
call fcn.00404e68
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x188]
mov ecx, 0x479e80
mov edx, dword [ebp - 0x34]
call fcn.00404f88
mov eax, dword [ebp - 0x188]
call fcn.00405100
push eax
mov eax, dword [ebp - 0x50]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x479a53
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x60]
call fcn.00404e68
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x18c]
mov ecx, 0x479e98
mov edx, dword [ebp - 0x34]
call fcn.00404f88
mov eax, dword [ebp - 0x18c]
call fcn.00405100
push eax
mov eax, dword [ebp - 0x50]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x479a92
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x60]
call fcn.00404e68
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x190]
mov ecx, 0x479eb0
mov edx, dword [ebp - 0x34]
call fcn.00404f88
mov eax, dword [ebp - 0x190]
call fcn.00405100
push eax
mov eax, dword [ebp - 0x50]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x479ad1
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x60]
call fcn.00404e68
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x194]
mov ecx, 0x479ecc
mov edx, dword [ebp - 0x34]
call fcn.00404f88
mov eax, dword [ebp - 0x194]
call fcn.00405100
push eax
mov eax, dword [ebp - 0x50]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x479b10
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x60]
call fcn.00404e68
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x198]
mov ecx, 0x479ee0
mov edx, dword [ebp - 0x34]
call fcn.00404f88
mov eax, dword [ebp - 0x198]
call fcn.00405100
push eax
mov eax, dword [ebp - 0x50]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x479b4f
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x60]
call fcn.00404e68
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x19c]
mov ecx, 0x479ef8
mov edx, dword [ebp - 0x34]
call fcn.00404f88
mov eax, dword [ebp - 0x19c]
call fcn.00405100
push eax
mov eax, dword [ebp - 0x50]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x479b8e
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x60]
call fcn.00404e68
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x64]
push eax
push 0x479f04
mov eax, dword [ebp - 0x50]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x479c0c
mov eax, dword [ebp - 0x64]
mov eax, dword [eax + 8]
shr eax, 0x10
mov word [ebp - 0x52], ax
mov eax, dword [ebp - 0x64]
movzx eax, word [eax + 8]
and ax, 0xffff
mov word [ebp - 0x54], ax
mov eax, dword [ebp - 0x64]
mov eax, dword [eax + 0xc]
shr eax, 0x10
mov word [ebp - 0x56], ax
mov eax, dword [ebp - 0x64]
movzx eax, word [eax + 0xc]
and ax, 0xffff
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x64]
test byte [eax + 0x1c], 1
setne byte [ebp - 0x59]
mov eax, dword [ebp - 0x64]
test byte [eax + 0x1c], 2
setne byte [ebp - 0x5a]
mov eax, dword [ebp - 0x64]
test byte [eax + 0x1c], 8
setne byte [ebp - 0x5b]
mov eax, dword [ebp - 0x64]
test byte [eax + 0x1c], 0x20
setne byte [ebp - 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479cae
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x50]
call fcn.00402f70
ret
lea eax, [ebp - 0xc]
mov edx, 0x479f10
call fcn.00404d08
lea eax, [ebp - 0x10]
mov edx, 0x479f10
call fcn.00404d08
lea eax, [ebp - 0x14]
mov edx, 0x479f10
call fcn.00404d08
lea eax, [ebp - 0x18]
mov edx, 0x479f10
call fcn.00404d08
lea eax, [ebp - 0x1c]
mov edx, 0x479f10
call fcn.00404d08
lea eax, [ebp - 0x20]
mov edx, 0x479f10
call fcn.00404d08
lea eax, [ebp - 0x24]
mov edx, 0x479f10
call fcn.00404d08
lea eax, [ebp - 0x28]
mov edx, 0x479f10
call fcn.00404d08
lea eax, [ebp - 0x2c]
mov edx, 0x479f10
call fcn.00404d08
lea eax, [ebp - 0x30]
mov edx, 0x479f10
call fcn.00404d08
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]
mov eax, dword [ebp - 0x38]
movzx edx, word [ebp - 0x52]
mov word [eax + 0x44], dx
mov eax, dword [ebp - 0x38]
movzx edx, word [ebp - 0x54]
mov word [eax + 0x46], dx
mov eax, dword [ebp - 0x38]
movzx edx, word [ebp - 0x56]
mov word [eax + 0x48], dx
mov eax, dword [ebp - 0x38]
movzx edx, word [ebp - 0x58]
mov word [eax + 0x4a], dx
mov eax, dword [ebp - 0x38]
movzx edx, byte [ebp - 0x59]
mov byte [eax + 0x4c], dl
mov eax, dword [ebp - 0x38]
movzx edx, byte [ebp - 0x5a]
mov byte [eax + 0x4d], dl
mov eax, dword [ebp - 0x38]
movzx edx, byte [ebp - 0x5b]
mov byte [eax + 0x4e], dl
mov eax, dword [ebp - 0x38]
movzx edx, byte [ebp - 0x5c]
mov byte [eax + 0x4f], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479dcb
lea eax, [ebp - 0x19c]
mov edx, 0xa
call fcn.00404c94
lea eax, [ebp - 0x34]
mov edx, 0xd
call fcn.00404c94
ret