Function at 0x47e868
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x2a
push 0
push 0
dec ecx
jne 0x47e870
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47ec10
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x47ebea
mov eax, esi
mov edx, ebx
call fcn.00404adc
lea eax, [ebp - 0x124]
mov edx, ebx
call fcn.0040a1cc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x124]
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc], eax
mov byte [ebp - 1], 0
cmp dword [ebp - 0xc], 0
je 0x47ebea
mov eax, dword [ebp - 0xc]
call fcn.00402adc
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x47ebe3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x124]
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x47ebca
mov byte [ebp - 1], 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x47ec20
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x47ebca
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
call fcn.00407a00
movzx eax, ax
lea edx, [ebp - 0x128]
call fcn.00409460
push dword [ebp - 0x128]
push 0x47ec2c
lea edx, [ebp - 0x12c]
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 8]
call fcn.00409460
push dword [ebp - 0x12c]
push 0x47ec2c
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
call fcn.00407a00
movzx eax, ax
lea edx, [ebp - 0x130]
call fcn.00409460
push dword [ebp - 0x130]
push 0x47ec2c
lea edx, [ebp - 0x134]
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 0xc]
call fcn.00409460
push dword [ebp - 0x134]
lea eax, [esi + 4]
mov edx, 7
call fcn.00404e24
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
call fcn.00407a00
movzx eax, ax
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 8]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
call fcn.00407a00
movzx eax, ax
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 0xc]
mov dword [esi + 0x28], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x47ec30
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x47ea5d
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x20]
mov eax, 8
call fcn.0040959c
lea eax, [ebp - 0x138]
push eax
mov ecx, 4
mov edx, 1
mov eax, dword [ebp - 0x20]
call fcn.00404fc4
mov eax, dword [ebp - 0x138]
push eax
lea eax, [ebp - 0x13c]
push eax
mov ecx, 4
mov edx, 5
mov eax, dword [ebp - 0x20]
call fcn.00404fc4
mov edx, dword [ebp - 0x13c]
lea eax, [ebp - 0x20]
pop ecx
call fcn.00404db0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x47ec54
push dword [ebp - 0x20]
push 0x47ec70
lea eax, [ebp - 0x140]
mov edx, 3
call fcn.00404e24
mov eax, dword [ebp - 0x140]
call fcn.00404f64
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x47eaa6
lea eax, [esi + 0x10]
mov edx, dword [ebp - 0x10]
call fcn.00404c80
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x47ec54
push dword [ebp - 0x20]
push 0x47ec8c
lea eax, [ebp - 0x144]
mov edx, 3
call fcn.00404e24
mov eax, dword [ebp - 0x144]
call fcn.00404f64
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x47eaef
lea eax, [esi + 0x18]
mov edx, dword [ebp - 0x10]
call fcn.00404c80
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x47ec54
push dword [ebp - 0x20]
push 0x47eca4
lea eax, [ebp - 0x148]
mov edx, 3
call fcn.00404e24
mov eax, dword [ebp - 0x148]
call fcn.00404f64
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x47eb38
lea eax, [esi + 0x14]
mov edx, dword [ebp - 0x10]
call fcn.00404c80
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x47ec54
push dword [ebp - 0x20]
push 0x47ecb8
lea eax, [ebp - 0x14c]
mov edx, 3
call fcn.00404e24
mov eax, dword [ebp - 0x14c]
call fcn.00404f64
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x47eb81
lea eax, [esi + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404c80
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x47ec54
push dword [ebp - 0x20]
push 0x47ecd0
lea eax, [ebp - 0x150]
mov edx, 3
call fcn.00404e24
mov eax, dword [ebp - 0x150]
call fcn.00404f64
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x47ebca
lea eax, [esi + 0xc]
mov edx, dword [ebp - 0x10]
call fcn.00404c80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ebea
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call fcn.00402b0c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ec17
lea eax, [ebp - 0x150]
mov edx, 0xb
call fcn.00404aac
lea eax, [ebp - 0x20]
call fcn.00404a88
ret