Function at 0x4a1814
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x23
push 0
push 0
dec ecx
jne 0x4a181c
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a213a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea eax, [ebx + 4]
mov edx, esi
call fcn.00403cec
mov byte [ebx + 0xc], 0
mov byte [ebx + 0xd], 0
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xf], 0
mov byte [ebx + 0x10], 0
mov eax, dword [ebx + 8]
mov edx, dword [eax]
call dword [edx + 0x40]
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4a2105
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebx + 4]
call fcn.00403f18
inc eax
call fcn.00409d24
mov dword [ebp - 8], eax
mov edx, dword [ebx + 4]
mov eax, dword [ebp - 8]
call fcn.00409b90
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, 0xfff6
jle 0x4a18f0
lea edx, [ebp - 0x30]
mov eax, dword [0x4c1e44]
call fcn.0040671c
mov eax, dword [ebp - 0x30]
push eax
call fcn.0049f1b0
lea ecx, [ebp - 0x2c]
pop edx
call fcn.0049f3c4
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
mov edx, 0x4a2154
call fcn.00403f64
mov ecx, dword [ebp - 0x28]
mov dl, 1
mov eax, dword [0x4a07dc]
call fcn.0040c8c0
test esi, esi
jle 0x4a20ef
xor edx, edx
push ebp
push 0x4a20e8
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, esi
call fcn.00409d24
mov dword [ebp - 0xc], eax
mov eax, 0xfe
call fcn.00409d24
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
push eax
push esi
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
jne 0x4a1971
lea edx, [ebp - 0x3c]
mov eax, dword [0x4c2010]
call fcn.0040671c
mov eax, dword [ebp - 0x3c]
push eax
call fcn.0049f1b0
lea ecx, [ebp - 0x38]
pop edx
call fcn.0049f3c4
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 0x4a2154
call fcn.00403f64
mov ecx, dword [ebp - 0x34]
mov dl, 1
mov eax, dword [0x4a07dc]
call fcn.0040c8c0
mov dword [ebp - 0x20], 0x34
mov edx, 0x4a2174
mov eax, dword [ebp - 0x10]
call fcn.00409b90
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4a1d6d
push 0x4a2180
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
call fcn.00408014
movzx eax, ax
lea edx, [ebp - 0x44]
call fcn.004095dc
push dword [ebp - 0x44]
push 0x4a21a0
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 8]
call fcn.004095dc
push dword [ebp - 0x48]
push 0x4a21a0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
call fcn.00408014
movzx eax, ax
lea edx, [ebp - 0x4c]
call fcn.004095dc
push dword [ebp - 0x4c]
push 0x4a21a0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
call fcn.00408014
movzx eax, ax
lea edx, [ebp - 0x50]
call fcn.004095dc
push dword [ebp - 0x50]
lea eax, [ebp - 0x40]
mov edx, 8
call fcn.00403fd8
mov edx, dword [ebp - 0x40]
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
push 0x4a21ac
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x10]
call fcn.00408014
movzx eax, ax
lea edx, [ebp - 0x58]
call fcn.004095dc
push dword [ebp - 0x58]
push 0x4a21a0
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 0x10]
call fcn.004095dc
push dword [ebp - 0x5c]
push 0x4a21a0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x14]
call fcn.00408014
movzx eax, ax
lea edx, [ebp - 0x60]
call fcn.004095dc
push dword [ebp - 0x60]
push 0x4a21a0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x14]
call fcn.00408014
movzx eax, ax
lea edx, [ebp - 0x64]
call fcn.004095dc
push dword [ebp - 0x64]
lea eax, [ebp - 0x54]
mov edx, 8
call fcn.00403fd8
mov edx, dword [ebp - 0x54]
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
push 0x4a21cc
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x20]
call fcn.00408014
movzx eax, ax
lea edx, [ebp - 0x70]
call fcn.004095dc
mov edx, dword [ebp - 0x70]
lea ecx, [ebp - 0x6c]
mov eax, dword [ebx + 0x1c]
call fcn.00413498
push dword [ebp - 0x6c]
push 0x4a21e0
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 0x20]
call fcn.004095dc
mov edx, dword [ebp - 0x78]
lea ecx, [ebp - 0x74]
mov eax, dword [ebx + 0x20]
call fcn.00413498
push dword [ebp - 0x74]
lea eax, [ebp - 0x68]
mov edx, 4
call fcn.00403fd8
mov edx, dword [ebp - 0x68]
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x24]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x84]
call fcn.0040960c
mov edx, dword [ebp - 0x84]
lea ecx, [ebp - 0x80]
mov eax, dword [ebx + 0x24]
call fcn.00413498
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
mov edx, 0x4a21ec
call fcn.00403f64
mov edx, dword [ebp - 0x7c]
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x24]
cmp eax, 3
jne 0x4a1bb8
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x28]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x90]
call fcn.0040960c
mov edx, dword [ebp - 0x90]
lea ecx, [ebp - 0x8c]
mov eax, dword [ebx + 0x28]
call fcn.00413498
mov ecx, dword [ebp - 0x8c]
lea eax, [ebp - 0x88]
mov edx, 0x4a2200
call fcn.00403f64
mov edx, dword [ebp - 0x88]
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x4a1c19
cmp eax, 4
jne 0x4a1c0c
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x28]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x9c]
call fcn.0040960c
mov edx, dword [ebp - 0x9c]
lea ecx, [ebp - 0x98]
mov eax, dword [ebx + 0x2c]
call fcn.00413498
mov ecx, dword [ebp - 0x98]
lea eax, [ebp - 0x94]
mov edx, 0x4a2200
call fcn.00403f64
mov edx, dword [ebp - 0x94]
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x4a1c19
mov eax, dword [ebx + 8]
mov edx, 0x4a2200
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x1c]
and eax, 1
mov edx, dword [ebp - 0x1c]
and eax, dword [edx + 0x18]
mov byte [ebx + 0xc], al
lea edx, [ebp - 0xa4]
mov al, byte [ebx + 0xc]
call fcn.004a16c4
mov ecx, dword [ebp - 0xa4]
lea eax, [ebp - 0xa0]
mov edx, 0x4a2218
call fcn.00403f64
mov edx, dword [ebp - 0xa0]
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x1c]
and eax, 4
mov edx, dword [ebp - 0x1c]
and eax, dword [edx + 0x18]
mov byte [ebx + 0xd], al
lea edx, [ebp - 0xac]
mov al, byte [ebx + 0xd]
call fcn.004a16c4
mov ecx, dword [ebp - 0xac]
lea eax, [ebp - 0xa8]
mov edx, 0x4a222c
call fcn.00403f64
mov edx, dword [ebp - 0xa8]
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x1c]
and eax, 2
mov edx, dword [ebp - 0x1c]
and eax, dword [edx + 0x18]
mov byte [ebx + 0xe], al
lea edx, [ebp - 0xb4]
mov al, byte [ebx + 0xe]
call fcn.004a16c4
mov ecx, dword [ebp - 0xb4]
lea eax, [ebp - 0xb0]
mov edx, 0x4a2244
call fcn.00403f64
mov edx, dword [ebp - 0xb0]
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x1c]
and eax, 8
mov edx, dword [ebp - 0x1c]
and eax, dword [edx + 0x18]
mov byte [ebx + 0xf], al
lea edx, [ebp - 0xbc]
mov al, byte [ebx + 0xf]
call fcn.004a16c4
mov ecx, dword [ebp - 0xbc]
lea eax, [ebp - 0xb8]
mov edx, 0x4a225c
call fcn.00403f64
mov edx, dword [ebp - 0xb8]
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x1c]
and eax, 0x20
mov edx, dword [ebp - 0x1c]
and eax, dword [edx + 0x18]
mov byte [ebx + 0x10], al
lea edx, [ebp - 0xc4]
mov al, byte [ebx + 0x10]
call fcn.004a16c4
mov ecx, dword [ebp - 0xc4]
lea eax, [ebp - 0xc0]
mov edx, 0x4a2278
call fcn.00403f64
mov edx, dword [ebp - 0xc0]
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, 0x4a2294
mov eax, dword [ebp - 0x10]
call fcn.00409b90
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4a20c6
lea eax, [ebp - 0xc8]
push eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 1]
mov dword [ebp - 0xd0], eax
mov byte [ebp - 0xcc], 0
lea edx, [ebp - 0xd0]
xor ecx, ecx
mov eax, 0x4a22b8
call fcn.0040a258
push dword [ebp - 0xc8]
lea eax, [ebp - 0xd4]
push eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
mov dword [ebp - 0xd0], eax
mov byte [ebp - 0xcc], 0
lea edx, [ebp - 0xd0]
xor ecx, ecx
mov eax, 0x4a22b8
call fcn.0040a258
push dword [ebp - 0xd4]
lea eax, [ebp - 0xd8]
push eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 3]
mov dword [ebp - 0xd0], eax
mov byte [ebp - 0xcc], 0
lea edx, [ebp - 0xd0]
xor ecx, ecx
mov eax, 0x4a22b8
call fcn.0040a258
push dword [ebp - 0xd8]
lea eax, [ebp - 0xdc]
push eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 2]
mov dword [ebp - 0xd0], eax
mov byte [ebp - 0xcc], 0
lea edx, [ebp - 0xd0]
xor ecx, ecx
mov eax, 0x4a22b8
call fcn.0040a258
push dword [ebp - 0xdc]
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.00403fd8
lea eax, [ebp - 0xe8]
push eax
mov ecx, 4
mov edx, 1
mov eax, dword [ebp - 0x24]
call fcn.00404120
mov edx, dword [ebp - 0xe8]
lea ecx, [ebp - 0xe4]
mov eax, dword [ebx + 0x14]
call fcn.00413498
mov ecx, dword [ebp - 0xe4]
lea eax, [ebp - 0xe0]
mov edx, 0x4a22c8
call fcn.00403f64
mov edx, dword [ebp - 0xe0]
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea eax, [ebp - 0xf4]
push eax
mov ecx, 4
mov edx, 5
mov eax, dword [ebp - 0x24]
call fcn.00404120
mov edx, dword [ebp - 0xf4]
lea ecx, [ebp - 0xf0]
mov eax, dword [ebx + 0x18]
call fcn.00413498
mov ecx, dword [ebp - 0xf0]
lea eax, [ebp - 0xec]
mov edx, 0x4a22dc
call fcn.00403f64
mov edx, dword [ebp - 0xec]
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edi, 0xa
mov esi, 0x4c1ca8
push 0x4a22f0
push dword [ebp - 0x24]
push 0x4a2174
push dword [esi]
lea eax, [ebp - 0xf8]
mov edx, 4
call fcn.00403fd8
mov edx, dword [ebp - 0xf8]
mov eax, dword [ebp - 0x10]
call fcn.00409b90
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4a1f9a
push dword [esi]
push 0x4a2308
lea edx, [ebp - 0x100]
mov eax, dword [ebp - 0x14]
call fcn.00409d10
push dword [ebp - 0x100]
lea eax, [ebp - 0xfc]
mov edx, 3
call fcn.00403fd8
mov edx, dword [ebp - 0xfc]
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
add esi, 4
dec edi
jne 0x4a1f1b
cmp byte [ebx + 0xf], 0
je 0x4a2035
push 0x4a22f0
push dword [ebp - 0x24]
push 0x4a2174
push dword [0x4c1cd0]
lea eax, [ebp - 0x104]
mov edx, 4
call fcn.00403fd8
mov edx, dword [ebp - 0x104]
mov eax, dword [ebp - 0x10]
call fcn.00409b90
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4a2035
push dword [0x4c1cd0]
push 0x4a2314
lea edx, [ebp - 0x10c]
mov eax, dword [ebp - 0x14]
call fcn.00409d10
push dword [ebp - 0x10c]
lea eax, [ebp - 0x108]
mov edx, 3
call fcn.00403fd8
mov edx, dword [ebp - 0x108]
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
cmp byte [ebx + 0x10], 0
je 0x4a20c6
push 0x4a22f0
push dword [ebp - 0x24]
push 0x4a2174
push dword [0x4c1cd4]
lea eax, [ebp - 0x110]
mov edx, 4
call fcn.00403fd8
mov edx, dword [ebp - 0x110]
mov eax, dword [ebp - 0x10]
call fcn.00409b90
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4a20c6
push dword [0x4c1cd4]
push 0x4a2314
lea edx, [ebp - 0x118]
mov eax, dword [ebp - 0x14]
call fcn.00409d10
push dword [ebp - 0x118]
lea eax, [ebp - 0x114]
mov edx, 3
call fcn.00403fd8
mov edx, dword [ebp - 0x114]
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a20ef
mov eax, dword [ebp - 0x10]
call fcn.00409d70
mov eax, dword [ebp - 0xc]
call fcn.00409d70
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a210c
mov eax, dword [ebp - 8]
call fcn.00409d70
ret